(()=>{"use strict";var e={d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{createElement:()=>b,deepSignal:()=>Ge,directive:()=>jt,getContext:()=>$t,getElement:()=>Ct,navigate:()=>un,prefetch:()=>on,store:()=>yt,useContext:()=>ce,useEffect:()=>ie,useMemo:()=>ue});var n,r,o,i,s,l,u,c,_,a,f,p,h,d={},v=[],y=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,m=Array.isArray;function g(e,t){for(var n in t)e[n]=t[n];return e}function w(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function b(e,t,r){var o,i,s,l={};for(s in t)"key"==s?o=t[s]:"ref"==s?i=t[s]:l[s]=t[s];if(arguments.length>2&&(l.children=arguments.length>3?n.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(s in e.defaultProps)void 0===l[s]&&(l[s]=e.defaultProps[s]);return x(e,l,o,i,null)}function x(e,t,n,i,s){var l={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==s?++o:s,__i:-1,__u:0};return null==s&&null!=r.vnode&&r.vnode(l),l}function k(e){return e.children}function S(e,t){this.props=e,this.context=t}function P(e,t){if(null==t)return e.__?P(e.__,e.__i+1):null;for(var n;tt&&s.sort(c));C.__r=0}function M(e,t,n,r,o,i,s,l,u,c,_){var a,f,p,h,y,m,g=r&&r.__k||v,w=t.length;for(u=T(n,t,g,u),a=0;a0?x(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i).__=e,i.__b=e.__b+1,s=null,-1!==(u=i.__i=A(i,n,l,a))&&(a--,(s=n[u])&&(s.__u|=2)),null==s||null===s.__v?(-1==u&&f--,"function"!=typeof i.type&&(i.__u|=4)):u!==l&&(u==l-1?f--:u==l+1?f++:(u>l?f--:f++,i.__u|=4))):i=e.__k[o]=null;if(a)for(o=0;o<_;o++)null!=(s=n[o])&&0==(2&s.__u)&&(s.__e==r&&(r=P(s)),R(s,s));return r}function O(e,t,n){var r,o;if("function"==typeof e.type){for(r=e.__k,o=0;r&&o(null!=u&&0==(2&u.__u)?1:0))for(;s>=0||l=0){if((u=t[s])&&0==(2&u.__u)&&o==u.key&&i===u.type)return s;s--}if(l=n.__.length&&n.__.push({}),n.__[e]}function ie(e,t){var n=oe(z++,3);!X.__s&&de(n.__H,t)&&(n.__=e,n.i=t,V.__H.__h.push(n))}function se(e,t){var n=oe(z++,4);!X.__s&&de(n.__H,t)&&(n.__=e,n.i=t,V.__h.push(n))}function le(e){return K=5,ue((function(){return{current:e}}),[])}function ue(e,t){var n=oe(z++,7);return de(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function ce(e){var t=V.context[e.__c],n=oe(z++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(V)),t.props.value):e.__}function _e(){for(var e;e=Q.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(pe),e.__H.__h.forEach(he),e.__H.__h=[]}catch(t){e.__H.__h=[],X.__e(t,e.__v)}}X.__b=function(e){V=null,Y&&Y(e)},X.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),re&&re(e,t)},X.__r=function(e){Z&&Z(e),z=0;var t=(V=e.__c).__H;t&&(J===V?(t.__h=[],V.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.i=e.__N=void 0}))):(t.__h.forEach(pe),t.__h.forEach(he),t.__h=[],z=0)),J=V},X.diffed=function(e){ee&&ee(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==Q.push(t)&&G===X.requestAnimationFrame||((G=X.requestAnimationFrame)||fe)(_e)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.i=void 0}))),J=V=null},X.__c=function(e,t){t.some((function(e){try{e.__h.forEach(pe),e.__h=e.__h.filter((function(e){return!e.__||he(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],X.__e(n,e.__v)}})),te&&te(e,t)},X.unmount=function(e){ne&&ne(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{pe(e)}catch(e){t=e}})),n.__H=void 0,t&&X.__e(t,n.__v))};var ae="function"==typeof requestAnimationFrame;function fe(e){var t,n=function(){clearTimeout(r),ae&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);ae&&(t=requestAnimationFrame(n))}function pe(e){var t=V,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),V=t}function he(e){var t=V;e.__c=e.__(),V=t}function de(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}var ve=Symbol.for("preact-signals");function ye(){if(be>1)be--;else{for(var e,t=!1;void 0!==we;){var n=we;for(we=void 0,xe++;void 0!==n;){var r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&$e(n))try{n.c()}catch(n){t||(e=n,t=!0)}n=r}}if(xe=0,be--,t)throw e}}var me,ge=void 0,we=void 0,be=0,xe=0,ke=0;function Se(e){if(void 0!==ge){var t=e.n;if(void 0===t||t.t!==ge)return t={i:0,S:e,p:ge.s,n:void 0,t:ge,e:void 0,x:void 0,r:t},void 0!==ge.s&&(ge.s.n=t),ge.s=t,e.n=t,32&ge.f&&e.S(t),t;if(-1===t.i)return t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=ge.s,t.n=void 0,ge.s.n=t,ge.s=t),t}}function Pe(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}function Ee(e){return new Pe(e)}function $e(e){for(var t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function Ce(e){for(var t=e.s;void 0!==t;t=t.n){var n=t.S.n;if(void 0!==n&&(t.r=n),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function Me(e){for(var t=e.s,n=void 0;void 0!==t;){var r=t.p;-1===t.i?(t.S.U(t),void 0!==r&&(r.n=t.n),void 0!==t.n&&(t.n.p=r)):n=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=r}e.s=n}function Te(e){Pe.call(this,void 0),this.x=e,this.s=void 0,this.g=ke-1,this.f=4}function Oe(e){return new Te(e)}function Ae(e){var t=e.u;if(e.u=void 0,"function"==typeof t){be++;var n=ge;ge=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,Ne(e),t}finally{ge=n,ye()}}}function Ne(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,Ae(e)}function Ue(e){if(ge!==this)throw new Error("Out-of-order effect");Me(this),ge=e,this.f&=-2,8&this.f&&Ne(this),ye()}function He(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function je(e){var t=new He(e);try{t.c()}catch(e){throw t.d(),e}return t.d.bind(t)}function We(e,t){r[e]=t.bind(null,r[e]||function(){})}function Le(e){me&&me(),me=e&&e.S()}function Fe(e){var t=this,n=e.data,r=function(e){return ue((function(){return Ee(e)}),[])}(n);r.value=n;var o=ue((function(){for(var e=t.__v;e=e.__;)if(e.__c){e.__c.__$f|=4;break}return t.__$u.c=function(){var e,n=t.__$u.S(),r=o.value;n(),i(r)||3!==(null==(e=t.base)?void 0:e.nodeType)?(t.__$f|=1,t.setState({})):t.base.data=r},Oe((function(){var e=r.value.value;return 0===e?0:!0===e?"":e||""}))}),[]);return o.value}function Re(e,t,n,r){var o=t in e&&void 0===e.ownerSVGElement,i=Ee(n);return{o:function(e,t){i.value=e,r=t},d:je((function(){var n=i.value.value;r[t]!==n&&(r[t]=n,o?e[t]=n:n?e.setAttribute(t,n):e.removeAttribute(t))}))}}Pe.prototype.brand=ve,Pe.prototype.h=function(){return!0},Pe.prototype.S=function(e){this.t!==e&&void 0===e.e&&(e.x=this.t,void 0!==this.t&&(this.t.e=e),this.t=e)},Pe.prototype.U=function(e){if(void 0!==this.t){var t=e.e,n=e.x;void 0!==t&&(t.x=n,e.e=void 0),void 0!==n&&(n.e=t,e.x=void 0),e===this.t&&(this.t=n)}},Pe.prototype.subscribe=function(e){var t=this;return je((function(){var n=t.value,r=ge;ge=void 0;try{e(n)}finally{ge=r}}))},Pe.prototype.valueOf=function(){return this.value},Pe.prototype.toString=function(){return this.value+""},Pe.prototype.toJSON=function(){return this.value},Pe.prototype.peek=function(){var e=ge;ge=void 0;try{return this.value}finally{ge=e}},Object.defineProperty(Pe.prototype,"value",{get:function(){var e=Se(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(xe>100)throw new Error("Cycle detected");this.v=e,this.i++,ke++,be++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{ye()}}}}),(Te.prototype=new Pe).h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===ke)return!0;if(this.g=ke,this.f|=1,this.i>0&&!$e(this))return this.f&=-2,!0;var e=ge;try{Ce(this),ge=this;var t=this.x();(16&this.f||this.v!==t||0===this.i)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return ge=e,Me(this),this.f&=-2,!0},Te.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}Pe.prototype.S.call(this,e)},Te.prototype.U=function(e){if(void 0!==this.t&&(Pe.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}},Te.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;void 0!==e;e=e.x)e.t.N()}},Object.defineProperty(Te.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=Se(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),He.prototype.c=function(){var e=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var t=this.x();"function"==typeof t&&(this.u=t)}finally{e()}},He.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Ae(this),Ce(this),be++;var e=ge;return ge=this,Ue.bind(this,e)},He.prototype.N=function(){2&this.f||(this.f|=2,this.o=we,we=this)},He.prototype.d=function(){this.f|=8,1&this.f||Ne(this)},Fe.displayName="_st",Object.defineProperties(Pe.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:Fe},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}}),We("__b",(function(e,t){if("string"==typeof t.type){var n,r=t.props;for(var o in r)if("children"!==o){var i=r[o];i instanceof Pe&&(n||(t.__np=n={}),n[o]=i,r[o]=i.peek())}}e(t)})),We("__r",(function(e,t){Le();var n,r=t.__c;r&&(r.__$f&=-2,void 0===(n=r.__$u)&&(r.__$u=n=function(e){var t;return je((function(){t=this})),t.c=function(){r.__$f|=1,r.setState({})},t}())),Le(n),e(t)})),We("__e",(function(e,t,n,r){Le(),e(t,n,r)})),We("diffed",(function(e,t){var n;if(Le(),"string"==typeof t.type&&(n=t.__e)){var r=t.__np,o=t.props;if(r){var i=n.U;if(i)for(var s in i){var l=i[s];void 0===l||s in r||(l.d(),i[s]=void 0)}else n.U=i={};for(var u in r){var c=i[u],_=r[u];void 0===c?(c=Re(n,u,_,o),i[u]=c):c.o(_,o)}}}e(t)})),We("unmount",(function(e,t){if("string"==typeof t.type){var n=t.__e;if(n){var r=n.U;if(r)for(var o in n.U=void 0,r){var i=r[o];i&&i.d()}}}else{var s=t.__c;if(s){var l=s.__$u;l&&(s.__$u=void 0,l.d())}}e(t)})),We("__h",(function(e,t,n,r){(r<3||9===r)&&(t.__$f|=2),e(t,n,r)})),S.prototype.shouldComponentUpdate=function(e,t){var n=this.__$u;if(!(n&&void 0!==n.s||4&this.__$f))return!0;if(3&this.__$f)return!0;for(var r in t)return!0;for(var o in e)if("__source"!==o&&e[o]!==this.props[o])return!0;for(var i in this.props)if(!(i in e))return!0;return!1};var De=new WeakMap,Ie=new WeakMap,qe=new WeakMap,Be=new WeakSet,ze=new WeakMap,Ve=/^\$/,Je=!1,Ge=function(e){if(!rt(e))throw new Error("This object can't be observed.");return Ie.has(e)||Ie.set(e,Qe(e,Ze)),Ie.get(e)},Ke=function(e,t){Je=!0;var n=e[t];try{Je=!1}catch(e){}return n},Qe=function(e,t){var n=new Proxy(e,t);return Be.add(n),n},Xe=function(){throw new Error("Don't mutate the signals directly.")},Ye=function(e){return function(t,n,r){var o;if(Je)return Reflect.get(t,n,r);var i=e||"$"===n[0];if(!e&&i&&Array.isArray(t)){if("$"===n)return qe.has(t)||qe.set(t,Qe(t,et)),qe.get(t);i="$length"===n}De.has(r)||De.set(r,new Map);var s=De.get(r),l=i?n.replace(Ve,""):n;if(s.has(l)||"function"!=typeof(null==(o=Object.getOwnPropertyDescriptor(t,l))?void 0:o.get)){var u=Reflect.get(t,l,r);if(i&&"function"==typeof u)return;if("symbol"==typeof l&&tt.has(l))return u;s.has(l)||(rt(u)&&(Ie.has(u)||Ie.set(u,Qe(u,Ze)),u=Ie.get(u)),s.set(l,Ee(u)))}else s.set(l,Oe((function(){return Reflect.get(t,l,r)})));return i?s.get(l):s.get(l).value}},Ze={get:Ye(!1),set:function(e,t,n,r){De.has(r)||De.set(r,new Map);var o=De.get(r);if("$"===t[0]){n instanceof Pe||Xe();var i=t.replace(Ve,"");return o.set(i,n),Reflect.set(e,i,n.peek(),r)}var s=n;rt(n)&&(Ie.has(n)||Ie.set(n,Qe(n,Ze)),s=Ie.get(n));var l=!(t in e),u=Reflect.set(e,t,n,r);return o.has(t)?o.get(t).value=s:o.set(t,Ee(s)),l&&ze.has(e)&&ze.get(e).value++,Array.isArray(e)&&o.has("length")&&(o.get("length").value=e.length),u},deleteProperty:function(e,t){"$"===t[0]&&Xe();var n=De.get(Ie.get(e)),r=Reflect.deleteProperty(e,t);return n&&n.has(t)&&(n.get(t).value=void 0),ze.has(e)&&ze.get(e).value++,r},ownKeys:function(e){return ze.has(e)||ze.set(e,Ee(0)),ze._=ze.get(e).value,Reflect.ownKeys(e)}},et={get:Ye(!0),set:Xe,deleteProperty:Xe},tt=new Set(Object.getOwnPropertyNames(Symbol).map((function(e){return Symbol[e]})).filter((function(e){return"symbol"==typeof e}))),nt=new Set([Object,Array]),rt=function(e){return"object"==typeof e&&null!==e&&(!("function"==typeof e.constructor&&e.constructor.name in globalThis&&globalThis[e.constructor.name]===e.constructor)||nt.has(e.constructor))&&!Be.has(e)};function ot(e){return this.getChildContext=()=>e.context,e.children}function it(e){const t=this,n=e._container;t.componentWillUnmount=function(){I(null,t._temp),t._temp=null,t._container=null},t._container&&t._container!==n&&t.componentWillUnmount(),e._vnode?(t._temp||(t._container=n,t._temp={nodeType:1,parentNode:n,childNodes:[],appendChild(e){this.childNodes.push(e),t._container.appendChild(e)},insertBefore(e){this.childNodes.push(e),t._container.appendChild(e)},removeChild(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t._container.removeChild(e)}}),I(b(ot,{context:t.context},e._vnode),t._temp)):t._temp&&t.componentWillUnmount()}const st=e=>!!e&&"object"==typeof e&&!Array.isArray(e),lt=(e,t)=>{if(st(e)&&st(t))for(const r in t){var n;const o=null===(n=Object.getOwnPropertyDescriptor(t,r))||void 0===n?void 0:n.get;"function"==typeof o?Object.defineProperty(e,r,{get:o}):st(t[r])?(e[r]||Object.assign(e,{[r]:{}}),lt(e[r],t[r])):Object.assign(e,{[r]:t[r]})}},ut=new Map,ct=new Map,_t=new Map,at=new WeakMap,ft=new WeakMap,pt=new WeakMap,ht=(e,t)=>{if(!at.has(e)){const n=new Proxy(e,dt);at.set(e,n),ft.set(n,t)}return at.get(e)},dt={get:(e,t,n)=>{var r,o;const i=ft.get(n),s=null===(r=Object.getOwnPropertyDescriptor(e,t))||void 0===r?void 0:r.get;if(s){const t=Mt();if(t){const n=pt.get(t)||pt.set(t,new Map).get(t);return n.has(s)||n.set(s,Oe((()=>{At(i),Tt(t);try{return s.call(e)}finally{Ot(),Nt()}}))),n.get(s).value}}const l=Reflect.get(e,t,n);if(void 0===l&&n===ut.get(i)){const r={};return Reflect.set(e,t,r,n),ht(r,i)}return"GeneratorFunction"===(null==l||null===(o=l.constructor)||void 0===o?void 0:o.name)?async(...e)=>{const t=Mt(),n=l(...e);let r,o;for(;;){At(i),Tt(t);try{o=n.next(r)}finally{Ot(),Nt()}try{r=await o.value}catch(e){n.throw(e)}if(o.done)break}return r}:"function"==typeof l?(...e)=>{At(i);try{return l(...e)}finally{Nt()}}:st(l)?ht(l,i):l}},vt="I acknowledge that using a private store means my plugin will inevitably break on the next store release.";function yt(e,{state:t={},...n}={},{lock:r=!1}={}){if(ut.has(e)){if(r===vt||_t.has(e)){const t=_t.get(e);if(r!==vt&&(!0===r||r!==t))throw t?Error("Cannot unlock a private store with an invalid lock code"):Error("Cannot lock a public store")}else _t.set(e,r);const o=ct.get(e);lt(o,n),lt(o.state,t)}else{r!==vt&&_t.set(e,r);const o={state:Ge(t),...n},i=new Proxy(o,dt);ct.set(e,o),ut.set(e,i),ft.set(i,e)}return ut.get(e)}Object.entries((()=>{const e=document.querySelector('script[type="application/json"]#wc-interactivity-initial-state');if(null==e||!e.textContent)return{};try{const t=JSON.parse(e.textContent);if(st(t))return t;throw Error("Parsed state is not an object")}catch(e){console.log(e)}return{}})()).forEach((([e,t])=>{yt(e,{state:t})}));var mt=0;function gt(e,t,n,o,i,s){t||(t={});var l,u,c=t;"ref"in t&&(l=t.ref,delete t.ref);var _={type:e,props:c,key:n,ref:l,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--mt,__i:-1,__u:0,__source:i,__self:s};if("function"==typeof e&&(l=e.defaultProps))for(u in l)void 0===c[u]&&(c[u]=l[u]);return r.vnode&&r.vnode(_),_}Array.isArray;const wt=B({}),bt=new WeakMap,xt=()=>{throw new Error("Please use `data-wp-bind` to modify the attributes of an element.")},kt={get(e,t,n){const r=Reflect.get(e,t,n);return r&&"object"==typeof r?St(r):r},set:xt,deleteProperty:xt},St=e=>(bt.has(e)||bt.set(e,new Proxy(e,kt)),bt.get(e)),Pt=[],Et=[],$t=e=>{var t;return null===(t=Mt())||void 0===t?void 0:t.context[e||Et.slice(-1)]},Ct=()=>{if(!Mt())throw Error("Cannot call `getElement()` outside getters and actions used by directives.");const{ref:e,state:t,props:n}=Mt();return Object.freeze({ref:e.current,state:t,props:St(n)})},Mt=()=>Pt.slice(-1)[0],Tt=e=>{Pt.push(e)},Ot=()=>{Pt.pop()},At=e=>{Et.push(e)},Nt=()=>{Et.pop()},Ut={},Ht={},jt=(e,t,{priority:n=10}={})=>{Ut[e]=t,Ht[e]=n},Wt=({scope:e}={})=>(t,...n)=>{let{value:r,namespace:o}=t;const i="!"===r[0]&&!!(r=r.slice(1));Tt(e);const s=((e,t)=>{let n={...ut.get(t),context:Mt().context[t]};return e.split(".").forEach((e=>n=n[e])),n})(r,o),l="function"==typeof s?s(...n):s;return Ot(),i?!l:l},Lt=({directives:e,priorityLevels:[t,...r],element:o,originalProps:i,previousScope:s={}})=>{const l=le({}).current;l.evaluate=function(e,t){return K=8,ue((function(){return e}),[])}(Wt({scope:l})),l.context=ce(wt),l.ref=s.ref||le(null),l.state=s.state||le(Ge({})).current,o=function(e,t,r){var o,i,s,l,u=g({},e.props);for(s in e.type&&e.type.defaultProps&&(l=e.type.defaultProps),t)"key"==s?o=t[s]:"ref"==s?i=t[s]:u[s]=void 0===t[s]&&void 0!==l?l[s]:t[s];return arguments.length>2&&(u.children=arguments.length>3?n.call(arguments,2):r),x(e.type,u,o||e.key,i||e.ref,null)}(o,{ref:l.ref}),l.props=o.props;const u=r.length>0?gt(Lt,{directives:e,priorityLevels:r,element:o,originalProps:i,previousScope:l}):o,c={...i,children:u},_={directives:e,props:c,element:o,context:wt,evaluate:l.evaluate};Tt(l);for(const e of t){var a;const t=null===(a=Ut[e])||void 0===a?void 0:a.call(Ut,_);void 0!==t&&(c.children=t)}return Ot(),c.children},Ft=r.vnode;r.vnode=e=>{if(e.props.__directives){const t=e.props,n=t.__directives;n.key&&(e.key=n.key.find((({suffix:e})=>"default"===e)).value),delete t.__directives;const r=(e=>{const t=Object.keys(e).reduce(((e,t)=>{if(Ut[t]){const n=Ht[t];(e[n]=e[n]||[]).push(t)}return e}),{});return Object.entries(t).sort((([e],[t])=>e-t)).map((([,e])=>e))})(n);r.length>0&&(e.props={directives:n,priorityLevels:r,originalProps:t,type:e.type,element:b(e.type,t),top:!0},e.type=Lt)}Ft&&Ft(e)};const Rt=B(),Dt=({slot:e,children:t})=>{const n=ce(Rt);return ie((()=>{if(e)return n.value={...n.value,[e]:t},()=>{n.value={...n.value,[e]:null}}}),[n,e,t]),e?null:t},It=({children:e})=>gt(Rt.Provider,{value:Ee({}),children:e}),qt=({name:e,children:t})=>ce(Rt).value[e]||t,Bt="wc",zt=`data-${Bt}-ignore`,Vt=`data-${Bt}-interactive`,Jt=`data-${Bt}-`;let Gt=null;const Kt=new RegExp(`^data-${Bt}-([a-z0-9]+(?:-[a-z0-9]+)*)(?:--([a-z0-9_-]+))?$`,"i"),Qt=/^([\w-_\/]+)::(.+)$/,Xt=new WeakSet;function Yt(e){const t=document.createTreeWalker(e,205);return function e(n){const{attributes:r,nodeType:o}=n;if(3===o)return[n.data];if(4===o){const e=t.nextSibling();return n.replaceWith(new window.Text(n.nodeValue)),[n.nodeValue,e]}if(8===o||7===o){const e=t.nextSibling();return n.remove(),[null,e]}const i={},s=[],l=[];let u=!1,c=!1;for(let e=0;e{const[,o,i="default"]=Kt.exec(t);return e[o]||(e[o]=[]),e[o].push({namespace:n??Gt,value:r,suffix:i}),e}),{})),"template"===n.localName)i.content=[...n.content.childNodes].map((e=>Yt(e)));else{let n=t.firstChild();if(n){for(;n;){const[r,o]=e(n);r&&s.push(r),n=o||t.nextSibling()}t.parentNode()}}return[b(n.localName,i,s)]}(t.currentNode)}const Zt=new Map,en=new WeakMap,tn=e=>(en.has(e)||en.set(e,((e,t)=>{const n=(t=[].concat(t))[t.length-1].nextSibling;function r(t,r){e.insertBefore(t,r||n)}return e.__k={nodeType:1,parentNode:e,firstChild:t[0],childNodes:t,insertBefore:r,appendChild:r,removeChild(t){e.removeChild(t)}}})(e.parentElement,e)),en.get(e)),nn=e=>{const t=new URL(e,window.location);return t.pathname+t.search},rn=e=>{const t={},n=`data-${Bt}-navigation-id`;return e.querySelectorAll(`[${n}]`).forEach((e=>{const r=e.getAttribute(n);t[r]=Yt(e)})),{regions:t}},on=(e,t={})=>{e=nn(e),!t.force&&Zt.has(e)||Zt.set(e,(async(e,{html:t})=>{try{if(!t){const n=await window.fetch(e);if(200!==n.status)return!1;t=await n.text()}const n=(new window.DOMParser).parseFromString(t,"text/html");return rn(n)}catch(e){return!1}})(e,t))},sn=e=>{const t=`data-${Bt}-navigation-id`;document.querySelectorAll(`[${t}]`).forEach((n=>{const r=n.getAttribute(t),o=tn(n);I(e.regions[r],o)}))};let ln="";const un=async(e,t={})=>{const n=nn(e);ln=e,on(n,t);const r=new Promise((e=>setTimeout(e,t.timeout??1e4))),o=await Promise.race([Zt.get(n),r]);ln===e&&(o?(sn(o),window.history[t.replace?"replaceState":"pushState"]({},"",e)):(window.location.assign(e),await new Promise((()=>{}))))};window.addEventListener("popstate",(async()=>{const e=nn(window.location),t=Zt.has(e)&&await Zt.get(e);t?sn(t):window.location.reload()}));const cn=e=>e&&"object"==typeof e&&!Array.isArray(e),_n=(e,t,n)=>{for(const r in t)cn(Ke(e,r))&&cn(Ke(t,r))?_n(e[`$${r}`].peek(),t[`$${r}`].peek(),n):void 0===Ke(e,r)?e[`$${r}`]=t[`$${r}`]:n&&(e[r]=Ke(t,r))},an=e=>cn(e)?Object.fromEntries(Object.entries(e).map((([e,t])=>[e,an(t)]))):Array.isArray(e)?[...e.map((e=>an(e)))]:e,fn=()=>{jt("context",(({directives:{context:e},props:{children:t},context:n})=>{const{Provider:r}=n,o=ce(n),i=le(Ge({})),s=e.map((({value:e})=>e));return i.current=ue((()=>{const t=e.map((e=>Ge({[e.namespace]:an(e.value)}))).reduceRight(_n);return _n(t,o),_n(i.current,t,!0),i.current}),[o,...s]),gt(r,{value:i.current,children:t})}),{priority:5}),jt("body",(({props:{children:e}})=>function(e,t){const n=b(it,{_vnode:e,_container:t});return n.containerInfo=t,n}(e,document.body))),jt("watch",(({directives:{watch:e},evaluate:t})=>{e.forEach((e=>{var n;n=()=>t(e),ie((()=>{let e=null,t=!1;return e=function(e,t){let n;const r=je((function(){return n=this.c.bind(this),this.x=e,this.c=t,e()}));return{flush:n,dispose:r}}(n,(async()=>{e&&!t&&(t=!0,await(e=>new Promise((t=>{const n=()=>{clearTimeout(r),window.cancelAnimationFrame(o),setTimeout((()=>{e(),t()}))},r=setTimeout(n,100),o=window.requestAnimationFrame(n)})))(e.flush),t=!1)})),e.dispose}),[])}))})),jt("layout-init",(({directives:{"layout-init":e},evaluate:t})=>{e.forEach((e=>{se((()=>t(e)),[])}))})),jt("init",(({directives:{init:e},evaluate:t})=>{e.forEach((e=>{ie((()=>t(e)),[])}))})),jt("on",(({directives:{on:e},element:t,evaluate:n})=>{const r=new Map;e.forEach((e=>{const t=e.suffix.split("--")[0];r.has(t)||r.set(t,new Set),r.get(t).add(e)})),r.forEach(((e,r)=>{t.props[`on${r}`]=t=>{e.forEach((e=>{n(e,t)}))}}))})),jt("class",(({directives:{class:e},element:t,evaluate:n})=>{e.filter((({suffix:e})=>"default"!==e)).forEach((e=>{const r=e.suffix,o=n(e,{className:r}),i=t.props.class||"",s=new RegExp(`(^|\\s)${r}(\\s|$)`,"g");o?s.test(i)||(t.props.class=i?`${i} ${r}`:r):t.props.class=i.replace(s," ").trim(),ie((()=>{o?t.ref.current.classList.add(r):t.ref.current.classList.remove(r)}),[])}))}));const e=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,t=/\/\*[^]*?\*\/| +/g,n=/\n+/g;jt("style",(({directives:{style:r},element:o,evaluate:i})=>{r.filter((({suffix:e})=>"default"!==e)).forEach((r=>{const s=r.suffix,l=i(r,{key:s});o.props.style=o.props.style||{},"string"==typeof o.props.style&&(o.props.style=(r=>{const o=[{}];let i,s;for(;i=e.exec(r.replace(t,""));)i[4]?o.shift():i[3]?(s=i[3].replace(n," ").trim(),o.unshift(o[0][s]=o[0][s]||{})):o[0][i[1]]=i[2].replace(n," ").trim();return o[0]})(o.props.style)),l?o.props.style[s]=l:delete o.props.style[s],ie((()=>{l?o.ref.current.style[s]=l:o.ref.current.style.removeProperty(s)}),[])}))})),jt("bind",(({directives:{bind:e},element:t,evaluate:n})=>{e.filter((({suffix:e})=>"default"!==e)).forEach((e=>{const r=e.suffix,o=n(e);t.props[r]=o,se((()=>{"role"===r&&null==o&&t.ref.current.removeAttribute(r)}),[r,o]),ie((()=>{const e=t.ref.current;if("width"!==r&&"height"!==r&&"href"!==r&&"list"!==r&&"form"!==r&&"tabIndex"!==r&&"download"!==r&&"rowSpan"!==r&&"colSpan"!==r&&"role"!==r&&r in e)try{return void(e[r]=null==o?"":o)}catch(e){}null==o||!1===o&&"-"!==r[4]?e.removeAttribute(r):e.setAttribute(r,o)}),[])}))})),jt("navigation-link",(({directives:{"navigation-link":e},props:{href:t},element:n})=>{const{value:r}=e.find((({suffix:e})=>"default"===e));!1!==r&&(n.props.onclick=async e=>{e.preventDefault(),await un(t),"smooth"===(null==r?void 0:r.scroll)?window.scrollTo({top:0,left:0,behavior:"smooth"}):!1!==(null==r?void 0:r.scroll)&&window.scrollTo(0,0)})})),jt("ignore",(({element:{type:e,props:{innerHTML:t,...n}}})=>gt(e,{dangerouslySetInnerHTML:{__html:ue((()=>t),[])},...n}))),jt("text",(({directives:{text:e},element:t,evaluate:n})=>{const r=e.find((({suffix:e})=>"default"===e));t.props.children=n(r)})),jt("slot",(({directives:{slot:e},props:{children:t},element:n})=>{const{value:r}=e.find((({suffix:e})=>"default"===e)),o="string"==typeof r?r:r.name,i=r.position||"children";return"before"===i?gt(k,{children:[gt(qt,{name:o}),t]}):"after"===i?gt(k,{children:[t,gt(qt,{name:o})]}):"replace"===i?gt(qt,{name:o,children:t}):void("children"===i&&(n.props.children=gt(qt,{name:o,children:n.props.children})))}),{priority:4}),jt("fill",(({directives:{fill:e},props:{children:t},evaluate:n})=>{const r=n(e.find((({suffix:e})=>"default"===e)));return gt(Dt,{slot:r,children:t})}),{priority:4}),jt("slot-provider",(({props:{children:e}})=>gt(It,{children:e})),{priority:4}),jt("each",(({directives:{each:e,"each-key":[t]},context:n,element:r,evaluate:o})=>{const{Provider:i}=n,s=ce(n),[l]=e,{namespace:u,suffix:c}=l;return o(l).map((e=>{const n=Ge({}),o=Ge({[u]:{["default"===c?"item":c]:e}});_n(o,s),_n(n,o,!0);const l={...Mt(),context:n},_=Wt({scope:l})(t);return gt(i,{value:n,children:r.props.content},_)}))}),{priority:20}),jt("each-child",(()=>null))};document.addEventListener("DOMContentLoaded",(async()=>{fn(),await(async()=>{document.querySelectorAll(`[data-${Bt}-interactive]`).forEach((e=>{if(!Xt.has(e)){const t=tn(e);q(Yt(e),t)}})),Zt.set(nn(window.location),Promise.resolve(rn(document)))})()})),(this.wc=this.wc||{}).__experimentalInteractivity=t})();