PluginProbe
Gutenberg / trunk
Gutenberg vtrunk
24.1.0 24.0.0 23.9.1 23.9.0 23.8.0 23.7.2 23.7.1 23.7.0 23.6.1 23.6.2 23.6.0 23.5.3 23.5.2 23.5.1 23.5.0 23.4.0 23.3.2 23.3.1 23.3.0 23.2.0 23.2.1 23.2.2 23.1.1 23.1.0 23.0.1 All 404 releases
← All changes | build/modules/interactivity/index.min.js +1 -1 23.1.0 → trunk View file →
@@ -1,2 +1,2 @@
1 -var he,m,Ht,it,X,Bt,Lt,et,ot,tt,rt,Ft,de={},At=[],Br=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,st=Array.isArray;function L(e,t){for(var r in t)e[r]=t[r];return e}function jt(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function U(e,t,r){var n,i,o,s={};for(o in t)o=="key"?n=t[o]:o=="ref"?i=t[o]:s[o]=t[o];if(arguments.length>2&&(s.children=arguments.length>3?he.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)s[o]===void 0&&(s[o]=e.defaultProps[o]);return _e(e,s,n,i,null)}function _e(e,t,r,n,i){var o={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:i??++Ht,__i:-1,__u:0};return i==null&&m.vnode!=null&&m.vnode(o),o}function Be(e){return e.children}function oe(e,t){this.props=e,this.context=t}function se(e,t){if(t==null)return e.__?se(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type=="function"?se(e):null}function Vt(e){var t,r;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null){e.__e=e.__c.base=r.__e;break}return Vt(e)}}function nt(e){(!e.__d&&(e.__d=!0)&&X.push(e)&&!Me.__r++||Bt!==m.debounceRendering)&&((Bt=m.debounceRendering)||Lt)(Me)}function Me(){var e,t,r,n,i,o,s,f;for(X.sort(et);e=X.shift();)e.__d&&(t=X.length,n=void 0,o=(i=(r=e).__v).__e,s=[],f=[],r.__P&&((n=L({},i)).__v=i.__v+1,m.vnode&&m.vnode(n),at(r.__P,n,i,r.__n,r.__P.namespaceURI,32&i.__u?[o]:null,s,o??se(i),!!(32&i.__u),f),n.__v=i.__v,n.__.__k[n.__i]=n,Jt(s,n,f),n.__e!=o&&Vt(n)),X.length>t&&X.sort(et));Me.__r=0}function zt(e,t,r,n,i,o,s,f,u,c,l){var a,d,p,w,P,h=n&&n.__k||At,_=t.length;for(r.__d=u,qr(r,t,h),u=r.__d,a=0;a<_;a++)(p=r.__k[a])!=null&&(d=p.__i===-1?de:h[p.__i]||de,p.__i=a,at(e,p,d,i,o,s,f,u,c,l),w=p.__e,p.ref&&d.ref!=p.ref&&(d.ref&&ft(d.ref,null,p),l.push(p.ref,p.__c||w,p)),P==null&&w!=null&&(P=w),65536&p.__u||d.__k===p.__k?u=Kt(p,u,e):typeof p.type=="function"&&p.__d!==void 0?u=p.__d:w&&(u=w.nextSibling),p.__d=void 0,p.__u&=-196609);r.__d=u,r.__e=P}function qr(e,t,r){var n,i,o,s,f,u=t.length,c=r.length,l=c,a=0;for(e.__k=[],n=0;n<u;n++)(i=t[n])!=null&&typeof i!="boolean"&&typeof i!="function"?(s=n+a,(i=e.__k[n]=typeof i=="string"||typeof i=="number"||typeof i=="bigint"||i.constructor==String?_e(null,i,null,null,null):st(i)?_e(Be,{children:i},null,null,null):i.constructor===void 0&&i.__b>0?_e(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i).__=e,i.__b=e.__b+1,o=null,(f=i.__i=Wr(i,r,s,l))!==-1&&(l--,(o=r[f])&&(o.__u|=131072)),o==null||o.__v===null?(f==-1&&a--,typeof i.type!="function"&&(i.__u|=65536)):f!==s&&(f==s-1?a--:f==s+1?a++:(f>s?a--:a++,i.__u|=65536))):i=e.__k[n]=null;if(l)for(n=0;n<c;n++)(o=r[n])!=null&&(131072&o.__u)==0&&(o.__e==e.__d&&(e.__d=se(o)),Qt(o,o))}function Kt(e,t,r){var n,i;if(typeof e.type=="function"){for(n=e.__k,i=0;n&&i<n.length;i++)n[i]&&(n[i].__=e,t=Kt(n[i],t,r));return t}e.__e!=t&&(t&&e.type&&!r.contains(t)&&(t=se(e)),r.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function Wr(e,t,r,n){var i=e.key,o=e.type,s=r-1,f=r+1,u=t[r];if(u===null||u&&i==u.key&&o===u.type&&(131072&u.__u)==0)return r;if(n>(u!=null&&(131072&u.__u)==0?1:0))for(;s>=0||f<t.length;){if(s>=0){if((u=t[s])&&(131072&u.__u)==0&&i==u.key&&o===u.type)return s;s--}if(f<t.length){if((u=t[f])&&(131072&u.__u)==0&&i==u.key&&o===u.type)return f;f++}}return-1}function qt(e,t,r){t[0]==="-"?e.setProperty(t,r??""):e[t]=r==null?"":typeof r!="number"||Br.test(t)?r:r+"px"}function $e(e,t,r,n,i){var o;e:if(t==="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||qt(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||qt(e.style,t,r[t])}else if(t[0]==="o"&&t[1]==="n")o=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||t==="onFocusOut"||t==="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=r,r?n?r.u=n.u:(r.u=ot,e.addEventListener(t,o?rt:tt,o)):e.removeEventListener(t,o?rt:tt,o);else{if(i=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=r??"";break e}catch{}typeof r=="function"||(r==null||r===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&r==1?"":r))}}function Wt(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.t==null)t.t=ot++;else if(t.t<r.u)return;return r(m.event?m.event(t):t)}}}function at(e,t,r,n,i,o,s,f,u,c){var l,a,d,p,w,P,h,_,v,R,I,x,C,De,Ge,Ze,M=t.type;if(t.constructor!==void 0)return null;128&r.__u&&(u=!!(32&r.__u),o=[f=t.__e=r.__e]),(l=m.__b)&&l(t);e:if(typeof M=="function")try{if(_=t.props,v="prototype"in M&&M.prototype.render,R=(l=M.contextType)&&n[l.__c],I=l?R?R.props.value:l.__:n,r.__c?h=(a=t.__c=r.__c).__=a.__E:(v?t.__c=a=new M(_,I):(t.__c=a=new oe(_,I),a.constructor=M,a.render=Lr),R&&R.sub(a),a.props=_,a.state||(a.state={}),a.context=I,a.__n=n,d=a.__d=!0,a.__h=[],a._sb=[]),v&&a.__s==null&&(a.__s=a.state),v&&M.getDerivedStateFromProps!=null&&(a.__s==a.state&&(a.__s=L({},a.__s)),L(a.__s,M.getDerivedStateFromProps(_,a.__s))),p=a.props,w=a.state,a.__v=t,d)v&&M.getDerivedStateFromProps==null&&a.componentWillMount!=null&&a.componentWillMount(),v&&a.componentDidMount!=null&&a.__h.push(a.componentDidMount);else{if(v&&M.getDerivedStateFromProps==null&&_!==p&&a.componentWillReceiveProps!=null&&a.componentWillReceiveProps(_,I),!a.__e&&(a.shouldComponentUpdate!=null&&a.shouldComponentUpdate(_,a.__s,I)===!1||t.__v===r.__v)){for(t.__v!==r.__v&&(a.props=_,a.state=a.__s,a.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(Oe){Oe&&(Oe.__=t)}),x=0;x<a._sb.length;x++)a.__h.push(a._sb[x]);a._sb=[],a.__h.length&&s.push(a);break e}a.componentWillUpdate!=null&&a.componentWillUpdate(_,a.__s,I),v&&a.componentDidUpdate!=null&&a.__h.push(function(){a.componentDidUpdate(p,w,P)})}if(a.context=I,a.props=_,a.__P=e,a.__e=!1,C=m.__r,De=0,v){for(a.state=a.__s,a.__d=!1,C&&C(t),l=a.render(a.props,a.state,a.context),Ge=0;Ge<a._sb.length;Ge++)a.__h.push(a._sb[Ge]);a._sb=[]}else do a.__d=!1,C&&C(t),l=a.render(a.props,a.state,a.context),a.state=a.__s;while(a.__d&&++De<25);a.state=a.__s,a.getChildContext!=null&&(n=L(L({},n),a.getChildContext())),v&&!d&&a.getSnapshotBeforeUpdate!=null&&(P=a.getSnapshotBeforeUpdate(p,w)),zt(e,st(Ze=l!=null&&l.type===Be&&l.key==null?l.props.children:l)?Ze:[Ze],t,r,n,i,o,s,f,u,c),a.base=t.__e,t.__u&=-161,a.__h.length&&s.push(a),h&&(a.__E=a.__=null)}catch(Oe){if(t.__v=null,u||o!=null){for(t.__u|=u?160:32;f&&f.nodeType===8&&f.nextSibling;)f=f.nextSibling;o[o.indexOf(f)]=null,t.__e=f}else t.__e=r.__e,t.__k=r.__k;m.__e(Oe,t,r)}else o==null&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=Hr(r.__e,t,r,n,i,o,s,u,c);(l=m.diffed)&&l(t)}function Jt(e,t,r){t.__d=void 0;for(var n=0;n<r.length;n++)ft(r[n],r[++n],r[++n]);m.__c&&m.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){m.__e(o,i.__v)}})}function Hr(e,t,r,n,i,o,s,f,u){var c,l,a,d,p,w,P,h=r.props,_=t.props,v=t.type;if(v==="svg"?i="http://www.w3.org/2000/svg":v==="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(c=0;c<o.length;c++)if((p=o[c])&&"setAttribute"in p==!!v&&(v?p.localName===v:p.nodeType===3)){e=p,o[c]=null;break}}if(e==null){if(v===null)return document.createTextNode(_);e=document.createElementNS(i,v,_.is&&_),f&&(m.__m&&m.__m(t,o),f=!1),o=null}if(v===null)h===_||f&&e.data===_||(e.data=_);else{if(o=o&&he.call(e.childNodes),h=r.props||de,!f&&o!=null)for(h={},c=0;c<e.attributes.length;c++)h[(p=e.attributes[c]).name]=p.value;for(c in h)if(p=h[c],c!="children"){if(c=="dangerouslySetInnerHTML")a=p;else if(!(c in _)){if(c=="value"&&"defaultValue"in _||c=="checked"&&"defaultChecked"in _)continue;$e(e,c,null,p,i)}}for(c in _)p=_[c],c=="children"?d=p:c=="dangerouslySetInnerHTML"?l=p:c=="value"?w=p:c=="checked"?P=p:f&&typeof p!="function"||h[c]===p||$e(e,c,p,h[c],i);if(l)f||a&&(l.__html===a.__html||l.__html===e.innerHTML)||(e.innerHTML=l.__html),t.__k=[];else if(a&&(e.innerHTML=""),zt(e,st(d)?d:[d],t,r,n,v==="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,s,o?o[0]:r.__k&&se(r,0),f,u),o!=null)for(c=o.length;c--;)jt(o[c]);f||(c="value",v==="progress"&&w==null?e.removeAttribute("value"):w!==void 0&&(w!==e[c]||v==="progress"&&!w||v==="option"&&w!==h[c])&&$e(e,c,w,h[c],i),c="checked",P!==void 0&&P!==e[c]&&$e(e,c,P,h[c],i))}return e}function ft(e,t,r){try{if(typeof e=="function"){var n=typeof e.__u=="function";n&&e.__u(),n&&t==null||(e.__u=e(t))}else e.current=t}catch(i){m.__e(i,r)}}function Qt(e,t,r){var n,i;if(m.unmount&&m.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||ft(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){m.__e(o,t)}n.base=n.__P=null}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&Qt(n[i],t,r||typeof e.type!="function");r||jt(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function Lr(e,t,r){return this.constructor(e,r)}function ct(e,t,r){var n,i,o,s;m.__&&m.__(e,t),i=(n=typeof r=="function")?null:r&&r.__k||t.__k,o=[],s=[],at(t,e=(!n&&r||t).__k=U(Be,null,[e]),i||de,de,t.namespaceURI,!n&&r?[r]:i?null:t.firstChild?he.call(t.childNodes):null,o,!n&&r?r:i?i.__e:t.firstChild,n,s),Jt(o,e,s)}function ut(e,t){ct(e,t,ut)}function ae(e,t,r){var n,i,o,s,f=L({},e.props);for(o in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)o=="key"?n=t[o]:o=="ref"?i=t[o]:f[o]=t[o]===void 0&&s!==void 0?s[o]:t[o];return arguments.length>2&&(f.children=arguments.length>3?he.call(arguments,2):r),_e(e.type,f,n||e.key,i||e.ref,null)}function Xt(e,t){var r={__c:t="__cC"+Ft++,__:e,Consumer:function(n,i){return n.children(i)},Provider:function(n){var i,o;return this.getChildContext||(i=[],(o={})[t]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){i=null},this.shouldComponentUpdate=function(s){this.props.value!==s.value&&i.some(function(f){f.__e=!0,nt(f)})},this.sub=function(s){i.push(s);var f=s.componentWillUnmount;s.componentWillUnmount=function(){i&&i.splice(i.indexOf(s),1),f&&f.call(s)}}),n.children}};return r.Provider.__=r.Consumer.contextType=r}he=At.slice,m={__e:function(e,t,r,n){for(var i,o,s;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(e)),s=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,n||{}),s=i.__d),s)return i.__E=i}catch(f){e=f}throw e}},Ht=0,it=function(e){return e!=null&&e.constructor==null},oe.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=L({},this.state),typeof e=="function"&&(e=e(L({},r),this.props)),e&&L(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),nt(this))},oe.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),nt(this))},oe.prototype.render=Be,X=[],Lt=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,et=function(e,t){return e.__v.__b-t.__v.__b},Me.__r=0,ot=0,tt=Wt(!1),rt=Wt(!0),Ft=0;var Y,y,lt,Yt,ve=0,sr=[],b=m,Zt=b.__b,er=b.__r,tr=b.diffed,rr=b.__c,nr=b.unmount,ir=b.__;function me(e,t){b.__h&&b.__h(y,e,ve||t),ve=0;var r=y.__H||(y.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function Fr(e){return ve=1,Ar(ar,e)}function Ar(e,t,r){var n=me(Y++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):ar(void 0,t),function(f){var u=n.__N?n.__N[0]:n.__[0],c=n.t(u,f);u!==c&&(n.__N=[c,n.__[1]],n.__c.setState({}))}],n.__c=y,!y.u)){var i=function(f,u,c){if(!n.__c.__H)return!0;var l=n.__c.__H.__.filter(function(d){return!!d.__c});if(l.every(function(d){return!d.__N}))return!o||o.call(this,f,u,c);var a=!1;return l.forEach(function(d){if(d.__N){var p=d.__[0];d.__=d.__N,d.__N=void 0,p!==d.__[0]&&(a=!0)}}),!(!a&&n.__c.props===f)&&(!o||o.call(this,f,u,c))};y.u=!0;var o=y.shouldComponentUpdate,s=y.componentWillUpdate;y.componentWillUpdate=function(f,u,c){if(this.__e){var l=o;o=void 0,i(f,u,c),o=l}s&&s.call(this,f,u,c)},y.shouldComponentUpdate=i}return n.__N||n.__}function ge(e,t){var r=me(Y++,3);!b.__s&&_t(r.__H,t)&&(r.__=e,r.i=t,y.__H.__h.push(r))}function We(e,t){var r=me(Y++,4);!b.__s&&_t(r.__H,t)&&(r.__=e,r.i=t,y.__h.push(r))}function V(e){return ve=5,F(function(){return{current:e}},[])}function F(e,t){var r=me(Y++,7);return _t(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function He(e,t){return ve=8,F(function(){return e},t)}function ye(e){var t=y.context[e.__c],r=me(Y++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(y)),t.props.value):e.__}function jr(){for(var e;e=sr.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(qe),e.__H.__h.forEach(pt),e.__H.__h=[]}catch(t){e.__H.__h=[],b.__e(t,e.__v)}}b.__b=function(e){y=null,Zt&&Zt(e)},b.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ir&&ir(e,t)},b.__r=function(e){er&&er(e),Y=0;var t=(y=e.__c).__H;t&&(lt===y?(t.__h=[],y.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.i=r.__N=void 0})):(t.__h.forEach(qe),t.__h.forEach(pt),t.__h=[],Y=0)),lt=y},b.diffed=function(e){tr&&tr(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(sr.push(t)!==1&&Yt===b.requestAnimationFrame||((Yt=b.requestAnimationFrame)||Vr)(jr)),t.__H.__.forEach(function(r){r.i&&(r.__H=r.i),r.i=void 0})),lt=y=null},b.__c=function(e,t){t.some(function(r){try{r.__h.forEach(qe),r.__h=r.__h.filter(function(n){return!n.__||pt(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],b.__e(n,r.__v)}}),rr&&rr(e,t)},b.unmount=function(e){nr&&nr(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{qe(n)}catch(i){t=i}}),r.__H=void 0,t&&b.__e(t,r.__v))};var or=typeof requestAnimationFrame=="function";function Vr(e){var t,r=function(){clearTimeout(n),or&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);or&&(t=requestAnimationFrame(r))}function qe(e){var t=y,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),y=t}function pt(e){var t=y;e.__c=e.__(),y=t}function _t(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function ar(e,t){return typeof t=="function"?t(e):t}var zr=Symbol.for("preact-signals");function Fe(){if(z>1)z--;else{for(var e,t=!1;we!==void 0;){var r=we;for(we=void 0,dt++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&cr(r))try{r.c()}catch(i){t||(e=i,t=!0)}r=n}}if(dt=0,z--,t)throw e}}function Z(e){if(z>0)return e();z++;try{return e()}finally{Fe()}}var g=void 0;var we=void 0,z=0,dt=0,Le=0;function fr(e){if(g!==void 0){var t=e.n;if(t===void 0||t.t!==g)return t={i:0,S:e,p:g.s,n:void 0,t:g,e:void 0,x:void 0,r:t},g.s!==void 0&&(g.s.n=t),g.s=t,e.n=t,32&g.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=g.s,t.n=void 0,g.s.n=t,g.s=t),t}}function E(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}E.prototype.brand=zr;E.prototype.h=function(){return!0};E.prototype.S=function(e){this.t!==e&&e.e===void 0&&(e.x=this.t,this.t!==void 0&&(this.t.e=e),this.t=e)};E.prototype.U=function(e){if(this.t!==void 0){var t=e.e,r=e.x;t!==void 0&&(t.x=r,e.e=void 0),r!==void 0&&(r.e=t,e.x=void 0),e===this.t&&(this.t=r)}};E.prototype.subscribe=function(e){var t=this;return A(function(){var r=t.value,n=g;g=void 0;try{e(r)}finally{g=n}})};E.prototype.valueOf=function(){return this.value};E.prototype.toString=function(){return this.value+""};E.prototype.toJSON=function(){return this.value};E.prototype.peek=function(){var e=g;g=void 0;try{return this.value}finally{g=e}};Object.defineProperty(E.prototype,"value",{get:function(){var e=fr(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(dt>100)throw new Error("Cycle detected");this.v=e,this.i++,Le++,z++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Fe()}}}});function k(e){return new E(e)}function cr(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function ur(e){for(var t=e.s;t!==void 0;t=t.n){var r=t.S.n;if(r!==void 0&&(t.r=r),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function lr(e){for(var t=e.s,r=void 0;t!==void 0;){var n=t.p;t.i===-1?(t.S.U(t),n!==void 0&&(n.n=t.n),t.n!==void 0&&(t.n.p=n)):r=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=n}e.s=r}function fe(e){E.call(this,void 0),this.x=e,this.s=void 0,this.g=Le-1,this.f=4}(fe.prototype=new E).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Le))return!0;if(this.g=Le,this.f|=1,this.i>0&&!cr(this))return this.f&=-2,!0;var e=g;try{ur(this),g=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(r){this.v=r,this.f|=16,this.i++}return g=e,lr(this),this.f&=-2,!0};fe.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}E.prototype.S.call(this,e)};fe.prototype.U=function(e){if(this.t!==void 0&&(E.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}};fe.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}};Object.defineProperty(fe.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=fr(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function be(e){return new fe(e)}function pr(e){var t=e.u;if(e.u=void 0,typeof t=="function"){z++;var r=g;g=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,ht(e),n}finally{g=r,Fe()}}}function ht(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,pr(e)}function Kr(e){if(g!==this)throw new Error("Out-of-order effect");lr(this),g=e,this.f&=-2,8&this.f&&ht(this),Fe()}function Se(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}Se.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}};Se.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,pr(this),ur(this),z++;var e=g;return g=this,Kr.bind(this,e)};Se.prototype.N=function(){2&this.f||(this.f|=2,this.o=we,we=this)};Se.prototype.d=function(){this.f|=8,1&this.f||ht(this)};function A(e){var t=new Se(e);try{t.c()}catch(r){throw t.d(),r}return t.d.bind(t)}var mt,vt;function ce(e,t){m[e]=t.bind(null,m[e]||function(){})}function Ae(e){vt&&vt(),vt=e&&e.S()}function _r(e){var t=this,r=e.data,n=Qr(r);n.value=r;var i=F(function(){for(var o=t.__v;o=o.__;)if(o.__c){o.__c.__$f|=4;break}return t.__$u.c=function(){var s;!it(i.peek())&&((s=t.base)==null?void 0:s.nodeType)===3?t.base.data=i.peek():(t.__$f|=1,t.setState({}))},be(function(){var s=n.value.value;return s===0?0:s===!0?"":s||""})},[]);return i.value}_r.displayName="_st";Object.defineProperties(E.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:_r},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});ce("__b",function(e,t){if(typeof t.type=="string"){var r,n=t.props;for(var i in n)if(i!=="children"){var o=n[i];o instanceof E&&(r||(t.__np=r={}),r[i]=o,n[i]=o.peek())}}e(t)});ce("__r",function(e,t){Ae();var r,n=t.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=(function(i){var o;return A(function(){o=this}),o.c=function(){n.__$f|=1,n.setState({})},o})())),mt=n,Ae(r),e(t)});ce("__e",function(e,t,r,n){Ae(),mt=void 0,e(t,r,n)});ce("diffed",function(e,t){Ae(),mt=void 0;var r;if(typeof t.type=="string"&&(r=t.__e)){var n=t.__np,i=t.props;if(n){var o=r.U;if(o)for(var s in o){var f=o[s];f!==void 0&&!(s in n)&&(f.d(),o[s]=void 0)}else r.U=o={};for(var u in n){var c=o[u],l=n[u];c===void 0?(c=Jr(r,u,l,i),o[u]=c):c.o(l,i)}}}e(t)});function Jr(e,t,r,n){var i=t in e&&e.ownerSVGElement===void 0,o=k(r);return{o:function(s,f){o.value=s,n=f},d:A(function(){var s=o.value.value;n[t]!==s&&(n[t]=s,i?e[t]=s:s?e.setAttribute(t,s):e.removeAttribute(t))})}}ce("unmount",function(e,t){if(typeof t.type=="string"){var r=t.__e;if(r){var n=r.U;if(n){r.U=void 0;for(var i in n){var o=n[i];o&&o.d()}}}}else{var s=t.__c;if(s){var f=s.__$u;f&&(s.__$u=void 0,f.d())}}e(t)});ce("__h",function(e,t,r,n){(n<3||n===9)&&(t.__$f|=2),e(t,r,n)});oe.prototype.shouldComponentUpdate=function(e,t){var r=this.__$u;if(!(r&&r.s!==void 0||4&this.__$f)||3&this.__$f)return!0;for(var n in t)return!0;for(var i in e)if(i!=="__source"&&e[i]!==this.props[i])return!0;for(var o in this.props)if(!(o in e))return!0;return!1};function Qr(e){return F(function(){return k(e)},[])}var gt=[],B=()=>gt.slice(-1)[0],q=e=>{gt.push(e)},W=()=>{gt.pop()};var yt=[],D=()=>yt.slice(-1)[0],ee=e=>{yt.push(e)},j=()=>{yt.pop()};var Xr=e=>D().context[e||B()],Yr=()=>{let e=D(),t={},{ref:r,attributes:n}=e;return Object.freeze({ref:r.current,attributes:xe(n,t)})},je=k(0);function wt(e){let t=D();return wt.subscribe=je.value,K(t.serverContext[e||B()])}wt.subscribe=0;var Zr=e=>new Promise(t=>{let r=()=>{clearTimeout(n),window.cancelAnimationFrame(i),setTimeout(()=>{e(),t()})},n=setTimeout(r,100),i=window.requestAnimationFrame(r)}),te=typeof window.scheduler?.yield=="function"?window.scheduler.yield.bind(window.scheduler):()=>new Promise(e=>{setTimeout(e,0)}),dr=e=>{let[t]=performance.getEntriesByType("navigation");t.domContentLoadedEventStart>0?e():document.addEventListener("DOMContentLoaded",e)};function en(e,t){let r=()=>{},n=A(function(){return r=this.c.bind(this),this.x=e,this.c=t,e()});return{flush:r,dispose:n}}function tn(e){ge(()=>{let t=null,r=!1;return t=en(e,async()=>{t&&!r&&(r=!0,await Zr(t.flush),r=!1)}),t.dispose},[])}function O(e){let t=D(),r=B(),n;if(e?.constructor?.name==="GeneratorFunction"?n=async(...o)=>{let s=e(...o),f,u,c;for(;;){q(r),ee(t);try{u=c?s.throw(c):s.next(f),c=void 0}catch(l){throw l}finally{j(),W()}try{f=await u.value}catch(l){c=l}if(u.done){if(c)throw c;break}}return f}:n=(...o)=>{q(r),ee(t);try{return e(...o)}finally{W(),j()}},e.sync){let o=n;return o.sync=!0,o}return n}function St(e){tn(O(e))}function J(e){ge(O(e),[])}function rn(e,t){ge(O(e),t)}function nn(e,t){We(O(e),t)}function on(e,t){return He(O(e),t)}function sn(e,t){return F(O(e),t)}var hr=(e,t)=>{t=[].concat(t);let r=t[t.length-1].nextSibling;function n(i,o){e.insertBefore(i,o||r)}return e.__k={nodeType:1,parentNode:e,firstChild:t[0],childNodes:t,insertBefore:n,appendChild:n,removeChild(i){e.removeChild(i)},contains(i){e.contains(i)}}};function vr(e){return e.replace(/^-+|-+$/g,"").toLowerCase().replace(/-([a-z])/g,function(t,r){return r.toUpperCase()})}var Ee=e=>{},T=e=>!!(e&&typeof e=="object"&&e.constructor===Object);function an(e){let t=e;return t.sync=!0,t}var bt=new WeakMap,fn=e=>{let t=()=>!1;return{get(r,n){let i=r[n];return i&&typeof i=="object"?xe(i,{errorMessage:e}):i},set:t,deleteProperty:t,defineProperty:t}};function xe(e,t){let r=t?.errorMessage??"Cannot modify read-only object";if(!bt.has(e)){let n=fn(r);bt.set(e,new Proxy(e,n))}return bt.get(e)}var Ve=k(0),ze=Math.random().toString(36).slice(2);function K(e){return T(e)?Object.fromEntries(Object.entries(e).map(([t,r])=>[t,K(r)])):Array.isArray(e)?e.map(t=>K(t)):e}var Ke=new WeakMap,mr=new WeakMap,xt=new WeakMap,cn=new Set([Object,Array]),Je=(e,t,r)=>{if(!re(t))throw Error("This object cannot be proxified.");if(!Ke.has(t)){let n=new Proxy(t,r);Ke.set(t,n),mr.set(n,t),xt.set(n,e)}return Ke.get(t)},Qe=e=>Ke.get(e),$=e=>xt.get(e),re=e=>typeof e!="object"||e===null?!1:!xt.has(e)&&cn.has(e.constructor),gr=e=>mr.get(e);var un={},yr=class{owner;computedsByScope;valueSignal;getterSignal;pendingGetter;constructor(e){this.owner=e,this.computedsByScope=new WeakMap}setValue(e){this.update({value:e})}setGetter(e){this.update({get:e})}setPendingGetter(e){this.pendingGetter=e,queueMicrotask(()=>this.consolidateGetter())}consolidateGetter(){let e=this.pendingGetter;e&&(this.pendingGetter=void 0,this.update({get:e}))}getComputed(){let e=D()||un;if(!this.valueSignal&&!this.getterSignal&&this.update({}),this.pendingGetter&&this.consolidateGetter(),!this.computedsByScope.has(e)){let t=()=>{let r=this.getterSignal?.value;return r?r.call(this.owner):this.valueSignal?.value};q($(this.owner)),this.computedsByScope.set(e,be(O(t))),W()}return this.computedsByScope.get(e)}update({get:e,value:t}){this.valueSignal?(t!==this.valueSignal.peek()||e!==this.getterSignal.peek())&&Z(()=>{this.valueSignal.value=t,this.getterSignal.value=e}):(this.valueSignal=k(t),this.getterSignal=k(e))}};var ln=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(e=>typeof e=="symbol")),ue=new WeakMap,pn=(e,t)=>ue.has(e)&&ue.get(e).has(t),Pe=(e,t,r)=>{ue.has(e)||ue.set(e,new Map),t=typeof t=="number"?`${t}`:t;let n=ue.get(e);if(!n.has(t)){let i=$(e),o=new yr(e);if(n.set(t,o),r){let{get:s,value:f}=r;s?o.setGetter(s):o.setValue(re(f)?G(i,f):f)}}return n.get(t)},H=new WeakMap,Et=!1,N=Symbol("PENDING_GETTER"),_n={get(e,t,r){if(Et||!e.hasOwnProperty(t)&&t in e||typeof t=="symbol"&&ln.has(t))return Reflect.get(e,t,r);let n=Object.getOwnPropertyDescriptor(e,t),o=Pe(r,t,n).getComputed().value;if(o===N)throw N;if(typeof o=="function"){let s=$(r);return(...f)=>{q(s);try{return o.call(r,...f)}finally{W()}}}return o},set(e,t,r,n){q($(n));try{return Reflect.set(e,t,r,n)}finally{W()}},defineProperty(e,t,r){let n=!(t in e),i=Reflect.defineProperty(e,t,r);if(i){let o=Qe(e),s=Pe(o,t),{get:f,value:u}=r;if(f)s.setGetter(f);else{let c=$(o);s.setValue(re(u)?G(c,u):u)}n&&H.has(e)&&H.get(e).value++,Array.isArray(e)&&ue.get(o)?.has("length")&&Pe(o,"length").setValue(e.length)}return i},deleteProperty(e,t){let r=Reflect.deleteProperty(e,t);return r&&(Pe(Qe(e),t).setValue(void 0),H.has(e)&&H.get(e).value++),r},ownKeys(e){return H.has(e)||H.set(e,k(0)),H._=H.get(e).value,Reflect.ownKeys(e)}},G=(e,t)=>Je(e,t,_n),Tt=(e,t)=>{Et=!0;try{return e[t]}finally{Et=!1}},Pt=(e,t,r=!0)=>{if(!(T(e)&&T(t)))return;let n=!1;for(let i in t){let o=!(i in e);n=n||o;let s=Object.getOwnPropertyDescriptor(t,i),f=Qe(e),u=!!f&&pn(f,i)&&Pe(f,i);if(typeof s.get=="function"||typeof s.set=="function")(r||o)&&(Object.defineProperty(e,i,{...s,configurable:!0,enumerable:!0}),s.get&&u&&u.setPendingGetter(s.get));else if(T(t[i])){let c=Object.getOwnPropertyDescriptor(e,i)?.value;if(o||r&&!T(c)){if(e[i]={},u){let l=$(f);u.setValue(G(l,e[i]))}Pt(e[i],t[i],r)}else T(c)&&Pt(e[i],t[i],r)}else if((r||o)&&(Object.defineProperty(e,i,s),u)){let{value:c}=s,l=$(f);u.setValue(re(c)?G(l,c):c)}}n&&H.has(e)&&H.get(e).value++},ne=(e,t,r=!0)=>Z(()=>Pt(gr(e)||e,t,r));var wr=new WeakSet,dn={get:(e,t,r)=>{let n=Reflect.get(e,t),i=$(r);if(typeof n>"u"&&wr.has(r)){let o={};return Reflect.set(e,t,o),Te(i,o,!1)}if(typeof n=="function"){q(i);let o=O(n);return W(),o}return T(n)&&re(n)?Te(i,n,!1):n}},Te=(e,t,r=!0)=>{let n=Je(e,t,dn);return n&&r&&wr.add(n),n};var It=new WeakMap,le=new WeakMap,br=new WeakSet,Sr=Reflect.getOwnPropertyDescriptor,hn={get:(e,t)=>{let r=le.get(e),n=e[t];return t in e?n:r[t]},set:(e,t,r)=>{let n=le.get(e),i=t in e||!(t in n)?e:n;return i[t]=r,!0},ownKeys:e=>[...new Set([...Object.keys(le.get(e)),...Object.keys(e)])],getOwnPropertyDescriptor:(e,t)=>Sr(e,t)||Sr(le.get(e),t),has:(e,t)=>Reflect.has(e,t)||Reflect.has(le.get(e),t)},Ie=(e,t={})=>{if(br.has(e))throw Error("This object cannot be proxified.");if(le.set(e,t),!It.has(e)){let r=new Proxy(e,hn);It.set(e,r),br.add(r)}return It.get(e)};var Ce=new Map,xr=new Map,Xe=new Map,Ct=new Map,ke=new Map,vn=e=>Ct.get(e||B())||{};function kt(e){let t=e||B();return ke.has(t)||ke.set(t,{}),kt.subscribe=Ve.value,K(ke.get(t))}kt.subscribe=0;var ie="I acknowledge that using a private store means my plugin will inevitably break on the next store release.";function Ne(e,{state:t={},...r}={},{lock:n=!1}={}){if(Ce.has(e)){if(n!==ie&&!Xe.has(e))Xe.set(e,n);else{let o=Xe.get(e);if(!(n===ie||n!==!0&&n===o))throw Error(o?"Cannot unlock a private store with an invalid lock code":"Cannot lock a public store")}let i=xr.get(e);ne(i,r),ne(i.state,t)}else{n!==ie&&Xe.set(e,n);let i={state:G(e,T(t)?t:{}),...r},o=Te(e,i);xr.set(e,i),Ce.set(e,o)}return Ce.get(e)}var Nt=(e=document)=>{let t=e.getElementById("wp-script-module-data-@wordpress/interactivity")??e.getElementById("wp-interactivity-data");if(t?.textContent)try{return JSON.parse(t.textContent)}catch{}return{}},Rt=e=>{ke.clear(),Ct.clear(),T(e?.state)&&Object.entries(e.state).forEach(([t,r])=>{let n=Ne(t,{},{lock:ie});ne(n.state,r,!1),ke.set(t,r)}),T(e?.config)&&Object.entries(e.config).forEach(([t,r])=>{Ct.set(t,r)}),T(e?.derivedStateClosures)&&Object.entries(e.derivedStateClosures).forEach(([t,r])=>{let n=Ne(t,{},{lock:ie});r.forEach(i=>{let o=i.split("."),s=o.splice(-1,1)[0],f=o.reduce((c,l)=>Tt(c,l),n),u=Object.getOwnPropertyDescriptor(f,s);T(u?.value)&&(f[s]=N)})})};function Q(e){return e.suffix!==null}function pe(e){return e.suffix===null}var Er=Xt({client:{},server:{}}),Ut={},Tr={},S=(e,t,{priority:r=10}={})=>{Ut[e]=t,Tr[e]=r},mn=(e,t)=>{if(!t){Ee(`Namespace missing for "${e}". The value for that path won't be resolved.`);return}let r=Ce.get(t);typeof r>"u"&&(r=Ne(t,{},{lock:ie}));let n={...r,context:D().context[t]};try{return e.split(".").reduce((o,s)=>o[s],n)}catch(i){if(i===N)return N}},Dt=({scope:e})=>((t,...r)=>{let{value:n,namespace:i}=t;if(typeof n!="string")throw new Error("The `value` prop should be a string path");let o=n[0]==="!"&&!!(n=n.slice(1));ee(e);let s=mn(n,i);if(typeof s=="function"){if(o){Ee("Using a function with a negation operator is deprecated and will stop working in WordPress 6.9. Please use derived state instead.");let c=!s(...r);return j(),c}j();let u=(...c)=>{ee(e);let l=s(...c);return j(),l};if(s.sync){let c=u;c.sync=!0}return u}let f=s;return j(),o&&s!==N?!f:f}),gn=e=>{let t=Object.keys(e).reduce((r,n)=>{if(Ut[n]){let i=Tr[n];(r[i]=r[i]||[]).push(n)}return r},{});return Object.entries(t).sort(([r],[n])=>parseInt(r)-parseInt(n)).map(([,r])=>r)},Ir=({directives:e,priorityLevels:[t,...r],element:n,originalProps:i,previousScope:o})=>{let s=V({}).current;s.evaluate=He(Dt({scope:s}),[]);let{client:f,server:u}=ye(Er);s.context=f,s.serverContext=u,s.ref=o?.ref||V(null),n=ae(n,{ref:s.ref}),s.attributes=n.props;let c=r.length>0?U(Ir,{directives:e,priorityLevels:r,element:n,originalProps:i,previousScope:s}):n,l={...i,children:c},a={directives:e,props:l,element:n,context:Er,evaluate:s.evaluate};ee(s);for(let d of t){let p=Ut[d]?.(a);p!==void 0&&(l.children=p)}return j(),l.children},Pr=m.vnode;m.vnode=e=>{if(e.props.__directives){let t=e.props,r=t.__directives;r.key&&(e.key=r.key.find(pe).value),delete t.__directives;let n=gn(r);n.length>0&&(e.props={directives:r,priorityLevels:n,originalProps:t,type:e.type,element:U(e.type,t),top:!0},e.type=Ir)}Pr&&Pr(e)};function Ur(e){let t={get(r,n,i){let o=r[n];switch(n){case"currentTarget":break;case"preventDefault":case"stopImmediatePropagation":case"stopPropagation":break}return o instanceof Function?function(...s){return o.apply(this===i?r:this,s)}:o}};return new Proxy(e,t)}var yn=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,wn=/\/\*[^]*?\*\/| +/g,Cr=/\n+/g,kr=" ",bn=e=>{let t=[{}],r,n;for(;r=yn.exec(e.replace(wn,""));)r[4]?t.shift():r[3]?(n=r[3].replace(Cr,kr).trim(),t.unshift(t[0][n]=t[0][n]||{})):t[0][r[1]]=r[2].replace(Cr,kr).trim();return t[0]},Nr=e=>({directives:t,evaluate:r})=>{t[`on-${e}`].filter(Q).forEach(n=>{let o=n.suffix.split("--",2)[0];J(()=>{let s=u=>{let c=r(n);typeof c=="function"&&(c?.sync||(u=Ur(u)),c(u))},f=e==="window"?window:document;return f.addEventListener(o,s),()=>f.removeEventListener(o,s)})})},Sn=(e,t,r,n,i)=>{let o={...e.client,[t]:{...e.client[t],[n]:r}},s={...D(),context:o,serverContext:e.server};return i?Dt({scope:s})(i):r},xn=function*(e,t,r,n,i){let{current:o}=V(new Map);for(let s of r){let f=Sn(e,t,s,n,i);o.has(f)||o.set(f,Ie(G(t,{[n]:void 0}),e.client[t])),yield[s,o.get(f),f]}},Rr=e=>({directives:t,evaluate:r})=>{t[`on-async-${e}`].filter(Q).forEach(n=>{let i=n.suffix.split("--",1)[0];J(()=>{let o=async f=>{await te();let u=r(n);typeof u=="function"&&u(f)},s=e==="window"?window:document;return s.addEventListener(i,o,{passive:!0}),()=>s.removeEventListener(i,o)})})},Re=new Map,Dr=()=>{S("context",({directives:{context:e},props:{children:t},context:r})=>{let n=e.filter(pe).reverse();if(!n.length)return;let{Provider:i}=r,{client:o,server:s}=ye(r),f=V({}),u={},c={client:{...o},server:{...s}},l=new Set;return n.forEach(({value:a,namespace:d,uniqueId:p})=>{T(a)&&(f.current[d]||(f.current[d]=G(d,{})),ne(f.current[d],K(a),!1),u[d]=a,l.add(d))}),l.forEach(a=>{c.client[a]=Ie(f.current[a],o[a]),c.server[a]=Ie(u[a],s[a])}),U(i,{value:c},t)},{priority:5}),S("watch",({directives:{watch:e},evaluate:t})=>{e.forEach(r=>{St(()=>{let n,i=t(r);return typeof i=="function"&&(i=i()),i})})}),S("init",({directives:{init:e},evaluate:t})=>{e.forEach(r=>{J(()=>{let n,i=t(r);return typeof i=="function"&&(i=i()),i})})}),S("on",({directives:{on:e},element:t,evaluate:r})=>{let n=new Map;e.filter(Q).forEach(i=>{let o=i.suffix.split("--",2);n.has(o[0])||n.set(o[0],new Set),n.get(o[0]).add(i)}),n.forEach((i,o)=>{let s=t.props[`on${o}`];t.props[`on${o}`]=f=>{s&&s(f),i.forEach(u=>{let c,l=r(u);typeof l=="function"&&(l?.sync||(f=Ur(f)),l(f))})}})}),S("on-async",({directives:{"on-async":e},element:t,evaluate:r})=>{let n=new Map;e.filter(Q).forEach(i=>{let o=i.suffix.split("--",1)[0];n.has(o)||n.set(o,new Set),n.get(o).add(i)}),n.forEach((i,o)=>{let s=t.props[`on${o}`];t.props[`on${o}`]=f=>{s&&s(f),i.forEach(async u=>{await te();let c=r(u);typeof c=="function"&&c(f)})}})}),S("on-window",Nr("window")),S("on-document",Nr("document")),S("on-async-window",Rr("window")),S("on-async-document",Rr("document")),S("class",({directives:{class:e},element:t,evaluate:r})=>{e.filter(Q).forEach(n=>{let i=n.uniqueId?`${n.suffix}---${n.uniqueId}`:n.suffix,o=r(n);if(o===N)return;typeof o=="function"&&(o=o());let s=t.props.class||"",f=new RegExp(`(^|\\s)${i}(\\s|$)`,"g");o?f.test(s)||(t.props.class=s?`${s} ${i}`:i):t.props.class=s.replace(f," ").trim(),J(()=>{o?t.ref.current.classList.add(i):t.ref.current.classList.remove(i)})})}),S("style",({directives:{style:e},element:t,evaluate:r})=>{e.filter(Q).forEach(n=>{if(n.uniqueId)return;let i=n.suffix,o=r(n);o!==N&&(typeof o=="function"&&(o=o()),t.props.style=t.props.style||{},typeof t.props.style=="string"&&(t.props.style=bn(t.props.style)),o?t.props.style[i]=o:delete t.props.style[i],J(()=>{o?t.ref.current.style.setProperty(i,o):t.ref.current.style.removeProperty(i)}))})}),S("bind",({directives:{bind:e},element:t,evaluate:r})=>{e.filter(Q).forEach(n=>{if(n.uniqueId)return;let i=n.suffix,o=r(n);o!==N&&(typeof o=="function"&&(o=o()),t.props[i]=o,J(()=>{let s=t.ref.current;if(i==="style"){typeof o=="string"&&(s.style.cssText=o);return}else if(i!=="width"&&i!=="height"&&i!=="href"&&i!=="list"&&i!=="form"&&i!=="tabIndex"&&i!=="download"&&i!=="rowSpan"&&i!=="colSpan"&&i!=="role"&&i in s)try{s[i]=o??"";return}catch{}o!=null&&(o!==!1||i[4]==="-")?s.setAttribute(i,o):s.removeAttribute(i)}))})}),S("ignore",({element:{type:e,props:{innerHTML:t,...r}}})=>{let n=F(()=>t,[]);return U(e,{dangerouslySetInnerHTML:{__html:n},...r})}),S("text",({directives:{text:e},element:t,evaluate:r})=>{let n=e.filter(pe);n.length&&n.forEach(i=>{if(!i.uniqueId)try{let o=r(i);if(o===N)return;typeof o=="function"&&(o=o()),t.props.children=typeof o=="object"?null:o.toString()}catch{t.props.children=null}})}),S("run",({directives:{run:e},evaluate:t})=>{e.forEach(r=>{let n=t(r);return typeof n=="function"&&(n=n()),n})}),S("each",({directives:{each:e,"each-key":t},context:r,element:n,evaluate:i})=>{if(n.type!=="template")return;let{Provider:o}=r,s=ye(r),[f]=e,{namespace:u,suffix:c,uniqueId:l}=f;if(e.length>1||l)return;let a=i(f);if(a===N||(typeof a=="function"&&(a=a()),typeof a?.[Symbol.iterator]!="function"))return;let d=c?vr(c):"item",p=[],w=xn(s,u,a,d,t?.[0]);for(let[P,h,_]of w){let v={client:{...s.client,[u]:h},server:{...s.server}};v.client[u][d]=P,p.push(U(o,{value:v,key:_},n.props.content))}return p},{priority:20}),S("each-child",({directives:{"each-child":e},element:t,evaluate:r})=>{let n=e.find(pe);return n?r(n)===N?t:null:void 0},{priority:1}),S("router-region",({directives:{"router-region":e}})=>{let t=e.find(pe);if(!t||t.suffix||t.uniqueId)return;let r=typeof t.value=="string"?t.value:t.value.id;Re.has(r)||Re.set(r,k());let n=Re.get(r).value;if(We(()=>{n&&typeof n.type!="string"&&(je.value=je.peek()+1)},[n]),n&&typeof n.type!="string"){let i=D();return ae(n,{previousScope:i})}return n},{priority:1})};var Gt="data-wp-",Ye=[],En=()=>Ye[Ye.length-1]??null,Pn=e=>!!(e&&typeof e=="object"&&e.constructor===Object),Tn=/[^a-z0-9-_]/i;function In(e){let t=e.substring(8);if(Tn.test(t))return null;let r=t.indexOf("--");if(r===-1)return{prefix:t,suffix:null,uniqueId:null};let n=t.substring(0,r),i=t.substring(r);if(i.startsWith("---")&&i[3]!=="-")return{prefix:n,suffix:null,uniqueId:i.substring(3)||null};let o=i.substring(2),s=o.indexOf("---");if(s!==-1&&o.substring(s)[3]!=="-"){let f=o.substring(s+3)||null;return o=o.substring(0,s)||null,{prefix:n,suffix:o,uniqueId:f}}return{prefix:n,suffix:o||null,uniqueId:null}}var Cn=/^([\w_\/-]+)::(.+)$/,Ot=new WeakSet;function Ue(e){let t=new Set,r=new Set,n=document.createTreeWalker(e,205);function i(s){let{nodeType:f}=s;if(f===3)return s.data;if(f===4)return r.add(s),s.nodeValue;if(f===8||f===7)return t.add(s),null;let u=s,{attributes:c}=u,l=u.localName,a={},d=[],p=[],w=!1,P=!1;for(let h=0;h<c.length;h++){let _=c[h].name,v=c[h].value;if(_[Gt.length]&&_.slice(0,Gt.length)===Gt)if(_==="data-wp-ignore")w=!0;else{let R=Cn.exec(v),I=R?.[1]??null,x=R?.[2]??v;try{let C=JSON.parse(x);x=Pn(C)?C:x}catch{}if(_==="data-wp-interactive"){P=!0;let C=typeof x=="string"?x:typeof x?.namespace=="string"?x.namespace:null;Ye.push(C)}else p.push([_,I,x])}else if(_==="ref")continue;v===""&&u[_]===!0?a[_]=!0:a[_]=v}if(w&&!P)return[U(l,{...a,innerHTML:u.innerHTML,__directives:{ignore:!0}})];if(P&&Ot.add(u),p.length){a.__directives=p.reduce((h,[_,v,R])=>{let I=In(_);if(I===null)return h;let{prefix:x,suffix:C,uniqueId:De}=I;return h[x]=h[x]||[],h[x].push({namespace:v??En(),value:R,suffix:C,uniqueId:De}),h},{});for(let h in a.__directives)a.__directives[h].sort((_,v)=>{let R=_.suffix??"",I=v.suffix??"";if(R!==I)return R<I?-1:1;let x=_.uniqueId??"",C=v.uniqueId??"";return+(x>C)-+(x<C)})}if(a.__directives?.["each-child"])a.dangerouslySetInnerHTML={__html:u.innerHTML};else if(l==="template")a.content=[...u.content.childNodes].map(h=>Ue(h));else{let h=n.firstChild();if(h){for(;h;){let _=i(h);_&&d.push(_),h=n.nextSibling()}n.parentNode()}}return P&&Ye.pop(),U(l,a,d)}let o=i(n.currentNode);return t.forEach(s=>s.remove()),r.forEach(s=>s.replaceWith(new window.Text(s.nodeValue??""))),o}var $t=new WeakMap,Mt=e=>{let t=Array.isArray(e)?e[0]:e;if(!t.parentElement)throw Error("The passed region should be an element with a parent.");return $t.has(t)||$t.set(t,hr(t.parentElement,e)),$t.get(t)},Gr=new WeakMap,Or,$r=new Promise(e=>{Or=e}),Mr=async()=>{let e=document.querySelectorAll("[data-wp-interactive]");for(let t of e)if(!Ot.has(t)){await te();let r=Mt(t),n=Ue(t);Gr.set(t,n),await te(),ut(n,r)}Or(Gr)};var co=A,kn="I acknowledge that using private APIs means my theme or plugin will inevitably break in the next version of WordPress.",uo=e=>{if(e===kn)return{getRegionRootFragment:Mt,initialVdomPromise:$r,toVdom:Ue,directive:S,getNamespace:B,h:U,cloneElement:ae,render:ct,proxifyState:G,parseServerData:Nt,populateServerData:Rt,batch:Z,routerRegions:Re,deepReadOnly:xe,navigationSignal:Ve,sessionId:ze,warn:Ee};throw new Error("Forbidden access.")};Rt(Nt());Dr();dr(Mr);window.history.replaceState({...window.history.state,wpInteractivityId:ze},"");window.addEventListener("popstate",e=>{e.state!==null&&e.state?.wpInteractivityId!==ze&&window.location.reload()});export{vn as getConfig,Xr as getContext,Yr as getElement,wt as getServerContext,kt as getServerState,uo as privateApis,te as splitTask,Ne as store,on as useCallback,rn as useEffect,J as useInit,nn as useLayoutEffect,sn as useMemo,V as useRef,Fr as useState,St as useWatch,co as watch,O as withScope,an as withSyncEvent};
1 +var ge,m,jt,ft,Q,Ft,Vt,zt,nt,qe,me,Kt,ut,it,ot,Jt,$e={},Me=[],Fr=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,We=Array.isArray;function W(e,t){for(var r in t)e[r]=t[r];return e}function ct(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function N(e,t,r){var n,o,i,s={};for(i in t)i=="key"?n=t[i]:i=="ref"?o=t[i]:s[i]=t[i];if(arguments.length>2&&(s.children=arguments.length>3?ge.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)s[i]===void 0&&(s[i]=e.defaultProps[i]);return ye(e,s,n,o,null)}function ye(e,t,r,n,o){var i={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o??++jt,__i:-1,__u:0};return o==null&&m.vnode!=null&&m.vnode(i),i}function He(e){return e.children}function fe(e,t){this.props=e,this.context=t}function ue(e,t){if(t==null)return e.__?ue(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type=="function"?ue(e):null}function Lr(e){if(e.__P&&e.__d){var t=e.__v,r=t.__e,n=[],o=[],i=W({},t);i.__v=t.__v+1,m.vnode&&m.vnode(i),lt(e.__P,i,t,e.__n,e.__P.namespaceURI,32&t.__u?[r]:null,n,r??ue(t),!!(32&t.__u),o),i.__v=t.__v,i.__.__k[i.__i]=i,Zt(n,i,o),t.__e=t.__=null,i.__e!=r&&Qt(i)}}function Qt(e){if((e=e.__)!=null&&e.__c!=null)return e.__e=e.__c.base=null,e.__k.some(function(t){if(t!=null&&t.__e!=null)return e.__e=e.__c.base=t.__e}),Qt(e)}function st(e){(!e.__d&&(e.__d=!0)&&Q.push(e)&&!Be.__r++||Ft!=m.debounceRendering)&&((Ft=m.debounceRendering)||Vt)(Be)}function Be(){try{for(var e,t=1;Q.length;)Q.length>t&&Q.sort(zt),e=Q.shift(),t=Q.length,Lr(e)}finally{Q.length=Be.__r=0}}function Xt(e,t,r,n,o,i,s,f,c,u,l){var a,_,p,b,P,h,d,v=n&&n.__k||Me,C=t.length;for(c=Ar(r,t,v,c,C),a=0;a<C;a++)(p=r.__k[a])!=null&&(_=p.__i!=-1&&v[p.__i]||$e,p.__i=a,h=lt(e,p,_,o,i,s,f,c,u,l),b=p.__e,p.ref&&_.ref!=p.ref&&(_.ref&&pt(_.ref,null,p),l.push(p.ref,p.__c||b,p)),P==null&&b!=null&&(P=b),(d=!!(4&p.__u))||_.__k===p.__k?(c=Yt(p,c,e,d),d&&_.__e&&(_.__e=null)):typeof p.type=="function"&&h!==void 0?c=h:b&&(c=b.nextSibling),p.__u&=-7);return r.__e=P,c}function Ar(e,t,r,n,o){var i,s,f,c,u,l=r.length,a=l,_=0;for(e.__k=new Array(o),i=0;i<o;i++)(s=t[i])!=null&&typeof s!="boolean"&&typeof s!="function"?(typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?s=e.__k[i]=ye(null,s,null,null,null):We(s)?s=e.__k[i]=ye(He,{children:s},null,null,null):s.constructor===void 0&&s.__b>0?s=e.__k[i]=ye(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):e.__k[i]=s,c=i+_,s.__=e,s.__b=e.__b+1,f=null,(u=s.__i=jr(s,r,c,a))!=-1&&(a--,(f=r[u])&&(f.__u|=2)),f==null||f.__v==null?(u==-1&&(o>l?_--:o<l&&_++),typeof s.type!="function"&&(s.__u|=4)):u!=c&&(u==c-1?_--:u==c+1?_++:(u>c?_--:_++,s.__u|=4))):e.__k[i]=null;if(a)for(i=0;i<l;i++)(f=r[i])!=null&&(2&f.__u)==0&&(f.__e==n&&(n=ue(f)),tr(f,f));return n}function Yt(e,t,r,n){var o,i;if(typeof e.type=="function"){for(o=e.__k,i=0;o&&i<o.length;i++)o[i]&&(o[i].__=e,t=Yt(o[i],t,r,n));return t}e.__e!=t&&(n&&(t&&e.type&&!t.parentNode&&(t=ue(e)),r.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function jr(e,t,r,n){var o,i,s,f=e.key,c=e.type,u=t[r],l=u!=null&&(2&u.__u)==0;if(u===null&&f==null||l&&f==u.key&&c==u.type)return r;if(n>(l?1:0)){for(o=r-1,i=r+1;o>=0||i<t.length;)if((u=t[s=o>=0?o--:i++])!=null&&(2&u.__u)==0&&f==u.key&&c==u.type)return s}return-1}function Lt(e,t,r){t[0]=="-"?e.setProperty(t,r??""):e[t]=r==null?"":typeof r!="number"||Fr.test(t)?r:r+"px"}function Oe(e,t,r,n,o){var i,s;e:if(t=="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||Lt(e.style,t,"");if(r)for(t in r)n&&r[t]==n[t]||Lt(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace(Kt,"$1")),s=t.toLowerCase(),t=s in e||t=="onFocusOut"||t=="onFocusIn"?s.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=r,r?n?r[me]=n[me]:(r[me]=ut,e.addEventListener(t,i?ot:it,i)):e.removeEventListener(t,i?ot:it,i);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=r??"";break e}catch{}typeof r=="function"||(r==null||r===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&r==1?"":r))}}function At(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t[qe]==null)t[qe]=ut++;else if(t[qe]<r[me])return;return r(m.event?m.event(t):t)}}}function lt(e,t,r,n,o,i,s,f,c,u){var l,a,_,p,b,P,h,d,v,C,k,S,G,se,rt,B=t.type;if(t.constructor!==void 0)return null;128&r.__u&&(c=!!(32&r.__u),i=[f=t.__e=r.__e]),(l=m.__b)&&l(t);e:if(typeof B=="function")try{if(d=t.props,v=B.prototype&&B.prototype.render,C=(l=B.contextType)&&n[l.__c],k=l?C?C.props.value:l.__:n,r.__c?h=(a=t.__c=r.__c).__=a.__E:(v?t.__c=a=new B(d,k):(t.__c=a=new fe(d,k),a.constructor=B,a.render=zr),C&&C.sub(a),a.state||(a.state={}),a.__n=n,_=a.__d=!0,a.__h=[],a._sb=[]),v&&a.__s==null&&(a.__s=a.state),v&&B.getDerivedStateFromProps!=null&&(a.__s==a.state&&(a.__s=W({},a.__s)),W(a.__s,B.getDerivedStateFromProps(d,a.__s))),p=a.props,b=a.state,a.__v=t,_)v&&B.getDerivedStateFromProps==null&&a.componentWillMount!=null&&a.componentWillMount(),v&&a.componentDidMount!=null&&a.__h.push(a.componentDidMount);else{if(v&&B.getDerivedStateFromProps==null&&d!==p&&a.componentWillReceiveProps!=null&&a.componentWillReceiveProps(d,k),t.__v==r.__v||!a.__e&&a.shouldComponentUpdate!=null&&a.shouldComponentUpdate(d,a.__s,k)===!1){t.__v!=r.__v&&(a.props=d,a.state=a.__s,a.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(ae){ae&&(ae.__=t)}),Me.push.apply(a.__h,a._sb),a._sb=[],a.__h.length&&s.push(a);break e}a.componentWillUpdate!=null&&a.componentWillUpdate(d,a.__s,k),v&&a.componentDidUpdate!=null&&a.__h.push(function(){a.componentDidUpdate(p,b,P)})}if(a.context=k,a.props=d,a.__P=e,a.__e=!1,S=m.__r,G=0,v)a.state=a.__s,a.__d=!1,S&&S(t),l=a.render(a.props,a.state,a.context),Me.push.apply(a.__h,a._sb),a._sb=[];else do a.__d=!1,S&&S(t),l=a.render(a.props,a.state,a.context),a.state=a.__s;while(a.__d&&++G<25);a.state=a.__s,a.getChildContext!=null&&(n=W(W({},n),a.getChildContext())),v&&!_&&a.getSnapshotBeforeUpdate!=null&&(P=a.getSnapshotBeforeUpdate(p,b)),se=l!=null&&l.type===He&&l.key==null?er(l.props.children):l,f=Xt(e,We(se)?se:[se],t,r,n,o,i,s,f,c,u),a.base=t.__e,t.__u&=-161,a.__h.length&&s.push(a),h&&(a.__E=a.__=null)}catch(ae){if(t.__v=null,c||i!=null)if(ae.then){for(t.__u|=c?160:128;f&&f.nodeType==8&&f.nextSibling;)f=f.nextSibling;i[i.indexOf(f)]=null,t.__e=f}else{for(rt=i.length;rt--;)ct(i[rt]);at(t)}else t.__e=r.__e,t.__k=r.__k,ae.then||at(t);m.__e(ae,t,r)}else i==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):f=t.__e=Vr(r.__e,t,r,n,o,i,s,c,u);return(l=m.diffed)&&l(t),128&t.__u?void 0:f}function at(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some(at))}function Zt(e,t,r){for(var n=0;n<r.length;n++)pt(r[n],r[++n],r[++n]);m.__c&&m.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){m.__e(i,o.__v)}})}function er(e){return typeof e!="object"||e==null||e.__b>0?e:We(e)?e.map(er):W({},e)}function Vr(e,t,r,n,o,i,s,f,c){var u,l,a,_,p,b,P,h=r.props||$e,d=t.props,v=t.type;if(v=="svg"?o="http://www.w3.org/2000/svg":v=="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),i!=null){for(u=0;u<i.length;u++)if((p=i[u])&&"setAttribute"in p==!!v&&(v?p.localName==v:p.nodeType==3)){e=p,i[u]=null;break}}if(e==null){if(v==null)return document.createTextNode(d);e=document.createElementNS(o,v,d.is&&d),f&&(m.__m&&m.__m(t,i),f=!1),i=null}if(v==null)h===d||f&&e.data==d||(e.data=d);else{if(i=i&&ge.call(e.childNodes),!f&&i!=null)for(h={},u=0;u<e.attributes.length;u++)h[(p=e.attributes[u]).name]=p.value;for(u in h)p=h[u],u=="dangerouslySetInnerHTML"?a=p:u=="children"||u in d||u=="value"&&"defaultValue"in d||u=="checked"&&"defaultChecked"in d||Oe(e,u,null,p,o);for(u in d)p=d[u],u=="children"?_=p:u=="dangerouslySetInnerHTML"?l=p:u=="value"?b=p:u=="checked"?P=p:f&&typeof p!="function"||h[u]===p||Oe(e,u,p,h[u],o);if(l)f||a&&(l.__html==a.__html||l.__html==e.innerHTML)||(e.innerHTML=l.__html),t.__k=[];else if(a&&(e.innerHTML=""),Xt(t.type=="template"?e.content:e,We(_)?_:[_],t,r,n,v=="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,s,i?i[0]:r.__k&&ue(r,0),f,c),i!=null)for(u=i.length;u--;)ct(i[u]);f||(u="value",v=="progress"&&b==null?e.removeAttribute("value"):b!=null&&(b!==e[u]||v=="progress"&&!b||v=="option"&&b!=h[u])&&Oe(e,u,b,h[u],o),u="checked",P!=null&&P!=e[u]&&Oe(e,u,P,h[u],o))}return e}function pt(e,t,r){try{if(typeof e=="function"){var n=typeof e.__u=="function";n&&e.__u(),n&&t==null||(e.__u=e(t))}else e.current=t}catch(o){m.__e(o,r)}}function tr(e,t,r){var n,o;if(m.unmount&&m.unmount(e),(n=e.ref)&&(n.current&&n.current!=e.__e||pt(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(i){m.__e(i,t)}n.base=n.__P=null}if(n=e.__k)for(o=0;o<n.length;o++)n[o]&&tr(n[o],t,r||typeof e.type!="function");r||ct(e.__e),e.__c=e.__=e.__e=void 0}function zr(e,t,r){return this.constructor(e,r)}function _t(e,t,r){var n,o,i,s;t==document&&(t=document.documentElement),m.__&&m.__(e,t),o=(n=typeof r=="function")?null:r&&r.__k||t.__k,i=[],s=[],lt(t,e=(!n&&r||t).__k=N(He,null,[e]),o||$e,$e,t.namespaceURI,!n&&r?[r]:o?null:t.firstChild?ge.call(t.childNodes):null,i,!n&&r?r:o?o.__e:t.firstChild,n,s),Zt(i,e,s)}function dt(e,t){_t(e,t,dt)}function ce(e,t,r){var n,o,i,s,f=W({},e.props);for(i in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)i=="key"?n=t[i]:i=="ref"?o=t[i]:f[i]=t[i]===void 0&&s!=null?s[i]:t[i];return arguments.length>2&&(f.children=arguments.length>3?ge.call(arguments,2):r),ye(e.type,f,n||e.key,o||e.ref,null)}function rr(e){function t(r){var n,o;return this.getChildContext||(n=new Set,(o={})[t.__c]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(i){this.props.value!=i.value&&n.forEach(function(s){s.__e=!0,st(s)})},this.sub=function(i){n.add(i);var s=i.componentWillUnmount;i.componentWillUnmount=function(){n&&n.delete(i),s&&s.call(i)}}),r.children}return t.__c="__cC"+Jt++,t.__=e,t.Provider=t.__l=(t.Consumer=function(r,n){return r.children(n)}).contextType=t,t}ge=Me.slice,m={__e:function(e,t,r,n){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,n||{}),s=o.__d),s)return o.__E=o}catch(f){e=f}throw e}},jt=0,ft=function(e){return e!=null&&e.constructor===void 0},fe.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=W({},this.state),typeof e=="function"&&(e=e(W({},r),this.props)),e&&W(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),st(this))},fe.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),st(this))},fe.prototype.render=He,Q=[],Vt=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,zt=function(e,t){return e.__v.__b-t.__v.__b},Be.__r=0,nt=Math.random().toString(8),qe="__d"+nt,me="__a"+nt,Kt=/(PointerCapture)$|Capture$/i,ut=0,it=At(!1),ot=At(!0),Jt=0;var Z,w,ht,nr,we=0,lr=[],x=m,ir=x.__b,or=x.__r,sr=x.diffed,ar=x.__c,fr=x.unmount,ur=x.__;function be(e,t){x.__h&&x.__h(w,e,we||t),we=0;var r=w.__H||(w.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function Kr(e){return we=1,Jr(pr,e)}function Jr(e,t,r){var n=be(Z++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):pr(void 0,t),function(f){var c=n.__N?n.__N[0]:n.__[0],u=n.t(c,f);c!==u&&(n.__N=[u,n.__[1]],n.__c.setState({}))}],n.__c=w,!w.__f)){var o=function(f,c,u){if(!n.__c.__H)return!0;var l=n.__c.__H.__.filter(function(_){return _.__c});if(l.every(function(_){return!_.__N}))return!i||i.call(this,f,c,u);var a=n.__c.props!==f;return l.some(function(_){if(_.__N){var p=_.__[0];_.__=_.__N,_.__N=void 0,p!==_.__[0]&&(a=!0)}}),i&&i.call(this,f,c,u)||a};w.__f=!0;var i=w.shouldComponentUpdate,s=w.componentWillUpdate;w.componentWillUpdate=function(f,c,u){if(this.__e){var l=i;i=void 0,o(f,c,u),i=l}s&&s.call(this,f,c,u)},w.shouldComponentUpdate=o}return n.__N||n.__}function Se(e,t){var r=be(Z++,3);!x.__s&&mt(r.__H,t)&&(r.__=e,r.u=t,w.__H.__h.push(r))}function Le(e,t){var r=be(Z++,4);!x.__s&&mt(r.__H,t)&&(r.__=e,r.u=t,w.__h.push(r))}function j(e){return we=5,V(function(){return{current:e}},[])}function V(e,t){var r=be(Z++,7);return mt(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function Ae(e,t){return we=8,V(function(){return e},t)}function le(e){var t=w.context[e.__c],r=be(Z++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(w)),t.props.value):e.__}function Qr(){for(var e;e=lr.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(Fe),t.__h.some(vt),t.__h=[]}catch(r){t.__h=[],x.__e(r,e.__v)}}}x.__b=function(e){w=null,ir&&ir(e)},x.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ur&&ur(e,t)},x.__r=function(e){or&&or(e),Z=0;var t=(w=e.__c).__H;t&&(ht===w?(t.__h=[],w.__h=[],t.__.some(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.some(Fe),t.__h.some(vt),t.__h=[],Z=0)),ht=w},x.diffed=function(e){sr&&sr(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(lr.push(t)!==1&&nr===x.requestAnimationFrame||((nr=x.requestAnimationFrame)||Xr)(Qr)),t.__H.__.some(function(r){r.u&&(r.__H=r.u),r.u=void 0})),ht=w=null},x.__c=function(e,t){t.some(function(r){try{r.__h.some(Fe),r.__h=r.__h.filter(function(n){return!n.__||vt(n)})}catch(n){t.some(function(o){o.__h&&(o.__h=[])}),t=[],x.__e(n,r.__v)}}),ar&&ar(e,t)},x.unmount=function(e){fr&&fr(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.some(function(n){try{Fe(n)}catch(o){t=o}}),r.__H=void 0,t&&x.__e(t,r.__v))};var cr=typeof requestAnimationFrame=="function";function Xr(e){var t,r=function(){clearTimeout(n),cr&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,35);cr&&(t=requestAnimationFrame(r))}function Fe(e){var t=w,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),w=t}function vt(e){var t=w;e.__c=e.__(),w=t}function mt(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function pr(e,t){return typeof t=="function"?t(e):t}var Yr=Symbol.for("preact-signals");function Ve(){if(X>1)X--;else{for(var e,t=!1;xe!==void 0;){var r=xe;for(xe=void 0,yt++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&dr(r))try{r.c()}catch(o){t||(e=o,t=!0)}r=n}}if(yt=0,X--,t)throw e}}function ee(e){if(X>0)return e();X++;try{return e()}finally{Ve()}}var g=void 0;var xe=void 0,X=0,yt=0,je=0;function _r(e){if(g!==void 0){var t=e.n;if(t===void 0||t.t!==g)return t={i:0,S:e,p:g.s,n:void 0,t:g,e:void 0,x:void 0,r:t},g.s!==void 0&&(g.s.n=t),g.s=t,e.n=t,32&g.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=g.s,t.n=void 0,g.s.n=t,g.s=t),t}}function E(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}E.prototype.brand=Yr;E.prototype.h=function(){return!0};E.prototype.S=function(e){this.t!==e&&e.e===void 0&&(e.x=this.t,this.t!==void 0&&(this.t.e=e),this.t=e)};E.prototype.U=function(e){if(this.t!==void 0){var t=e.e,r=e.x;t!==void 0&&(t.x=r,e.e=void 0),r!==void 0&&(r.e=t,e.x=void 0),e===this.t&&(this.t=r)}};E.prototype.subscribe=function(e){var t=this;return z(function(){var r=t.value,n=g;g=void 0;try{e(r)}finally{g=n}})};E.prototype.valueOf=function(){return this.value};E.prototype.toString=function(){return this.value+""};E.prototype.toJSON=function(){return this.value};E.prototype.peek=function(){var e=g;g=void 0;try{return this.value}finally{g=e}};Object.defineProperty(E.prototype,"value",{get:function(){var e=_r(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(yt>100)throw new Error("Cycle detected");this.v=e,this.i++,je++,X++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Ve()}}}});function D(e){return new E(e)}function dr(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function hr(e){for(var t=e.s;t!==void 0;t=t.n){var r=t.S.n;if(r!==void 0&&(t.r=r),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function vr(e){for(var t=e.s,r=void 0;t!==void 0;){var n=t.p;t.i===-1?(t.S.U(t),n!==void 0&&(n.n=t.n),t.n!==void 0&&(t.n.p=n)):r=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=n}e.s=r}function pe(e){E.call(this,void 0),this.x=e,this.s=void 0,this.g=je-1,this.f=4}(pe.prototype=new E).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===je))return!0;if(this.g=je,this.f|=1,this.i>0&&!dr(this))return this.f&=-2,!0;var e=g;try{hr(this),g=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(r){this.v=r,this.f|=16,this.i++}return g=e,vr(this),this.f&=-2,!0};pe.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}E.prototype.S.call(this,e)};pe.prototype.U=function(e){if(this.t!==void 0&&(E.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}};pe.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}};Object.defineProperty(pe.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=_r(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function Ee(e){return new pe(e)}function mr(e){var t=e.u;if(e.u=void 0,typeof t=="function"){X++;var r=g;g=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,gt(e),n}finally{g=r,Ve()}}}function gt(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,mr(e)}function Zr(e){if(g!==this)throw new Error("Out-of-order effect");vr(this),g=e,this.f&=-2,8&this.f&&gt(this),Ve()}function Te(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}Te.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}};Te.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,mr(this),hr(this),X++;var e=g;return g=this,Zr.bind(this,e)};Te.prototype.N=function(){2&this.f||(this.f|=2,this.o=xe,xe=this)};Te.prototype.d=function(){this.f|=8,1&this.f||gt(this)};function z(e){var t=new Te(e);try{t.c()}catch(r){throw t.d(),r}return t.d.bind(t)}var bt,wt;function _e(e,t){m[e]=t.bind(null,m[e]||function(){})}function ze(e){wt&&wt(),wt=e&&e.S()}function yr(e){var t=this,r=e.data,n=tn(r);n.value=r;var o=V(function(){for(var i=t.__v;i=i.__;)if(i.__c){i.__c.__$f|=4;break}return t.__$u.c=function(){var s;!ft(o.peek())&&((s=t.base)==null?void 0:s.nodeType)===3?t.base.data=o.peek():(t.__$f|=1,t.setState({}))},Ee(function(){var s=n.value.value;return s===0?0:s===!0?"":s||""})},[]);return o.value}yr.displayName="_st";Object.defineProperties(E.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:yr},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});_e("__b",function(e,t){if(typeof t.type=="string"){var r,n=t.props;for(var o in n)if(o!=="children"){var i=n[o];i instanceof E&&(r||(t.__np=r={}),r[o]=i,n[o]=i.peek())}}e(t)});_e("__r",function(e,t){ze();var r,n=t.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=(function(o){var i;return z(function(){i=this}),i.c=function(){n.__$f|=1,n.setState({})},i})())),bt=n,ze(r),e(t)});_e("__e",function(e,t,r,n){ze(),bt=void 0,e(t,r,n)});_e("diffed",function(e,t){ze(),bt=void 0;var r;if(typeof t.type=="string"&&(r=t.__e)){var n=t.__np,o=t.props;if(n){var i=r.U;if(i)for(var s in i){var f=i[s];f!==void 0&&!(s in n)&&(f.d(),i[s]=void 0)}else r.U=i={};for(var c in n){var u=i[c],l=n[c];u===void 0?(u=en(r,c,l,o),i[c]=u):u.o(l,o)}}}e(t)});function en(e,t,r,n){var o=t in e&&e.ownerSVGElement===void 0,i=D(r);return{o:function(s,f){i.value=s,n=f},d:z(function(){var s=i.value.value;n[t]!==s&&(n[t]=s,o?e[t]=s:s?e.setAttribute(t,s):e.removeAttribute(t))})}}_e("unmount",function(e,t){if(typeof t.type=="string"){var r=t.__e;if(r){var n=r.U;if(n){r.U=void 0;for(var o in n){var i=n[o];i&&i.d()}}}}else{var s=t.__c;if(s){var f=s.__$u;f&&(s.__$u=void 0,f.d())}}e(t)});_e("__h",function(e,t,r,n){(n<3||n===9)&&(t.__$f|=2),e(t,r,n)});fe.prototype.shouldComponentUpdate=function(e,t){var r=this.__$u;if(!(r&&r.s!==void 0||4&this.__$f)||3&this.__$f)return!0;for(var n in t)return!0;for(var o in e)if(o!=="__source"&&e[o]!==this.props[o])return!0;for(var i in this.props)if(!(i in e))return!0;return!1};function tn(e){return V(function(){return D(e)},[])}var Ke=new WeakMap,gr=new WeakMap,St=new WeakMap,rn=new Set([Object,Array]),Je=(e,t,r)=>{if(!te(t))throw Error("This object cannot be proxified.");if(!Ke.has(t)){let n=new Proxy(t,r);Ke.set(t,n),gr.set(n,t),St.set(n,e)}return Ke.get(t)},Qe=e=>Ke.get(e),q=e=>St.get(e),te=e=>typeof e!="object"||e===null?!1:!St.has(e)&&rn.has(e.constructor),wr=e=>gr.get(e);var xt=[],H=()=>xt.slice(-1)[0],F=e=>{xt.push(e)},L=()=>{xt.pop()};var nn=e=>new Promise(t=>{let r=()=>{clearTimeout(n),window.cancelAnimationFrame(o),setTimeout(()=>{e(),t()})},n=setTimeout(r,100),o=window.requestAnimationFrame(r)}),ne=typeof window.scheduler?.yield=="function"?window.scheduler.yield.bind(window.scheduler):()=>new Promise(e=>{setTimeout(e,0)}),br=e=>{let[t]=performance.getEntriesByType("navigation");t.domContentLoadedEventStart>0?e():document.addEventListener("DOMContentLoaded",e)};function on(e,t){let r=()=>{},n=z(function(){return r=this.c.bind(this),this.x=e,this.c=t,e()});return{flush:r,dispose:n}}function sn(e){Se(()=>{let t=null,r=!1;return t=on(e,async()=>{t&&!r&&(r=!0,await nn(t.flush),r=!1)}),t.dispose},[])}function $(e){let t=U(),r=H(),n;if(e?.constructor?.name==="GeneratorFunction"?n=async(...i)=>{let s=e(...i),f,c,u;for(;;){F(r),re(t);try{c=u?s.throw(u):s.next(f),u=void 0}catch(l){throw l}finally{K(),L()}try{f=await c.value}catch(l){u=l}if(c.done){if(u)throw u;break}}return f}:n=(...i)=>{F(r),re(t);try{return e(...i)}finally{L(),K()}},e.sync){let i=n;return i.sync=!0,i}return n}function Tt(e){sn($(e))}function O(e){Se($(e),[])}function an(e,t){Se($(e),t)}function fn(e,t){Le($(e),t)}function un(e,t){return Ae($(e),t)}function cn(e,t){return V($(e),t)}var Sr=(e,t)=>{t=[].concat(t);let r=t[t.length-1].nextSibling;function n(o,i){e.insertBefore(o,i||r)}return e.__k={nodeType:1,parentNode:e,firstChild:t[0],childNodes:t,insertBefore:n,appendChild:n,removeChild(o){e.removeChild(o)},contains(o){e.contains(o)}}};function xr(e){return e.replace(/^-+|-+$/g,"").toLowerCase().replace(/-([a-z])/g,function(t,r){return r.toUpperCase()})}var Pe=e=>{},I=e=>!!(e&&typeof e=="object"&&e.constructor===Object);function ln(e){let t=e;return t.sync=!0,t}var Et=new WeakMap,pn=e=>{let t=()=>!1;return{get(r,n){let o=r[n];return o&&typeof o=="object"?Ie(o,{errorMessage:e}):o},set:t,deleteProperty:t,defineProperty:t}};function Ie(e,t){let r=t?.errorMessage??"Cannot modify read-only object";if(!Et.has(e)){let n=pn(r);Et.set(e,new Proxy(e,n))}return Et.get(e)}var Xe=D(0),Ye=Math.random().toString(36).slice(2);function Y(e){return I(e)?Object.fromEntries(Object.entries(e).map(([t,r])=>[t,Y(r)])):Array.isArray(e)?e.map(t=>Y(t)):e}var Pt=[],U=()=>Pt.slice(-1)[0],re=e=>{Pt.push(e)},K=()=>{Pt.pop()};var _n=e=>U().context[e||H()],dn=()=>{let e=U(),t={},{ref:r,attributes:n}=e;return Object.freeze({ref:r.current,attributes:Ie(n,t)})},Ze=D(0);function It(e){let t=U();return It.subscribe=Ze.value,Y(t.serverContext[e||H()])}It.subscribe=0;var hn={},Er=class{owner;computedsByScope;valueSignal;getterSignal;pendingGetter;constructor(e){this.owner=e,this.computedsByScope=new WeakMap}setValue(e){this.update({value:e})}setGetter(e){this.update({get:e})}setPendingGetter(e){this.pendingGetter=e,queueMicrotask(()=>this.consolidateGetter())}consolidateGetter(){let e=this.pendingGetter;e&&(this.pendingGetter=void 0,this.update({get:e}))}getComputed(){let e=U()||hn;if(!this.valueSignal&&!this.getterSignal&&this.update({}),this.pendingGetter&&this.consolidateGetter(),!this.computedsByScope.has(e)){let t=()=>{let r=this.getterSignal?.value;return r?r.call(this.owner):this.valueSignal?.value};F(q(this.owner)),this.computedsByScope.set(e,Ee($(t))),L()}return this.computedsByScope.get(e)}update({get:e,value:t}){this.valueSignal?(t!==this.valueSignal.peek()||e!==this.getterSignal.peek())&&ee(()=>{this.valueSignal.value=t,this.getterSignal.value=e}):(this.valueSignal=D(t),this.getterSignal=D(e))}};var vn=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(e=>typeof e=="symbol")),de=new WeakMap,mn=(e,t)=>de.has(e)&&de.get(e).has(t),Ce=(e,t,r)=>{de.has(e)||de.set(e,new Map),t=typeof t=="number"?`${t}`:t;let n=de.get(e);if(!n.has(t)){let o=q(e),i=new Er(e);if(n.set(t,i),r){let{get:s,value:f}=r;s?i.setGetter(s):i.setValue(te(f)?R(o,f):f)}}return n.get(t)},A=new WeakMap,Ct=!1,T=Symbol("PENDING_GETTER"),yn={get(e,t,r){if(Ct||!e.hasOwnProperty(t)&&t in e||typeof t=="symbol"&&vn.has(t))return Reflect.get(e,t,r);let n=Object.getOwnPropertyDescriptor(e,t),i=Ce(r,t,n).getComputed().value;if(i===T)throw T;if(typeof i=="function"){let s=q(r);return(...f)=>{F(s);try{return i.call(r,...f)}finally{L()}}}return i},set(e,t,r,n){F(q(n));try{return Reflect.set(e,t,r,n)}finally{L()}},defineProperty(e,t,r){let n=!(t in e),o=Reflect.defineProperty(e,t,r);if(o){let i=Qe(e),s=Ce(i,t),{get:f,value:c}=r;if(f)s.setGetter(f);else{let u=q(i);s.setValue(te(c)?R(u,c):c)}n&&A.has(e)&&A.get(e).value++,Array.isArray(e)&&de.get(i)?.has("length")&&Ce(i,"length").setValue(e.length)}return o},deleteProperty(e,t){let r=Reflect.deleteProperty(e,t);return r&&(Ce(Qe(e),t).setValue(void 0),A.has(e)&&A.get(e).value++),r},ownKeys(e){return A.has(e)||A.set(e,D(0)),A._=A.get(e).value,Reflect.ownKeys(e)}},R=(e,t)=>Je(e,t,yn),Nt=(e,t)=>{Ct=!0;try{return e[t]}finally{Ct=!1}},kt=(e,t,r=!0)=>{if(!(I(e)&&I(t)))return;let n=!1;for(let o in t){let i=!(o in e);n=n||i;let s=Object.getOwnPropertyDescriptor(t,o),f=Qe(e),c=!!f&&mn(f,o)&&Ce(f,o);if(typeof s.get=="function"||typeof s.set=="function")(r||i)&&(Object.defineProperty(e,o,{...s,configurable:!0,enumerable:!0}),s.get&&c&&c.setPendingGetter(s.get));else if(I(t[o])){let u=Object.getOwnPropertyDescriptor(e,o)?.value;if(i||r&&!I(u)){if(e[o]={},c){let l=q(f);c.setValue(R(l,e[o]))}kt(e[o],t[o],r)}else I(u)&&kt(e[o],t[o],r)}else if((r||i)&&(Object.defineProperty(e,o,s),c)){let{value:u}=s,l=q(f);c.setValue(te(u)?R(l,u):u)}}n&&A.has(e)&&A.get(e).value++},ie=(e,t,r=!0)=>ee(()=>kt(wr(e)||e,t,r));var Tr=new WeakSet,gn={get:(e,t,r)=>{let n=Reflect.get(e,t),o=q(r);if(typeof n>"u"&&Tr.has(r)){let i={};return Reflect.set(e,t,i),ke(o,i,!1)}if(typeof n=="function"){F(o);let i=$(n);return L(),i}return I(n)&&te(n)?ke(o,n,!1):n}},ke=(e,t,r=!0)=>{let n=Je(e,t,gn);return n&&r&&Tr.add(n),n};var Dt=new WeakMap,he=new WeakMap,Pr=new WeakSet,Ir=Reflect.getOwnPropertyDescriptor,wn={get:(e,t)=>{let r=he.get(e),n=e[t];return t in e?n:r[t]},set:(e,t,r)=>{let n=he.get(e),o=t in e||!(t in n)?e:n;return o[t]=r,!0},ownKeys:e=>[...new Set([...Object.keys(he.get(e)),...Object.keys(e)])],getOwnPropertyDescriptor:(e,t)=>Ir(e,t)||Ir(he.get(e),t),has:(e,t)=>Reflect.has(e,t)||Reflect.has(he.get(e),t)},ve=(e,t={})=>{if(Pr.has(e))throw Error("This object cannot be proxified.");if(he.set(e,t),!Dt.has(e)){let r=new Proxy(e,wn);Dt.set(e,r),Pr.add(r)}return Dt.get(e)};var Ne=new Map,Cr=new Map,et=new Map,Ut=new Map,De=new Map,bn=e=>Ut.get(e||H())||{};function Rt(e){let t=e||H();return De.has(t)||De.set(t,{}),Rt.subscribe=Xe.value,Y(De.get(t))}Rt.subscribe=0;var oe="I acknowledge that using a private store means my plugin will inevitably break on the next store release.";function Ue(e,{state:t={},...r}={},{lock:n=!1}={}){if(Ne.has(e)){if(n!==oe&&!et.has(e))et.set(e,n);else{let i=et.get(e);if(!(n===oe||n!==!0&&n===i))throw Error(i?"Cannot unlock a private store with an invalid lock code":"Cannot lock a public store")}let o=Cr.get(e);ie(o,r),ie(o.state,t)}else{n!==oe&&et.set(e,n);let o={state:R(e,I(t)?t:{}),...r},i=ke(e,o);Cr.set(e,o),Ne.set(e,i)}return Ne.get(e)}var Gt=(e=document)=>{let t=e.getElementById("wp-script-module-data-@wordpress/interactivity")??e.getElementById("wp-interactivity-data");if(t?.textContent)try{return JSON.parse(t.textContent)}catch{}return{}},Ot=e=>{De.clear(),Ut.clear(),I(e?.state)&&Object.entries(e.state).forEach(([t,r])=>{let n=Ue(t,{},{lock:oe});ie(n.state,r,!1),De.set(t,r)}),I(e?.config)&&Object.entries(e.config).forEach(([t,r])=>{Ut.set(t,r)}),I(e?.derivedStateClosures)&&Object.entries(e.derivedStateClosures).forEach(([t,r])=>{let n=Ue(t,{},{lock:oe});r.forEach(o=>{let i=o.split("."),s=i.splice(-1,1)[0],f=i.reduce((u,l)=>Nt(u,l),n),c=Object.getOwnPropertyDescriptor(f,s);I(c?.value)&&(f[s]=T)})})};function M(e){return e.suffix!==null}function J(e){return e.suffix===null}var kr=rr({client:{},server:{}}),qt={},Dr={},y=(e,t,{priority:r=10}={})=>{qt[e]=t,Dr[e]=r},Sn=(e,t)=>{if(!t){Pe(`Namespace missing for "${e}". The value for that path won't be resolved.`);return}let r=Ne.get(t);typeof r>"u"&&(r=Ue(t,{},{lock:oe}));let n={...r,context:U().context[t]};try{return e.split(".").reduce((i,s)=>i[s],n)}catch(o){if(o===T)return T}},$t=({scope:e})=>((t,...r)=>{let{value:n,namespace:o}=t;if(typeof n!="string")throw new Error("The `value` prop should be a string path");let i=n[0]==="!"&&!!(n=n.slice(1));re(e);let s=Sn(n,o);if(typeof s=="function"){if(i){Pe("Using a function with a negation operator is deprecated and will stop working in WordPress 6.9. Please use derived state instead.");let u=!s(...r);return K(),u}K();let c=(...u)=>{re(e);let l=s(...u);return K(),l};if(s.sync){let u=c;u.sync=!0}return c}let f=s;return K(),i&&s!==T?!f:f}),xn=e=>{let t=Object.keys(e).reduce((r,n)=>{if(qt[n]){let o=Dr[n];(r[o]=r[o]||[]).push(n)}return r},{});return Object.entries(t).sort(([r],[n])=>parseInt(r)-parseInt(n)).map(([,r])=>r)},Ur=({directives:e,priorityLevels:[t,...r],element:n,originalProps:o,previousScope:i})=>{let s=j({}).current;s.evaluate=Ae($t({scope:s}),[]);let{client:f,server:c}=le(kr);s.context=f,s.serverContext=c,s.ref=i?.ref||j(null),n=ce(n,{ref:s.ref}),s.attributes=n.props;let u=r.length>0?N(Ur,{directives:e,priorityLevels:r,element:n,originalProps:o,previousScope:s}):n,l={...o,children:u},a={directives:e,props:l,element:n,context:kr,evaluate:s.evaluate};re(s);for(let _ of t){let p=qt[_]?.(a);p!==void 0&&(l.children=p)}return K(),l.children},Nr=m.vnode;m.vnode=e=>{if(e.props.__directives){let t=e.props,r=t.__directives;r.key&&(e.key=r.key.find(J).value),delete t.__directives;let n=xn(r);n.length>0&&(e.props={directives:r,priorityLevels:n,originalProps:t,type:e.type,element:N(e.type,t),top:!0},e.type=Ur)}Nr&&Nr(e)};y("bind",({directives:{bind:e},element:t,evaluate:r})=>{e.filter(M).forEach(n=>{if(n.uniqueId)return;let o=n.suffix,i=r(n);i!==T&&(typeof i=="function"&&(i=i()),t.props[o]=i,O(()=>{let s=t.ref.current;if(o==="style"){typeof i=="string"&&(s.style.cssText=i);return}else if(o!=="width"&&o!=="height"&&o!=="href"&&o!=="list"&&o!=="form"&&o!=="tabIndex"&&o!=="download"&&o!=="rowSpan"&&o!=="colSpan"&&o!=="role"&&o!=="popover"&&o in s)try{s[o]=i??"";return}catch{}i!=null&&(i!==!1||o[4]==="-")?s.setAttribute(o,o==="popover"&&i===!0?"":i):s.removeAttribute(o)}))})});y("class",({directives:{class:e},element:t,evaluate:r})=>{e.filter(M).forEach(n=>{let o=n.uniqueId?`${n.suffix}---${n.uniqueId}`:n.suffix,i=r(n);if(i===T)return;typeof i=="function"&&(i=i());let s=t.props.class||"",f=new RegExp(`(^|\\s)${o}(\\s|$)`,"g");i?f.test(s)||(t.props.class=s?`${s} ${o}`:o):t.props.class=s.replace(f," ").trim(),O(()=>{i?t.ref.current.classList.add(o):t.ref.current.classList.remove(o)})})});y("context",({directives:{context:e},props:{children:t},context:r})=>{let n=e.filter(J).reverse();if(!n.length)return;let{Provider:o}=r,{client:i,server:s}=le(r),f=j({}),c={},u={client:{...i},server:{...s}},l=new Set;return n.forEach(({value:a,namespace:_,uniqueId:p})=>{I(a)&&(f.current[_]||(f.current[_]=R(_,{})),ie(f.current[_],Y(a),!1),c[_]=a,l.add(_))}),l.forEach(a=>{u.client[a]=ve(f.current[a],i[a]),u.server[a]=ve(c[a],s[a])}),N(o,{value:u},t)},{priority:5});var En=(e,t,r,n,o)=>{let i={...e.client,[t]:{...e.client[t],[n]:r}},s={...U(),context:i,serverContext:e.server};return o?$t({scope:s})(o):r},Tn=function*(e,t,r,n,o){let{current:i}=j(new Map);for(let s of r){let f=En(e,t,s,n,o);i.has(f)||i.set(f,ve(R(t,{[n]:void 0}),e.client[t])),yield[s,i.get(f),f]}};y("each",({directives:{each:e,"each-key":t},context:r,element:n,evaluate:o})=>{if(n.type!=="template")return;let{Provider:i}=r,s=le(r),[f]=e,{namespace:c,suffix:u,uniqueId:l}=f;if(e.length>1||l)return;let a=o(f);if(a===T||(typeof a=="function"&&(a=a()),typeof a?.[Symbol.iterator]!="function"))return;let _=u?xr(u):"item",p=[],b=Tn(s,c,a,_,t?.[0]);for(let[P,h,d]of b){let v={client:{...s.client,[c]:h},server:{...s.server}};v.client[c][_]=P,p.push(N(i,{value:v,key:d},n.props.content))}return p},{priority:20});y("each-child",({directives:{"each-child":e},element:t,evaluate:r})=>{let n=e.find(J);return n?r(n)===T?t:null:void 0},{priority:1});y("ignore",({element:{type:e,props:{innerHTML:t,...r}}})=>{let n=V(()=>t,[]);return N(e,{dangerouslySetInnerHTML:{__html:n},...r})});y("init",({directives:{init:e},evaluate:t})=>{e.forEach(r=>{O(()=>{let n,o=t(r);return typeof o=="function"&&(o=o()),o})})});function Rr(e){let t={get(r,n,o){let i=r[n];switch(n){case"currentTarget":break;case"preventDefault":case"stopImmediatePropagation":case"stopPropagation":break}return i instanceof Function?function(...s){return i.apply(this===o?r:this,s)}:i}};return new Proxy(e,t)}var Gr=e=>({directives:t,evaluate:r})=>{t[`on-${e}`].filter(M).forEach(n=>{let i=n.suffix.split("--",2)[0];O(()=>{let s=c=>{let u=r(n);typeof u=="function"&&(u?.sync||(c=Rr(c)),u(c))},f=e==="window"?window:document;return f.addEventListener(i,s),()=>f.removeEventListener(i,s)})})},Or=e=>({directives:t,evaluate:r})=>{t[`on-async-${e}`].filter(M).forEach(n=>{let o=n.suffix.split("--",1)[0];O(()=>{let i=async f=>{await ne();let c=r(n);typeof c=="function"&&c(f)},s=e==="window"?window:document;return s.addEventListener(o,i,{passive:!0}),()=>s.removeEventListener(o,i)})})};y("on",({directives:{on:e},element:t,evaluate:r})=>{let n=new Map;e.filter(M).forEach(o=>{let i=o.suffix.split("--",2);n.has(i[0])||n.set(i[0],new Set),n.get(i[0]).add(o)}),n.forEach((o,i)=>{let s=t.props[`on${i}`];t.props[`on${i}`]=f=>{s&&s(f),o.forEach(c=>{let u,l=r(c);typeof l=="function"&&(l?.sync||(f=Rr(f)),l(f))})}})});y("on-async",({directives:{"on-async":e},element:t,evaluate:r})=>{let n=new Map;e.filter(M).forEach(o=>{let i=o.suffix.split("--",1)[0];n.has(i)||n.set(i,new Set),n.get(i).add(o)}),n.forEach((o,i)=>{let s=t.props[`on${i}`];t.props[`on${i}`]=f=>{s&&s(f),o.forEach(async c=>{await ne();let u=r(c);typeof u=="function"&&u(f)})}})});y("on-window",Gr("window"));y("on-document",Gr("document"));y("on-async-window",Or("window"));y("on-async-document",Or("document"));var Re=new Map;y("router-region",({directives:{"router-region":e}})=>{let t=e.find(J);if(!t||t.suffix||t.uniqueId)return;let r=typeof t.value=="string"?t.value:t.value.id;Re.has(r)||Re.set(r,D());let n=Re.get(r).value;if(Le(()=>{n&&typeof n.type!="string"&&(Ze.value=Ze.peek()+1)},[n]),n&&typeof n.type!="string"){let o=U();return ce(n,{previousScope:o})}return n},{priority:1});y("run",({directives:{run:e},evaluate:t})=>{e.forEach(r=>{let n=t(r);return typeof n=="function"&&(n=n()),n})});var Pn=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,In=/\/\*[^]*?\*\/| +/g,qr=/\n+/g,$r=" ",Cn=e=>{let t=[{}],r,n;for(;r=Pn.exec(e.replace(In,""));)r[4]?t.shift():r[3]?(n=r[3].replace(qr,$r).trim(),t.unshift(t[0][n]=t[0][n]||{})):t[0][r[1]]=r[2].replace(qr,$r).trim();return t[0]};y("style",({directives:{style:e},element:t,evaluate:r})=>{e.filter(M).forEach(n=>{if(n.uniqueId)return;let o=n.suffix,i=r(n);i!==T&&(typeof i=="function"&&(i=i()),t.props.style=t.props.style||{},typeof t.props.style=="string"&&(t.props.style=Cn(t.props.style)),i?t.props.style[o]=i:delete t.props.style[o],O(()=>{i?t.ref.current.style.setProperty(o,i):t.ref.current.style.removeProperty(o)}))})});y("text",({directives:{text:e},element:t,evaluate:r})=>{let n=e.filter(J);n.length&&n.forEach(o=>{if(!o.uniqueId)try{let i=r(o);if(i===T)return;typeof i=="function"&&(i=i()),t.props.children=typeof i=="object"?null:i.toString()}catch{t.props.children=null}})});y("watch",({directives:{watch:e},evaluate:t})=>{e.forEach(r=>{Tt(()=>{let n,o=t(r);return typeof o=="function"&&(o=o()),o})})});var Mt="data-wp-",tt=[],kn=()=>tt[tt.length-1]??null,Nn=e=>!!(e&&typeof e=="object"&&e.constructor===Object),Dn=/[^a-z0-9-_]/i;function Un(e){let t=e.substring(8);if(Dn.test(t))return null;let r=t.indexOf("--");if(r===-1)return{prefix:t,suffix:null,uniqueId:null};let n=t.substring(0,r),o=t.substring(r);if(o.startsWith("---")&&o[3]!=="-")return{prefix:n,suffix:null,uniqueId:o.substring(3)||null};let i=o.substring(2),s=i.indexOf("---");if(s!==-1&&i.substring(s)[3]!=="-"){let f=i.substring(s+3)||null;return i=i.substring(0,s)||null,{prefix:n,suffix:i,uniqueId:f}}return{prefix:n,suffix:i||null,uniqueId:null}}var Rn=/^([\w_\/-]+)::(.+)$/,Bt=new WeakSet;function Ge(e){let t=new Set,r=new Set,n=document.createTreeWalker(e,205);function o(s){let{nodeType:f}=s;if(f===3)return s.data;if(f===4)return r.add(s),s.nodeValue;if(f===8||f===7)return t.add(s),null;let c=s,{attributes:u}=c,l=c.localName,a={},_=[],p=[],b=!1,P=!1;for(let h=0;h<u.length;h++){let d=u[h].name,v=u[h].value;if(d[Mt.length]&&d.slice(0,Mt.length)===Mt)if(d==="data-wp-ignore")b=!0;else{let C=Rn.exec(v),k=C?.[1]??null,S=C?.[2]??v;try{let G=JSON.parse(S);S=Nn(G)?G:S}catch{}if(d==="data-wp-interactive"){P=!0;let G=typeof S=="string"?S:typeof S?.namespace=="string"?S.namespace:null;tt.push(G)}else p.push([d,k,S])}else if(d==="ref")continue;v===""&&c[d]===!0?a[d]=!0:a[d]=v}if(b&&!P)return[N(l,{...a,innerHTML:c.innerHTML,__directives:{ignore:!0}})];if(P&&Bt.add(c),p.length){a.__directives=p.reduce((h,[d,v,C])=>{let k=Un(d);if(k===null)return h;let{prefix:S,suffix:G,uniqueId:se}=k;return h[S]=h[S]||[],h[S].push({namespace:v??kn(),value:C,suffix:G,uniqueId:se}),h},{});for(let h in a.__directives)a.__directives[h].sort((d,v)=>{let C=d.suffix??"",k=v.suffix??"";if(C!==k)return C<k?-1:1;let S=d.uniqueId??"",G=v.uniqueId??"";return+(S>G)-+(S<G)})}if(a.__directives?.["each-child"])a.dangerouslySetInnerHTML={__html:c.innerHTML};else if(l==="template")a.content=[...c.content.childNodes].map(h=>Ge(h));else{let h=n.firstChild();if(h){for(;h;){let d=o(h);d&&_.push(d),h=n.nextSibling()}n.parentNode()}}return P&&tt.pop(),N(l,a,_)}let i=o(n.currentNode);return t.forEach(s=>s.remove()),r.forEach(s=>s.replaceWith(new window.Text(s.nodeValue??""))),i}var Wt=new WeakMap,Ht=e=>{let t=Array.isArray(e)?e[0]:e;if(!t.parentElement)throw Error("The passed region should be an element with a parent.");return Wt.has(t)||Wt.set(t,Sr(t.parentElement,e)),Wt.get(t)},Mr=new WeakMap,Br,Wr=new Promise(e=>{Br=e}),Hr=async()=>{let e=document.querySelectorAll("[data-wp-interactive]");for(let t of e)if(!Bt.has(t)){await ne();let r=Ht(t),n=Ge(t);Mr.set(t,n),await ne(),dt(n,r)}Br(Mr)};var Gs=z,Gn="I acknowledge that using private APIs means my theme or plugin will inevitably break in the next version of WordPress.",Os=e=>{if(e===Gn)return{getRegionRootFragment:Ht,initialVdomPromise:Wr,toVdom:Ge,directive:y,getNamespace:H,h:N,cloneElement:ce,render:_t,proxifyState:R,parseServerData:Gt,populateServerData:Ot,batch:ee,routerRegions:Re,deepReadOnly:Ie,navigationSignal:Xe,sessionId:Ye,warn:Pe};throw new Error("Forbidden access.")};Ot(Gt());br(Hr);window.history.replaceState({...window.history.state,wpInteractivityId:Ye},"");window.addEventListener("popstate",e=>{e.state!==null&&e.state?.wpInteractivityId!==Ye&&window.location.reload()});export{bn as getConfig,_n as getContext,dn as getElement,It as getServerContext,Rt as getServerState,Os as privateApis,ne as splitTask,Ue as store,un as useCallback,an as useEffect,O as useInit,fn as useLayoutEffect,cn as useMemo,j as useRef,Kr as useState,Tt as useWatch,Gs as watch,$ as withScope,ln as withSyncEvent};
2 2 //# sourceMappingURL=index.min.js.map