CoreFiles by mySites.guru
index.min.js1 lines, 41,618 bytes, from wordpress-7.2-beta2.zip
Raw History Compare with 7.2-beta1
md5
5d33b80265e3850506c5c8abb184b020
sha1
245a2912dec69dcfefa50053e15f4be40a826508
sha256
86a09ca1806a26d0e7867842a68b7cdf23b84a6bb3e1acc09277ed6966acb5d3
var we,m,Jt,ut,K,Vt,Qt,Xt,ot,Oe,ye,Yt,ct,it,st,Zt,$e={},Be=[],Kr=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Le=Array.isArray;function q(e,t){for(var r in t)e[r]=t[r];return e}function lt(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?we.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 ge(e,s,n,i,null)}function ge(e,t,r,n,i){var o={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i??++Jt,__i:-1,__u:0};return i==null&&m.vnode!=null&&m.vnode(o),o}function qe(e){return e.children}function ue(e,t){this.props=e,this.context=t}function ce(e,t){if(t==null)return e.__?ce(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"?ce(e):null}function Jr(e){if(e.__P&&e.__d){var t=e.__v,r=t.__e,n=[],i=[],o=q({},t);o.__v=t.__v+1,m.vnode&&m.vnode(o),pt(e.__P,o,t,e.__n,e.__P.namespaceURI,32&t.__u?[r]:null,n,r??ce(t),!!(32&t.__u),i),o.__v=t.__v,o.__.__k[o.__i]=o,nr(n,o,i),t.__e=t.__=null,o.__e!=r&&er(o)}}function er(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}),er(e)}function at(e){(!e.__d&&(e.__d=!0)&&K.push(e)&&!He.__r++||Vt!=m.debounceRendering)&&((Vt=m.debounceRendering)||Qt)(He)}function He(){try{for(var e,t=1;K.length;)K.length>t&&K.sort(Xt),e=K.shift(),t=K.length,Jr(e)}finally{K.length=He.__r=0}}function tr(e,t,r,n,i,o,s,a,c,u,l){var f,p,_,w,I,h,d,v=n&&n.__k||Be,N=t.length;for(c=Qr(r,t,v,c,N),f=0;f<N;f++)(_=r.__k[f])!=null&&(p=_.__i!=-1&&v[_.__i]||$e,_.__i=f,h=pt(e,_,p,i,o,s,a,c,u,l),w=_.__e,_.ref&&p.ref!=_.ref&&(p.ref&&_t(p.ref,null,_),l.push(_.ref,_.__c||w,_)),I==null&&w!=null&&(I=w),(d=!!(4&_.__u))||p.__k===_.__k?(c=rr(_,c,e,d),d&&p.__e&&(p.__e=null)):typeof _.type=="function"&&h!==void 0?c=h:w&&(c=w.nextSibling),_.__u&=-7);return r.__e=I,c}function Qr(e,t,r,n,i){var o,s,a,c,u,l=r.length,f=l,p=0;for(e.__k=new Array(i),o=0;o<i;o++)(s=t[o])!=null&&typeof s!="boolean"&&typeof s!="function"?(typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?s=e.__k[o]=ge(null,s,null,null,null):Le(s)?s=e.__k[o]=ge(qe,{children:s},null,null,null):s.constructor===void 0&&s.__b>0?s=e.__k[o]=ge(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):e.__k[o]=s,c=o+p,s.__=e,s.__b=e.__b+1,a=null,(u=s.__i=Xr(s,r,c,f))!=-1&&(f--,(a=r[u])&&(a.__u|=2)),a==null||a.__v==null?(u==-1&&(i>l?p--:i<l&&p++),typeof s.type!="function"&&(s.__u|=4)):u!=c&&(u==c-1?p--:u==c+1?p++:(u>c?p--:p++,s.__u|=4))):e.__k[o]=null;if(f)for(o=0;o<l;o++)(a=r[o])!=null&&(2&a.__u)==0&&(a.__e==n&&(n=ce(a)),ir(a,a));return n}function rr(e,t,r,n){var i,o;if(typeof e.type=="function"){for(i=e.__k,o=0;i&&o<i.length;o++)i[o]&&(i[o].__=e,t=rr(i[o],t,r,n));return t}e.__e!=t&&(n&&(t&&e.type&&!t.parentNode&&(t=ce(e)),r.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Xr(e,t,r,n){var i,o,s,a=e.key,c=e.type,u=t[r],l=u!=null&&(2&u.__u)==0;if(u===null&&a==null||l&&a==u.key&&c==u.type)return r;if(n>(l?1:0)){for(i=r-1,o=r+1;i>=0||o<t.length;)if((u=t[s=i>=0?i--:o++])!=null&&(2&u.__u)==0&&a==u.key&&c==u.type)return s}return-1}function zt(e,t,r){t[0]=="-"?e.setProperty(t,r??""):e[t]=r==null?"":typeof r!="number"||Kr.test(t)?r:r+"px"}function Me(e,t,r,n,i){var o,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||zt(e.style,t,"");if(r)for(t in r)n&&r[t]==n[t]||zt(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")o=t!=(t=t.replace(Yt,"$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+o]=r,r?n?r[ye]=n[ye]:(r[ye]=ct,e.addEventListener(t,o?st:it,o)):e.removeEventListener(t,o?st:it,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 Kt(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t[Oe]==null)t[Oe]=ct++;else if(t[Oe]<r[ye])return;return r(m.event?m.event(t):t)}}}function pt(e,t,r,n,i,o,s,a,c,u){var l,f,p,_,w,I,h,d,v,N,T,k,Z,ae,nt,L=t.type;if(t.constructor!==void 0)return null;128&r.__u&&(c=!!(32&r.__u),o=[a=t.__e=r.__e]),(l=m.__b)&&l(t);e:if(typeof L=="function")try{if(d=t.props,v=L.prototype&&L.prototype.render,N=(l=L.contextType)&&n[l.__c],T=l?N?N.props.value:l.__:n,r.__c?h=(f=t.__c=r.__c).__=f.__E:(v?t.__c=f=new L(d,T):(t.__c=f=new ue(d,T),f.constructor=L,f.render=Zr),N&&N.sub(f),f.state||(f.state={}),f.__n=n,p=f.__d=!0,f.__h=[],f._sb=[]),v&&f.__s==null&&(f.__s=f.state),v&&L.getDerivedStateFromProps!=null&&(f.__s==f.state&&(f.__s=q({},f.__s)),q(f.__s,L.getDerivedStateFromProps(d,f.__s))),_=f.props,w=f.state,f.__v=t,p)v&&L.getDerivedStateFromProps==null&&f.componentWillMount!=null&&f.componentWillMount(),v&&f.componentDidMount!=null&&f.__h.push(f.componentDidMount);else{if(v&&L.getDerivedStateFromProps==null&&d!==_&&f.componentWillReceiveProps!=null&&f.componentWillReceiveProps(d,T),t.__v==r.__v||!f.__e&&f.shouldComponentUpdate!=null&&f.shouldComponentUpdate(d,f.__s,T)===!1){t.__v!=r.__v&&(f.props=d,f.state=f.__s,f.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(fe){fe&&(fe.__=t)}),Be.push.apply(f.__h,f._sb),f._sb=[],f.__h.length&&s.push(f);break e}f.componentWillUpdate!=null&&f.componentWillUpdate(d,f.__s,T),v&&f.componentDidUpdate!=null&&f.__h.push(function(){f.componentDidUpdate(_,w,I)})}if(f.context=T,f.props=d,f.__P=e,f.__e=!1,k=m.__r,Z=0,v)f.state=f.__s,f.__d=!1,k&&k(t),l=f.render(f.props,f.state,f.context),Be.push.apply(f.__h,f._sb),f._sb=[];else do f.__d=!1,k&&k(t),l=f.render(f.props,f.state,f.context),f.state=f.__s;while(f.__d&&++Z<25);f.state=f.__s,f.getChildContext!=null&&(n=q(q({},n),f.getChildContext())),v&&!p&&f.getSnapshotBeforeUpdate!=null&&(I=f.getSnapshotBeforeUpdate(_,w)),ae=l!=null&&l.type===qe&&l.key==null?or(l.props.children):l,a=tr(e,Le(ae)?ae:[ae],t,r,n,i,o,s,a,c,u),f.base=t.__e,t.__u&=-161,f.__h.length&&s.push(f),h&&(f.__E=f.__=null)}catch(fe){if(t.__v=null,c||o!=null)if(fe.then){for(t.__u|=c?160:128;a&&a.nodeType==8&&a.nextSibling;)a=a.nextSibling;o[o.indexOf(a)]=null,t.__e=a}else{for(nt=o.length;nt--;)lt(o[nt]);ft(t)}else t.__e=r.__e,t.__k=r.__k,fe.then||ft(t);m.__e(fe,t,r)}else o==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):a=t.__e=Yr(r.__e,t,r,n,i,o,s,c,u);return(l=m.diffed)&&l(t),128&t.__u?void 0:a}function ft(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some(ft))}function nr(e,t,r){for(var n=0;n<r.length;n++)_t(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 or(e){return typeof e!="object"||e==null||e.__b>0?e:Le(e)?e.map(or):q({},e)}function Yr(e,t,r,n,i,o,s,a,c){var u,l,f,p,_,w,I,h=r.props||$e,d=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(u=0;u<o.length;u++)if((_=o[u])&&"setAttribute"in _==!!v&&(v?_.localName==v:_.nodeType==3)){e=_,o[u]=null;break}}if(e==null){if(v==null)return document.createTextNode(d);e=document.createElementNS(i,v,d.is&&d),a&&(m.__m&&m.__m(t,o),a=!1),o=null}if(v==null)h===d||a&&e.data==d||(e.data=d);else{if(o=o&&we.call(e.childNodes),!a&&o!=null)for(h={},u=0;u<e.attributes.length;u++)h[(_=e.attributes[u]).name]=_.value;for(u in h)_=h[u],u=="dangerouslySetInnerHTML"?f=_:u=="children"||u in d||u=="value"&&"defaultValue"in d||u=="checked"&&"defaultChecked"in d||Me(e,u,null,_,i);for(u in d)_=d[u],u=="children"?p=_:u=="dangerouslySetInnerHTML"?l=_:u=="value"?w=_:u=="checked"?I=_:a&&typeof _!="function"||h[u]===_||Me(e,u,_,h[u],i);if(l)a||f&&(l.__html==f.__html||l.__html==e.innerHTML)||(e.innerHTML=l.__html),t.__k=[];else if(f&&(e.innerHTML=""),tr(t.type=="template"?e.content:e,Le(p)?p:[p],t,r,n,v=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,s,o?o[0]:r.__k&&ce(r,0),a,c),o!=null)for(u=o.length;u--;)lt(o[u]);a||(u="value",v=="progress"&&w==null?e.removeAttribute("value"):w!=null&&(w!==e[u]||v=="progress"&&!w||v=="option"&&w!=h[u])&&Me(e,u,w,h[u],i),u="checked",I!=null&&I!=e[u]&&Me(e,u,I,h[u],i))}return e}function _t(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 ir(e,t,r){var n,i;if(m.unmount&&m.unmount(e),(n=e.ref)&&(n.current&&n.current!=e.__e||_t(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]&&ir(n[i],t,r||typeof e.type!="function");r||lt(e.__e),e.__c=e.__=e.__e=void 0}function Zr(e,t,r){return this.constructor(e,r)}function dt(e,t,r){var n,i,o,s;t==document&&(t=document.documentElement),m.__&&m.__(e,t),i=(n=typeof r=="function")?null:r&&r.__k||t.__k,o=[],s=[],pt(t,e=(!n&&r||t).__k=U(qe,null,[e]),i||$e,$e,t.namespaceURI,!n&&r?[r]:i?null:t.firstChild?we.call(t.childNodes):null,o,!n&&r?r:i?i.__e:t.firstChild,n,s),nr(o,e,s)}function ht(e,t){dt(e,t,ht)}function le(e,t,r){var n,i,o,s,a=q({},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]:a[o]=t[o]===void 0&&s!=null?s[o]:t[o];return arguments.length>2&&(a.children=arguments.length>3?we.call(arguments,2):r),ge(e.type,a,n||e.key,i||e.ref,null)}function sr(e){function t(r){var n,i;return this.getChildContext||(n=new Set,(i={})[t.__c]=this,this.getChildContext=function(){return i},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(o){this.props.value!=o.value&&n.forEach(function(s){s.__e=!0,at(s)})},this.sub=function(o){n.add(o);var s=o.componentWillUnmount;o.componentWillUnmount=function(){n&&n.delete(o),s&&s.call(o)}}),r.children}return t.__c="__cC"+Zt++,t.__=e,t.Provider=t.__l=(t.Consumer=function(r,n){return r.children(n)}).contextType=t,t}we=Be.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(a){e=a}throw e}},Jt=0,ut=function(e){return e!=null&&e.constructor===void 0},ue.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=q({},this.state),typeof e=="function"&&(e=e(q({},r),this.props)),e&&q(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),at(this))},ue.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),at(this))},ue.prototype.render=qe,K=[],Qt=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Xt=function(e,t){return e.__v.__b-t.__v.__b},He.__r=0,ot=Math.random().toString(8),Oe="__d"+ot,ye="__a"+ot,Yt=/(PointerCapture)$|Capture$/i,ct=0,it=Kt(!1),st=Kt(!0),Zt=0;var ee,S,vt,ar,Se=0,hr=[],b=m,fr=b.__b,ur=b.__r,cr=b.diffed,lr=b.__c,pr=b.unmount,_r=b.__;function be(e,t){b.__h&&b.__h(S,e,Se||t),Se=0;var r=S.__H||(S.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function en(e){return Se=1,tn(vr,e)}function tn(e,t,r){var n=be(ee++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):vr(void 0,t),function(a){var c=n.__N?n.__N[0]:n.__[0],u=n.t(c,a);c!==u&&(n.__N=[u,n.__[1]],n.__c.setState({}))}],n.__c=S,!S.__f)){var i=function(a,c,u){if(!n.__c.__H)return!0;var l=n.__c.__H.__.filter(function(p){return p.__c});if(l.every(function(p){return!p.__N}))return!o||o.call(this,a,c,u);var f=n.__c.props!==a;return l.some(function(p){if(p.__N){var _=p.__[0];p.__=p.__N,p.__N=void 0,_!==p.__[0]&&(f=!0)}}),o&&o.call(this,a,c,u)||f};S.__f=!0;var o=S.shouldComponentUpdate,s=S.componentWillUpdate;S.componentWillUpdate=function(a,c,u){if(this.__e){var l=o;o=void 0,i(a,c,u),o=l}s&&s.call(this,a,c,u)},S.shouldComponentUpdate=i}return n.__N||n.__}function xe(e,t){var r=be(ee++,3);!b.__s&&yt(r.__H,t)&&(r.__=e,r.u=t,S.__H.__h.push(r))}function je(e,t){var r=be(ee++,4);!b.__s&&yt(r.__H,t)&&(r.__=e,r.u=t,S.__h.push(r))}function G(e){return Se=5,te(function(){return{current:e}},[])}function te(e,t){var r=be(ee++,7);return yt(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function Ae(e,t){return Se=8,te(function(){return e},t)}function pe(e){var t=S.context[e.__c],r=be(ee++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(S)),t.props.value):e.__}function rn(){for(var e;e=hr.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(We),t.__h.some(mt),t.__h=[]}catch(r){t.__h=[],b.__e(r,e.__v)}}}b.__b=function(e){S=null,fr&&fr(e)},b.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),_r&&_r(e,t)},b.__r=function(e){ur&&ur(e),ee=0;var t=(S=e.__c).__H;t&&(vt===S?(t.__h=[],S.__h=[],t.__.some(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.some(We),t.__h.some(mt),t.__h=[],ee=0)),vt=S},b.diffed=function(e){cr&&cr(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(hr.push(t)!==1&&ar===b.requestAnimationFrame||((ar=b.requestAnimationFrame)||nn)(rn)),t.__H.__.some(function(r){r.u&&(r.__H=r.u),r.u=void 0})),vt=S=null},b.__c=function(e,t){t.some(function(r){try{r.__h.some(We),r.__h=r.__h.filter(function(n){return!n.__||mt(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],b.__e(n,r.__v)}}),lr&&lr(e,t)},b.unmount=function(e){pr&&pr(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.some(function(n){try{We(n)}catch(i){t=i}}),r.__H=void 0,t&&b.__e(t,r.__v))};var dr=typeof requestAnimationFrame=="function";function nn(e){var t,r=function(){clearTimeout(n),dr&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,35);dr&&(t=requestAnimationFrame(r))}function We(e){var t=S,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),S=t}function mt(e){var t=S;e.__c=e.__(),S=t}function yt(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function vr(e,t){return typeof t=="function"?t(e):t}var on=Symbol.for("preact-signals");function Ve(){if(J>1)J--;else{for(var e,t=!1;Te!==void 0;){var r=Te;for(Te=void 0,gt++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&yr(r))try{r.c()}catch(i){t||(e=i,t=!0)}r=n}}if(gt=0,J--,t)throw e}}function re(e){if(J>0)return e();J++;try{return e()}finally{Ve()}}var g=void 0;var Te=void 0,J=0,gt=0,Fe=0;function mr(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=on;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 Q(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=mr(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(gt>100)throw new Error("Cycle detected");this.v=e,this.i++,Fe++,J++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Ve()}}}});function C(e){return new E(e)}function yr(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 gr(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 wr(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 _e(e){E.call(this,void 0),this.x=e,this.s=void 0,this.g=Fe-1,this.f=4}(_e.prototype=new E).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Fe))return!0;if(this.g=Fe,this.f|=1,this.i>0&&!yr(this))return this.f&=-2,!0;var e=g;try{gr(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,wr(this),this.f&=-2,!0};_e.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)};_e.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)}};_e.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(_e.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=mr(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 _e(e)}function Sr(e){var t=e.u;if(e.u=void 0,typeof t=="function"){J++;var r=g;g=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,wt(e),n}finally{g=r,Ve()}}}function wt(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,Sr(e)}function sn(e){if(g!==this)throw new Error("Out-of-order effect");wr(this),g=e,this.f&=-2,8&this.f&&wt(this),Ve()}function Pe(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}Pe.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()}};Pe.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Sr(this),gr(this),J++;var e=g;return g=this,sn.bind(this,e)};Pe.prototype.N=function(){2&this.f||(this.f|=2,this.o=Te,Te=this)};Pe.prototype.d=function(){this.f|=8,1&this.f||wt(this)};function Q(e){var t=new Pe(e);try{t.c()}catch(r){throw t.d(),r}return t.d.bind(t)}var bt,St;function de(e,t){m[e]=t.bind(null,m[e]||function(){})}function ze(e){St&&St(),St=e&&e.S()}function br(e){var t=this,r=e.data,n=fn(r);n.value=r;var i=te(function(){for(var o=t.__v;o=o.__;)if(o.__c){o.__c.__$f|=4;break}return t.__$u.c=function(){var s;!ut(i.peek())&&((s=t.base)==null?void 0:s.nodeType)===3?t.base.data=i.peek():(t.__$f|=1,t.setState({}))},Ee(function(){var s=n.value.value;return s===0?0:s===!0?"":s||""})},[]);return i.value}br.displayName="_st";Object.defineProperties(E.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:br},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});de("__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)});de("__r",function(e,t){ze();var r,n=t.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=(function(i){var o;return Q(function(){o=this}),o.c=function(){n.__$f|=1,n.setState({})},o})())),bt=n,ze(r),e(t)});de("__e",function(e,t,r,n){ze(),bt=void 0,e(t,r,n)});de("diffed",function(e,t){ze(),bt=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 a=o[s];a!==void 0&&!(s in n)&&(a.d(),o[s]=void 0)}else r.U=o={};for(var c in n){var u=o[c],l=n[c];u===void 0?(u=an(r,c,l,i),o[c]=u):u.o(l,i)}}}e(t)});function an(e,t,r,n){var i=t in e&&e.ownerSVGElement===void 0,o=C(r);return{o:function(s,a){o.value=s,n=a},d:Q(function(){var s=o.value.value;n[t]!==s&&(n[t]=s,i?e[t]=s:s?e.setAttribute(t,s):e.removeAttribute(t))})}}de("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 a=s.__$u;a&&(s.__$u=void 0,a.d())}}e(t)});de("__h",function(e,t,r,n){(n<3||n===9)&&(t.__$f|=2),e(t,r,n)});ue.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 fn(e){return te(function(){return C(e)},[])}var Ke=new WeakMap,xr=new WeakMap,xt=new WeakMap,un=new Set([Object,Array]),Je=(e,t,r)=>{if(!ne(t))throw Error("This object cannot be proxified.");if(!Ke.has(t)){let n=new Proxy(t,r);Ke.set(t,n),xr.set(n,t),xt.set(n,e)}return Ke.get(t)},Qe=e=>Ke.get(e),O=e=>xt.get(e),ne=e=>typeof e!="object"||e===null?!1:!xt.has(e)&&un.has(e.constructor),Tr=e=>xr.get(e);var Tt=[],W=()=>Tt.slice(-1)[0],j=e=>{Tt.push(e)},A=()=>{Tt.pop()};var Pt=e=>new Promise(t=>{let r=()=>{clearTimeout(n),window.cancelAnimationFrame(i),setTimeout(()=>{e(),t()})},n=setTimeout(r,100),i=window.requestAnimationFrame(r)}),oe=typeof window.scheduler?.yield=="function"?window.scheduler.yield.bind(window.scheduler):()=>new Promise(e=>{setTimeout(e,0)}),Er=e=>{let[t]=performance.getEntriesByType("navigation");t.domContentLoadedEventStart>0?e():document.addEventListener("DOMContentLoaded",e)},cn=e=>Q(()=>{Y();try{return e()}finally{F()}});function ln(e,t){let r=()=>{},n=Q(function(){return r=this.c.bind(this),this.x=e,this.c=t,e()});return{flush:r,dispose:n}}function pn(e){xe(()=>{let t=null,r=!1;return t=ln(e,async()=>{t&&!r&&(r=!0,await Pt(t.flush),r=!1)}),t.dispose},[])}function $(e){let t=D(),r=W(),n;if(e?.constructor?.name==="GeneratorFunction"?n=async(...o)=>{let s=e(...o),a,c,u;for(;;){j(r),Y(t);try{c=u?s.throw(u):s.next(a),u=void 0}catch(l){throw l}finally{F(),A()}try{a=await c.value}catch(l){u=l}if(c.done){if(u)throw u;break}}return a}:n=(...o)=>{j(r),Y(t);try{return e(...o)}finally{A(),F()}},e.sync){let o=n;return o.sync=!0,o}return n}function It(e){pn($(e))}function M(e){xe($(e),[])}function _n(e,t){xe($(e),t)}function Nt(e,t){je($(e),t)}function dn(e,t){return Ae($(e),t)}function hn(e,t){return te($(e),t)}var Pr=(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 Ir(e){return e.replace(/^-+|-+$/g,"").toLowerCase().replace(/-([a-z])/g,function(t,r){return r.toUpperCase()})}var z=e=>{},P=e=>!!(e&&typeof e=="object"&&e.constructor===Object);function vn(e){let t=e;return t.sync=!0,t}var Et=new WeakMap,mn=e=>{let t=()=>!1;return{get(r,n){let i=r[n];return i&&typeof i=="object"?Ie(i,{errorMessage:e}):i},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=mn(r);Et.set(e,new Proxy(e,n))}return Et.get(e)}var Xe=C(0),Ye=Math.random().toString(36).slice(2);function X(e){return P(e)?Object.fromEntries(Object.entries(e).map(([t,r])=>[t,X(r)])):Array.isArray(e)?e.map(t=>X(t)):e}var Ct=[],D=()=>Ct.slice(-1)[0],Y=e=>{Ct.push(e)},F=()=>{Ct.pop()};var yn=e=>D().context[e||W()],gn=()=>{let e=D(),t={},{ref:r,attributes:n}=e;return Object.freeze({ref:r.current,attributes:Ie(n,t)})},Ze=C(0);function Dt(e){let t=D();return Dt.subscribe=Ze.value,X(t.serverContext[e||W()])}Dt.subscribe=0;var wn={},Nr=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()||wn;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};j(O(this.owner)),this.computedsByScope.set(e,Ee($(t))),A()}return this.computedsByScope.get(e)}update({get:e,value:t}){this.valueSignal?(t!==this.valueSignal.peek()||e!==this.getterSignal.peek())&&re(()=>{this.valueSignal.value=t,this.getterSignal.value=e}):(this.valueSignal=C(t),this.getterSignal=C(e))}};var Sn=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(e=>typeof e=="symbol")),he=new WeakMap,bn=(e,t)=>he.has(e)&&he.get(e).has(t),Ne=(e,t,r)=>{he.has(e)||he.set(e,new Map),t=typeof t=="number"?`${t}`:t;let n=he.get(e);if(!n.has(t)){let i=O(e),o=new Nr(e);if(n.set(t,o),r){let{get:s,value:a}=r;s?o.setGetter(s):o.setValue(ne(a)?R(i,a):a)}}return n.get(t)},V=new WeakMap,kt=!1,x=Symbol("PENDING_GETTER"),xn={get(e,t,r){if(kt||!e.hasOwnProperty(t)&&t in e||typeof t=="symbol"&&Sn.has(t))return Reflect.get(e,t,r);let n=Object.getOwnPropertyDescriptor(e,t),o=Ne(r,t,n).getComputed().value;if(o===x)throw x;if(typeof o=="function"){let s=O(r);return(...a)=>{j(s);try{return o.call(r,...a)}finally{A()}}}return o},set(e,t,r,n){j(O(n));try{return Reflect.set(e,t,r,n)}finally{A()}},defineProperty(e,t,r){let n=!(t in e),i=Reflect.defineProperty(e,t,r);if(i){let o=Qe(e),s=Ne(o,t),{get:a,value:c}=r;if(a)s.setGetter(a);else{let u=O(o);s.setValue(ne(c)?R(u,c):c)}n&&V.has(e)&&V.get(e).value++,Array.isArray(e)&&he.get(o)?.has("length")&&Ne(o,"length").setValue(e.length)}return i},deleteProperty(e,t){let r=Reflect.deleteProperty(e,t);return r&&(Ne(Qe(e),t).setValue(void 0),V.has(e)&&V.get(e).value++),r},ownKeys(e){return V.has(e)||V.set(e,C(0)),V._=V.get(e).value,Reflect.ownKeys(e)}},R=(e,t)=>Je(e,t,xn),Ut=(e,t)=>{kt=!0;try{return e[t]}finally{kt=!1}},Rt=(e,t,r=!0)=>{if(!(P(e)&&P(t)))return;let n=!1;for(let i in t){let o=!(i in e);n=n||o;let s=Object.getOwnPropertyDescriptor(t,i),a=Qe(e),c=!!a&&bn(a,i)&&Ne(a,i);if(typeof s.get=="function"||typeof s.set=="function")(r||o)&&(Object.defineProperty(e,i,{...s,configurable:!0,enumerable:!0}),s.get&&c&&c.setPendingGetter(s.get));else if(P(t[i])){let u=Object.getOwnPropertyDescriptor(e,i)?.value;if(o||r&&!P(u)){if(e[i]={},c){let l=O(a);c.setValue(R(l,e[i]))}Rt(e[i],t[i],r)}else P(u)&&Rt(e[i],t[i],r)}else if((r||o)&&(Object.defineProperty(e,i,s),c)){let{value:u}=s,l=O(a);c.setValue(ne(u)?R(l,u):u)}}n&&V.has(e)&&V.get(e).value++},ie=(e,t,r=!0)=>re(()=>Rt(Tr(e)||e,t,r));var Cr=new WeakSet,Tn={get:(e,t,r)=>{let n=Reflect.get(e,t),i=O(r);if(typeof n>"u"&&Cr.has(r)){let o={};return Reflect.set(e,t,o),Ce(i,o,!1)}if(typeof n=="function"){j(i);let o=$(n);return A(),o}return P(n)&&ne(n)?Ce(i,n,!1):n}},Ce=(e,t,r=!0)=>{let n=Je(e,t,Tn);return n&&r&&Cr.add(n),n};var Gt=new WeakMap,ve=new WeakMap,Dr=new WeakSet,kr=Reflect.getOwnPropertyDescriptor,En={get:(e,t)=>{let r=ve.get(e),n=e[t];return t in e?n:r[t]},set:(e,t,r)=>{let n=ve.get(e),i=t in e||!(t in n)?e:n;return i[t]=r,!0},ownKeys:e=>[...new Set([...Object.keys(ve.get(e)),...Object.keys(e)])],getOwnPropertyDescriptor:(e,t)=>kr(e,t)||kr(ve.get(e),t),has:(e,t)=>Reflect.has(e,t)||Reflect.has(ve.get(e),t)},me=(e,t={})=>{if(Dr.has(e))throw Error("This object cannot be proxified.");if(ve.set(e,t),!Gt.has(e)){let r=new Proxy(e,En);Gt.set(e,r),Dr.add(r)}return Gt.get(e)};var De=new Map,Rr=new Map,et=new Map,Mt=new Map,ke=new Map,Pn=e=>Mt.get(e||W())||{};function Ot(e){let t=e||W();return ke.has(t)||ke.set(t,{}),Ot.subscribe=Xe.value,X(ke.get(t))}Ot.subscribe=0;var se="I acknowledge that using a private store means my plugin will inevitably break on the next store release.";function Re(e,{state:t={},...r}={},{lock:n=!1}={}){if(De.has(e)){if(n!==se&&!et.has(e))et.set(e,n);else{let o=et.get(e);if(!(n===se||n!==!0&&n===o))throw Error(o?"Cannot unlock a private store with an invalid lock code":"Cannot lock a public store")}let i=Rr.get(e);ie(i,r),ie(i.state,t)}else{n!==se&&et.set(e,n);let i={state:R(e,P(t)?t:{}),...r},o=Ce(e,i);Rr.set(e,i),De.set(e,o)}return De.get(e)}var $t=(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{}},Bt=e=>{ke.clear(),Mt.clear(),P(e?.state)&&Object.entries(e.state).forEach(([t,r])=>{let n=Re(t,{},{lock:se});ie(n.state,r,!1),ke.set(t,r)}),P(e?.config)&&Object.entries(e.config).forEach(([t,r])=>{Mt.set(t,r)}),P(e?.derivedStateClosures)&&Object.entries(e.derivedStateClosures).forEach(([t,r])=>{let n=Re(t,{},{lock:se});r.forEach(i=>{let o=i.split("."),s=o.splice(-1,1)[0],a=o.reduce((u,l)=>Ut(u,l),n),c=Object.getOwnPropertyDescriptor(a,s);P(c?.value)&&(a[s]=x)})})};function B(e){return e.suffix!==null}function H(e){return e.suffix===null}var Ur=sr({client:{},server:{}}),Ht={},Mr={},y=(e,t,{priority:r=10}={})=>{Ht[e]=t,Mr[e]=r},In=(e,t)=>{if(!t){z(`Namespace missing for "${e}". The value for that path won't be resolved.`);return}let r=De.get(t);typeof r>"u"&&(r=Re(t,{},{lock:se}));let n={...r,context:D().context[t]};try{return e.split(".").reduce((o,s)=>o[s],n)}catch(i){if(i===x)return x}},Lt=({scope:e})=>t=>{let{value:r,namespace:n}=t;if(typeof r!="string")throw new Error("The `value` prop should be a string path");let i=r[0]==="!"&&!!(r=r.slice(1));Y(e);let o=In(r,n);if(typeof o=="function"){if(i){z(`The value of "${r}" is a function and cannot be negated. Please use derived state instead.`),F();return}F();let a=(...c)=>{Y(e);try{return o(...c)}finally{F()}};if(o.sync){let c=a;c.sync=!0}return a}let s=o;return F(),i&&o!==x?!s:s},Nn=e=>{let t=Object.keys(e).reduce((r,n)=>{if(Ht[n]){let i=Mr[n];(r[i]=r[i]||[]).push(n)}return r},{});return Object.entries(t).sort(([r],[n])=>parseInt(r)-parseInt(n)).map(([,r])=>r)},Or=({directives:e,priorityLevels:[t,...r],element:n,originalProps:i,previousScope:o})=>{let s=G({}).current;s.evaluate=Ae(Lt({scope:s}),[]);let{client:a,server:c}=pe(Ur);s.context=a,s.serverContext=c,s.ref=o?.ref||G(null),n=le(n,{ref:s.ref}),s.attributes=n.props;let u=r.length>0?U(Or,{directives:e,priorityLevels:r,element:n,originalProps:i,previousScope:s}):n,l={...i,children:u},f={directives:e,props:l,element:n,context:Ur,evaluate:s.evaluate};Y(s);for(let p of t){let _=Ht[p]?.(f);_!==void 0&&(l.children=_)}return F(),l.children},Gr=m.vnode;m.vnode=e=>{if(e.props.__directives){let t=e.props,r=t.__directives;r.key&&(e.key=r.key.find(H).value),delete t.__directives;let n=Nn(r);n.length>0&&(e.props={directives:r,priorityLevels:n,originalProps:t,type:e.type,element:U(e.type,t),top:!0},e.type=Or)}Gr&&Gr(e)};y("bind",({directives:{bind:e},element:t,evaluate:r})=>{e.filter(B).forEach(n=>{if(n.uniqueId)return;let i=n.suffix,o=r(n);o!==x&&(typeof o=="function"&&(o=o()),t.props[i]=o,M(()=>{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!=="popover"&&i in s)try{s[i]=o??"";return}catch{}o!=null&&(o!==!1||i[4]==="-")?s.setAttribute(i,i==="popover"&&o===!0?"":o):s.removeAttribute(i)}))})});y("class",({directives:{class:e},element:t,evaluate:r})=>{e.filter(B).forEach(n=>{let i=n.uniqueId?`${n.suffix}---${n.uniqueId}`:n.suffix,o=r(n);if(o===x)return;typeof o=="function"&&(o=o());let s=t.props.class||"",a=new RegExp(`(^|\\s)${i}(\\s|$)`,"g");o?a.test(s)||(t.props.class=s?`${s} ${i}`:i):t.props.class=s.replace(a," ").trim(),M(()=>{o?t.ref.current.classList.add(i):t.ref.current.classList.remove(i)})})});y("context",({directives:{context:e},props:{children:t},context:r})=>{let n=e.filter(H).reverse();if(!n.length)return;let{Provider:i}=r,{client:o,server:s}=pe(r),a=G({}),c={},u={client:{...o},server:{...s}},l=new Set;return n.forEach(({value:f,namespace:p,uniqueId:_})=>{P(f)&&(a.current[p]||(a.current[p]=R(p,{})),ie(a.current[p],X(f),!1),c[p]=f,l.add(p))}),l.forEach(f=>{u.client[f]=me(a.current[f],o[f]),u.server[f]=me(c[f],s[f])}),U(i,{value:u},t)},{priority:5});var Cn=(e,t,r,n,i)=>{let o={...e.client,[t]:{...e.client[t],[n]:r}},s={...D(),context:o,serverContext:e.server};return i?Lt({scope:s})(i):r},Dn=function*(e,t,r,n,i){let{current:o}=G(new Map);for(let s of r){let a=Cn(e,t,s,n,i);o.has(a)||o.set(a,me(R(t,{[n]:void 0}),e.client[t])),yield[s,o.get(a),a]}};y("each",({directives:{each:e,"each-key":t},context:r,element:n,evaluate:i})=>{if(n.type!=="template")return;let{Provider:o}=r,s=pe(r),[a]=e,{namespace:c,suffix:u,uniqueId:l}=a;if(e.length>1||l)return;let f=i(a);if(f===x||(typeof f=="function"&&(f=f()),typeof f?.[Symbol.iterator]!="function"))return;let p=u?Ir(u):"item",_=[],w=Dn(s,c,f,p,t?.[0]);for(let[I,h,d]of w){let v={client:{...s.client,[c]:h},server:{...s.server}};v.client[c][p]=I,_.push(U(o,{value:v,key:d},n.props.content))}return _},{priority:20});y("each-child",({directives:{"each-child":e},element:t,evaluate:r})=>{let n=e.find(H);return n?r(n)===x?t:null:void 0},{priority:1});var tt=globalThis.trustedTypes?.emptyHTML??"",qt=new WeakMap;function kn(e){let{trustedTypes:t}=globalThis;if(typeof e!="string"&&!t?.isHTML(e))throw new TypeError("asDangerousHTML() expects a string or a native TrustedHTML value.");let r=Object.freeze(Object.create(null));return qt.set(r,e),r}function $r(e){return typeof e=="object"&&e!==null&&qt.has(e)}function Br(e){return qt.get(e)}var Rn=e=>P(e)&&e.wpServerHtml===!0;y("html",({directives:{html:e},element:t,evaluate:r})=>{let n=e.find(H),i=G(void 0),o=G(),s;if(n){if(!n.uniqueId)try{s=r(n),typeof s=="function"&&(s=s())}catch{s=void 0}}let a=!!n&&!n.uniqueId,c=Rn(s),u=s===x||c,l=$r(s),f=l?Br(s):tt;Nt(()=>{if(!a)return;if(u){c&&(i.current=void 0);return}!l&&s!==null&&s!==void 0&&z("data-wp-html: the value is not trusted HTML. Use asDangerousHTML() to explicitly trust the markup.");let p=String(f);if(i.current===p)return;let _=t.ref.current;if(i.current===void 0&&_.innerHTML===p){i.current=p;return}try{_.innerHTML=f}catch{_.innerHTML=tt}i.current=p},[s,a,u,c,l,f,t.ref]),a&&(o.current??=u&&t.props.dangerouslySetInnerHTML?.__html?t.props.dangerouslySetInnerHTML:{__html:tt},t.props.dangerouslySetInnerHTML=o.current,t.props.children=void 0)});y("init",({directives:{init:e},evaluate:t})=>{e.forEach(r=>{r.suffix===null&&M(()=>{let n,i=t(r);return typeof i=="function"&&(i=i()),i})})});function Hr(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 Lr=e=>({directives:t,evaluate:r})=>{t[`on-${e}`].filter(B).forEach(n=>{let i=n.suffix;M(()=>{let o=a=>{let c=r(n);typeof c=="function"&&(c?.sync||(a=Hr(a)),c(a))},s=e==="window"?window:document;return s.addEventListener(i,o),()=>s.removeEventListener(i,o)})})},qr=e=>({directives:t,evaluate:r})=>{t[`on-async-${e}`].filter(B).forEach(n=>{let i=n.suffix.split("--",1)[0];M(()=>{let o=async a=>{await oe();let c=r(n);typeof c=="function"&&c(a)},s=e==="window"?window:document;return s.addEventListener(i,o,{passive:!0}),()=>s.removeEventListener(i,o)})})};y("on",({directives:{on:e},element:t,evaluate:r})=>{let n=new Map;e.filter(B).forEach(i=>{let o=i.suffix;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}`]=a=>{s&&s(a),i.forEach(c=>{let u,l=r(c);typeof l=="function"&&(l?.sync||(a=Hr(a)),l(a))})}})});y("on-async",({directives:{"on-async":e},element:t,evaluate:r})=>{let n=new Map;e.filter(B).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}`]=a=>{s&&s(a),i.forEach(async c=>{await oe();let u=r(c);typeof u=="function"&&u(a)})}})});y("on-window",Lr("window"));y("on-document",Lr("document"));y("on-async-window",qr("window"));y("on-async-document",qr("document"));var Ue=new Map;y("router-region",({directives:{"router-region":e}})=>{let t=e.find(H);if(!t||t.suffix||t.uniqueId)return;let r=typeof t.value=="string"?t.value:t.value.id;Ue.has(r)||Ue.set(r,C());let n=Ue.get(r).value;if(je(()=>{n&&typeof n.type!="string"&&(Ze.value=Ze.peek()+1)},[n]),n&&typeof n.type!="string"){let i=D();return le(n,{previousScope:i})}return n},{priority:1});y("run",({directives:{run:e},evaluate:t})=>{e.forEach(r=>{if(r.suffix!==null)return;let n=t(r);return typeof n=="function"&&(n=n()),n})});var Un=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Gn=/\/\*[^]*?\*\/|  +/g,Wr=/\n+/g,jr=" ",Mn=e=>{let t=[{}],r,n;for(;r=Un.exec(e.replace(Gn,""));)r[4]?t.shift():r[3]?(n=r[3].replace(Wr,jr).trim(),t.unshift(t[0][n]=t[0][n]||{})):t[0][r[1]]=r[2].replace(Wr,jr).trim();return t[0]};y("style",({directives:{style:e},element:t,evaluate:r})=>{e.filter(B).forEach(n=>{if(n.uniqueId)return;let i=n.suffix,o=r(n);o!==x&&(typeof o=="function"&&(o=o()),t.props.style=t.props.style||{},typeof t.props.style=="string"&&(t.props.style=Mn(t.props.style)),o?t.props.style[i]=o:delete t.props.style[i],M(()=>{o?t.ref.current.style.setProperty(i,o):t.ref.current.style.removeProperty(i)}))})});y("text",({directives:{text:e},element:t,evaluate:r})=>{let n=e.filter(H);n.length&&n.forEach(i=>{if(!i.uniqueId)try{let o=r(i);if(o===x)return;typeof o=="function"&&(o=o()),t.props.children=typeof o=="object"?null:o.toString()}catch{t.props.children=null}})});y("watch",({directives:{watch:e},evaluate:t})=>{e.forEach(r=>{r.suffix===null&&It(()=>{let n,i=t(r);return typeof i=="function"&&(i=i()),i})})});var Wt="data-wp-",rt=[],On=()=>rt[rt.length-1]??null,$n=e=>!!(e&&typeof e=="object"&&e.constructor===Object),Bn=/[^a-z0-9-_]/i;function Hn(e){let t=e.substring(8);if(Bn.test(t))return null;let r=t.indexOf("--");if(r===0||t[0]==="-")return null;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 a=o.substring(s+3)||null;return o=o.substring(0,s)||null,{prefix:n,suffix:o,uniqueId:a}}return{prefix:n,suffix:o||null,uniqueId:null}}var Ln=/^([\w_\/-]+)::(.+)$/;function jt(e){let t=Ln.exec(e),r=t?.[1]??null,n=t?.[2]??e,i=n;if(/^\s*\{/.test(n))try{let o=JSON.parse(n);$n(o)&&(i=o)}catch{}return{namespace:r,value:i}}function Ge(e){let t=new Set,r=new Set,n=document.createTreeWalker(e,205);function i(s){let{nodeType:a}=s;if(a===3)return s.data;if(a===4)return r.add(s),s.data;if(a===8||a===7)return t.add(s),null;let c=s,u=c.localName,l={},f=[],p=[],_=!1,w=c.getAttributeNames();for(let h=0;h<w.length;h++){let d=w[h],v=c.getAttribute(d)??"";if(d[Wt.length]&&d.slice(0,Wt.length)===Wt){let{namespace:N,value:T}=jt(v);if(d==="data-wp-interactive"){_=!0;let k=typeof T=="string"?T:typeof T?.namespace=="string"?T.namespace:null;rt.push(k)}else p.push([d,N,T]);l[d]=v;continue}else if(d==="ref")continue;v===""&&c[d]===!0?l[d]=!0:l[d]=v}if(p.length){l.__directives=p.reduce((h,[d,v,N])=>{let T=Hn(d);if(T===null)return h;let{prefix:k,suffix:Z,uniqueId:ae}=T;return h[k]=h[k]||[],h[k].push({namespace:v??On(),value:N,suffix:Z,uniqueId:ae}),h},{});for(let h in l.__directives)l.__directives[h].sort((d,v)=>{let N=d.suffix??"",T=v.suffix??"";if(N!==T)return N<T?-1:1;let k=d.uniqueId??"",Z=v.uniqueId??"";return+(k>Z)-+(k<Z)})}if(l.__directives?.html){let h=["text","each","router-region"].filter(d=>d in l.__directives);h.length&&(z(`The data-wp-html directive was ignored because it conflicts with ${h.map(d=>`data-wp-${d}`).join(", ")}.`),delete l.__directives.html)}let I=l.__directives?.html?.some(({suffix:h})=>h===null);if(l.__directives?.["each-child"]||I)l.dangerouslySetInnerHTML={__html:c.innerHTML};else if(u==="template")l.content=[...c.content.childNodes].map(h=>Ge(h));else{let h=n.firstChild();if(h){for(;h;){let d=i(h);d&&f.push(d),h=n.nextSibling()}n.parentNode()}}return _&&rt.pop(),U(u,l,f)}let o=i(n.currentNode);return t.forEach(s=>s.remove()),r.forEach(s=>s.replaceWith(new window.Text(s.data))),o}var At=new WeakMap,Ft=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 At.has(t)||At.set(t,Pr(t.parentElement,e)),At.get(t)},Ar=new WeakMap,Fr,Vr=new Promise(e=>{Fr=e}),zr=async()=>{let e=[...document.querySelectorAll("[data-wp-interactive]")].filter(t=>!t.parentElement?.closest("[data-wp-interactive]"));for(let t of e){await oe();let r=Ft(t),n=Ge(t);Ar.set(t,n),await oe(),ht(n,r)}Fr(Ar)};var qn="I acknowledge that using private APIs means my theme or plugin will inevitably break in the next version of WordPress.",As=e=>{if(e===qn)return{getRegionRootFragment:Ft,initialVdomPromise:Vr,toVdom:Ge,parseDirectiveValue:jt,directive:y,getNamespace:W,h:U,cloneElement:le,render:dt,proxifyState:R,parseServerData:$t,populateServerData:Bt,batch:re,routerRegions:Ue,deepReadOnly:Ie,navigationSignal:Xe,sessionId:Ye,warn:z,afterNextFrame:Pt,getScope:D};throw new Error("Forbidden access.")};Bt($t());Er(zr);window.history.replaceState({...window.history.state,wpInteractivityId:Ye},"");window.addEventListener("popstate",e=>{e.state!==null&&e.state?.wpInteractivityId!==Ye&&window.location.reload()});export{kn as asDangerousHTML,Pn as getConfig,yn as getContext,gn as getElement,Dt as getServerContext,Ot as getServerState,As as privateApis,oe as splitTask,Re as store,dn as useCallback,_n as useEffect,M as useInit,Nt as useLayoutEffect,hn as useMemo,G as useRef,en as useState,It as useWatch,cn as watch,$ as withScope,vn as withSyncEvent};

The same content is in 2 releases, WordPress 7.2-beta1 to 7.2-beta2. See them all, or every version of this file.