parent."+debug_w(e)+"\n\n"+debug_f(e));else if("p"===t){var c=debug_p(e).filter(function(n){return debug_m.test(n)});c.length&&console.error("Improper nesting of paragraph. Your should not have "+c.join(", ")+" as child-elements."+debug_w(e)+"\n\n"+debug_f(e))}else"a"!==t&&"button"!==t||-1!==debug_p(e).indexOf(t)&&console.error("Improper nesting of interactive content. Your <"+t+"> should not have other "+("a"===t?"anchor":"button")+" tags as child-elements."+debug_w(e)+"\n\n"+debug_f(e))}if(n=!1,r&&r(e),null!=e.__k)for(var l=[],u=0;u{n.d(t,{zj:()=>pt,SD:()=>ve,V6:()=>ye,$K:()=>me,vT:()=>ht,jb:()=>qt,yT:()=>we,M_:()=>vt,hb:()=>Oe,vJ:()=>Ee,ip:()=>xe,Nf:()=>Te,Kr:()=>Pe,li:()=>b,J0:()=>m,FH:()=>Se,v4:()=>ke,mh:()=>Ne});var r,o,i,s,a=n(622),u=0,c=[],l=a.fF,f=l.__b,_=l.__r,p=l.diffed,h=l.__c,d=l.unmount,v=l.__;function y(e,t){l.__h&&l.__h(o,e,u||t),u=0;var n=o.__H||(o.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function m(e){return u=1,function(e,t,n){var i=y(r++,2);if(i.t=e,!i.__c&&(i.__=[n?n(t):N(void 0,t),function(e){var t=i.__N?i.__N[0]:i.__[0],n=i.t(t,e);t!==n&&(i.__N=[n,i.__[1]],i.__c.setState({}))}],i.__c=o,!o.__f)){var s=function(e,t,n){if(!i.__c.__H)return!0;var r=i.__c.__H.__.filter((function(e){return!!e.__c}));if(r.every((function(e){return!e.__N})))return!a||a.call(this,e,t,n);var o=i.__c.props!==e;return r.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(o=!0)}})),a&&a.call(this,e,t,n)||o};o.__f=!0;var a=o.shouldComponentUpdate,u=o.componentWillUpdate;o.componentWillUpdate=function(e,t,n){if(this.__e){var r=a;a=void 0,s(e,t,n),a=r}u&&u.call(this,e,t,n)},o.shouldComponentUpdate=s}return i.__N||i.__}(N,e)}function g(e,t){var n=y(r++,3);!l.__s&&C(n.__H,t)&&(n.__=e,n.u=t,o.__H.__h.push(n))}function w(e,t){var n=y(r++,4);!l.__s&&C(n.__H,t)&&(n.__=e,n.u=t,o.__h.push(n))}function b(e){return u=5,k((function(){return{current:e}}),[])}function k(e,t){var n=y(r++,7);return C(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function S(e,t){return u=8,k((function(){return e}),t)}function x(e){var t=o.context[e.__c],n=y(r++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(o)),t.props.value):e.__}function E(){for(var e;e=c.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(P),e.__H.__h.forEach(F),e.__H.__h=[]}catch(t){e.__H.__h=[],l.__e(t,e.__v)}}l.__b=function(e){o=null,f&&f(e)},l.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),v&&v(e,t)},l.__r=function(e){_&&_(e),r=0;var t=(o=e.__c).__H;t&&(i===o?(t.__h=[],o.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0}))):(t.__h.forEach(P),t.__h.forEach(F),t.__h=[],r=0)),i=o},l.diffed=function(e){p&&p(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==c.push(t)&&s===l.requestAnimationFrame||((s=l.requestAnimationFrame)||O)(E)),t.__H.__.forEach((function(e){e.u&&(e.__H=e.u),e.u=void 0}))),i=o=null},l.__c=function(e,t){t.some((function(e){try{e.__h.forEach(P),e.__h=e.__h.filter((function(e){return!e.__||F(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],l.__e(n,e.__v)}})),h&&h(e,t)},l.unmount=function(e){d&&d(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{P(e)}catch(e){t=e}})),n.__H=void 0,t&&l.__e(t,n.__v))};var T="function"==typeof requestAnimationFrame;function O(e){var t,n=function(){clearTimeout(r),T&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);T&&(t=requestAnimationFrame(n))}function P(e){var t=o,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),o=t}function F(e){var t=o;e.__c=e.__(),o=t}function C(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function N(e,t){return"function"==typeof t?t(e):t}var j=Symbol.for("preact-signals");function M(){if(W>1)W--;else{for(var e,t=!1;void 0!==A;){var n=A;for(A=void 0,D++;void 0!==n;){var r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&V(n))try{n.c()}catch(n){t||(e=n,t=!0)}n=r}}if(D=0,W--,t)throw e}}function $(e){if(W>0)return e();W++;try{return e()}finally{M()}}var H=void 0;var U,A=void 0,W=0,D=0,L=0;function I(e){if(void 0!==H){var t=e.n;if(void 0===t||t.t!==H)return t={i:0,S:e,p:H.s,n:void 0,t:H,e:void 0,x:void 0,r:t},void 0!==H.s&&(H.s.n=t),H.s=t,e.n=t,32&H.f&&e.S(t),t;if(-1===t.i)return t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=H.s,t.n=void 0,H.s.n=t,H.s=t),t}}function R(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}function z(e){return new R(e)}function V(e){for(var t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function B(e){for(var t=e.s;void 0!==t;t=t.n){var n=t.S.n;if(void 0!==n&&(t.r=n),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function J(e){for(var t=e.s,n=void 0;void 0!==t;){var r=t.p;-1===t.i?(t.S.U(t),void 0!==r&&(r.n=t.n),void 0!==t.n&&(t.n.p=r)):n=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=r}e.s=n}function K(e){R.call(this,void 0),this.x=e,this.s=void 0,this.g=L-1,this.f=4}function q(e){return new K(e)}function Y(e){var t=e.u;if(e.u=void 0,"function"==typeof t){W++;var n=H;H=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,X(e),t}finally{H=n,M()}}}function X(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,Y(e)}function G(e){if(H!==this)throw new Error("Out-of-order effect");J(this),H=e,this.f&=-2,8&this.f&&X(this),M()}function Q(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function Z(e){var t=new Q(e);try{t.c()}catch(e){throw t.d(),e}return t.d.bind(t)}function ee(e,t){a.fF[e]=t.bind(null,a.fF[e]||function(){})}function te(e){U&&U(),U=e&&e.S()}function ne(e){var t=this,n=e.data,r=function(e){return k((function(){return z(e)}),[])}(n);r.value=n;var o=k((function(){for(var e=t.__v;e=e.__;)if(e.__c){e.__c.__$f|=4;break}return t.__$u.c=function(){var e,n=t.__$u.S(),r=o.value;n(),(0,a.zO)(r)||3!==(null==(e=t.base)?void 0:e.nodeType)?(t.__$f|=1,t.setState({})):t.base.data=r},q((function(){var e=r.value.value;return 0===e?0:!0===e?"":e||""}))}),[]);return o.value}function re(e,t,n,r){var o=t in e&&void 0===e.ownerSVGElement,i=z(n);return{o:function(e,t){i.value=e,r=t},d:Z((function(){var n=i.value.value;r[t]!==n&&(r[t]=n,o?e[t]=n:n?e.setAttribute(t,n):e.removeAttribute(t))}))}}R.prototype.brand=j,R.prototype.h=function(){return!0},R.prototype.S=function(e){this.t!==e&&void 0===e.e&&(e.x=this.t,void 0!==this.t&&(this.t.e=e),this.t=e)},R.prototype.U=function(e){if(void 0!==this.t){var t=e.e,n=e.x;void 0!==t&&(t.x=n,e.e=void 0),void 0!==n&&(n.e=t,e.x=void 0),e===this.t&&(this.t=n)}},R.prototype.subscribe=function(e){var t=this;return Z((function(){var n=t.value,r=H;H=void 0;try{e(n)}finally{H=r}}))},R.prototype.valueOf=function(){return this.value},R.prototype.toString=function(){return this.value+""},R.prototype.toJSON=function(){return this.value},R.prototype.peek=function(){var e=H;H=void 0;try{return this.value}finally{H=e}},Object.defineProperty(R.prototype,"value",{get:function(){var e=I(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(D>100)throw new Error("Cycle detected");this.v=e,this.i++,L++,W++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{M()}}}}),(K.prototype=new R).h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===L)return!0;if(this.g=L,this.f|=1,this.i>0&&!V(this))return this.f&=-2,!0;var e=H;try{B(this),H=this;var t=this.x();(16&this.f||this.v!==t||0===this.i)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return H=e,J(this),this.f&=-2,!0},K.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}R.prototype.S.call(this,e)},K.prototype.U=function(e){if(void 0!==this.t&&(R.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}},K.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;void 0!==e;e=e.x)e.t.N()}},Object.defineProperty(K.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=I(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),Q.prototype.c=function(){var e=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var t=this.x();"function"==typeof t&&(this.u=t)}finally{e()}},Q.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Y(this),B(this),W++;var e=H;return H=this,G.bind(this,e)},Q.prototype.N=function(){2&this.f||(this.f|=2,this.o=A,A=this)},Q.prototype.d=function(){this.f|=8,1&this.f||X(this)},ne.displayName="_st",Object.defineProperties(R.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:ne},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}}),ee("__b",(function(e,t){if("string"==typeof t.type){var n,r=t.props;for(var o in r)if("children"!==o){var i=r[o];i instanceof R&&(n||(t.__np=n={}),n[o]=i,r[o]=i.peek())}}e(t)})),ee("__r",(function(e,t){te();var n,r=t.__c;r&&(r.__$f&=-2,void 0===(n=r.__$u)&&(r.__$u=n=function(){var e;return Z((function(){e=this})),e.c=function(){r.__$f|=1,r.setState({})},e}())),te(n),e(t)})),ee("__e",(function(e,t,n,r){te(),e(t,n,r)})),ee("diffed",(function(e,t){var n;if(te(),"string"==typeof t.type&&(n=t.__e)){var r=t.__np,o=t.props;if(r){var i=n.U;if(i)for(var s in i){var a=i[s];void 0===a||s in r||(a.d(),i[s]=void 0)}else n.U=i={};for(var u in r){var c=i[u],l=r[u];void 0===c?(c=re(n,u,l,o),i[u]=c):c.o(l,o)}}}e(t)})),ee("unmount",(function(e,t){if("string"==typeof t.type){var n=t.__e;if(n){var r=n.U;if(r)for(var o in n.U=void 0,r){var i=r[o];i&&i.d()}}}else{var s=t.__c;if(s){var a=s.__$u;a&&(s.__$u=void 0,a.d())}}e(t)})),ee("__h",(function(e,t,n,r){(r<3||9===r)&&(t.__$f|=2),e(t,n,r)})),a.uA.prototype.shouldComponentUpdate=function(e,t){var n=this.__$u,r=n&&void 0!==n.s;for(var o in t)return!0;if(this.__f||"boolean"==typeof this.u&&!0===this.u){if(!(r||2&this.__$f||4&this.__$f))return!0;if(1&this.__$f)return!0}else{if(!(r||4&this.__$f))return!0;if(3&this.__$f)return!0}for(var i in e)if("__source"!==i&&e[i]!==this.props[i])return!0;for(var s in this.props)if(!(s in e))return!0;return!1};const oe=[],ie=()=>oe.slice(-1)[0],se=e=>{oe.push(e)},ae=()=>{oe.pop()},ue=[],ce=()=>ue.slice(-1)[0],le=e=>{ue.push(e)},fe=()=>{ue.pop()},_e=new WeakMap,pe=()=>{throw new Error("Please use `data-wp-bind` to modify the attributes of an element.")},he={get(e,t,n){const r=Reflect.get(e,t,n);return r&&"object"==typeof r?de(r):r},set:pe,deleteProperty:pe},de=e=>(_e.has(e)||_e.set(e,new Proxy(e,he)),_e.get(e)),ve=e=>ce().context[e||ie()],ye=()=>{const e=ce();const{ref:t,attributes:n}=e;return Object.freeze({ref:t.current,attributes:de(n)})},me=e=>ce().serverContext[e||ie()],ge=e=>new Promise((t=>{const n=()=>{clearTimeout(r),window.cancelAnimationFrame(o),setTimeout((()=>{e(),t()}))},r=setTimeout(n,100),o=window.requestAnimationFrame(n)})),we="function"==typeof window.scheduler?.yield?window.scheduler.yield.bind(window.scheduler):()=>new Promise((e=>{setTimeout(e,0)}));function be(e){g((()=>{let t=null,n=!1;return t=function(e,t){let n=()=>{};const r=Z((function(){return n=this.c.bind(this),this.x=e,this.c=t,e()}));return{flush:n,dispose:r}}(e,(async()=>{t&&!n&&(n=!0,await ge(t.flush),n=!1)})),t.dispose}),[])}function ke(e){const t=ce(),n=ie();let r;r="GeneratorFunction"===e?.constructor?.name?async(...r)=>{const o=e(...r);let i,s;for(;;){se(n),le(t);try{s=o.next(i)}finally{fe(),ae()}try{i=await s.value}catch(e){se(n),le(t),o.throw(e)}finally{fe(),ae()}if(s.done)break}return i}:(...r)=>{se(n),le(t);try{return e(...r)}finally{ae(),fe()}};if(e.sync){const e=r;return e.sync=!0,e}return r}function Se(e){be(ke(e))}function xe(e){g(ke(e),[])}function Ee(e,t){g(ke(e),t)}function Te(e,t){w(ke(e),t)}function Oe(e,t){return S(ke(e),t)}function Pe(e,t){return k(ke(e),t)}new Set;const Fe=e=>{0},Ce=e=>Boolean(e&&"object"==typeof e&&e.constructor===Object);function Ne(e){const t=e;return t.sync=!0,t}const je=new WeakMap,Me=new WeakMap,$e=new WeakMap,He=new Set([Object,Array]),Ue=(e,t,n)=>{if(!De(t))throw Error("This object cannot be proxified.");if(!je.has(t)){const r=new Proxy(t,n);je.set(t,r),Me.set(r,t),$e.set(r,e)}return je.get(t)},Ae=e=>je.get(e),We=e=>$e.get(e),De=e=>"object"==typeof e&&null!==e&&(!$e.has(e)&&He.has(e.constructor)),Le={};class Ie{constructor(e){this.owner=e,this.computedsByScope=new WeakMap}setValue(e){this.update({value:e})}setGetter(e){this.update({get:e})}getComputed(){const e=ce()||Le;if(this.valueSignal||this.getterSignal||this.update({}),!this.computedsByScope.has(e)){const t=()=>{const e=this.getterSignal?.value;return e?e.call(this.owner):this.valueSignal?.value};se(We(this.owner)),this.computedsByScope.set(e,q(ke(t))),ae()}return this.computedsByScope.get(e)}update({get:e,value:t}){this.valueSignal?t===this.valueSignal.peek()&&e===this.getterSignal.peek()||$((()=>{this.valueSignal.value=t,this.getterSignal.value=e})):(this.valueSignal=z(t),this.getterSignal=z(e))}}const Re=new Set(Object.getOwnPropertyNames(Symbol).map((e=>Symbol[e])).filter((e=>"symbol"==typeof e))),ze=new WeakMap,Ve=(e,t)=>ze.has(e)&&ze.get(e).has(t),Be=new WeakSet,Je=(e,t,n)=>{ze.has(e)||ze.set(e,new Map),t="number"==typeof t?`${t}`:t;const r=ze.get(e);if(!r.has(t)){const o=We(e),i=new Ie(e);if(r.set(t,i),n){const{get:t,value:r}=n;if(t)i.setGetter(t);else{const t=Be.has(e);i.setValue(De(r)?Xe(o,r,{readOnly:t}):r)}}}return r.get(t)},Ke=new WeakMap;let qe=!1;const Ye={get(e,t,n){if(qe||!e.hasOwnProperty(t)&&t in e||"symbol"==typeof t&&Re.has(t))return Reflect.get(e,t,n);const r=Object.getOwnPropertyDescriptor(e,t),o=Je(n,t,r).getComputed().value;if("function"==typeof o){const e=We(n);return(...t)=>{se(e);try{return o.call(n,...t)}finally{ae()}}}return o},set(e,t,n,r){if(Be.has(r))return!1;se(We(r));try{return Reflect.set(e,t,n,r)}finally{ae()}},defineProperty(e,t,n){if(Be.has(Ae(e)))return!1;const r=!(t in e),o=Reflect.defineProperty(e,t,n);if(o){const o=Ae(e),i=Je(o,t),{get:s,value:a}=n;if(s)i.setGetter(s);else{const e=We(o);i.setValue(De(a)?Xe(e,a):a)}if(r&&Ke.has(e)&&Ke.get(e).value++,Array.isArray(e)&&ze.get(o)?.has("length")){Je(o,"length").setValue(e.length)}}return o},deleteProperty(e,t){if(Be.has(Ae(e)))return!1;const n=Reflect.deleteProperty(e,t);if(n){Je(Ae(e),t).setValue(void 0),Ke.has(e)&&Ke.get(e).value++}return n},ownKeys:e=>(Ke.has(e)||Ke.set(e,z(0)),Ke._=Ke.get(e).value,Reflect.ownKeys(e))},Xe=(e,t,n)=>{const r=Ue(e,t,Ye);return n?.readOnly&&Be.add(r),r},Ge=(e,t,n=!0)=>{if(!Ce(e)||!Ce(t))return;let r=!1;for(const o in t){const i=!(o in e);r=r||i;const s=Object.getOwnPropertyDescriptor(t,o),a=Ae(e),u=!!a&&Ve(a,o)&&Je(a,o);if("function"==typeof s.get||"function"==typeof s.set)(n||i)&&(Object.defineProperty(e,o,{...s,configurable:!0,enumerable:!0}),s.get&&u&&u.setGetter(s.get));else if(Ce(t[o])){const r=Object.getOwnPropertyDescriptor(e,o)?.value;if(i||n&&!Ce(r)){if(e[o]={},u){const t=We(a);u.setValue(Xe(t,e[o]))}Ge(e[o],t[o],n)}else Ce(r)&&Ge(e[o],t[o],n)}else if((n||i)&&(Object.defineProperty(e,o,s),u)){const{value:e}=s,t=We(a);u.setValue(De(e)?Xe(t,e):e)}}r&&Ke.has(e)&&Ke.get(e).value++},Qe=(e,t,n=!0)=>$((()=>{return Ge((r=e,Me.get(r)||e),t,n);var r})),Ze=new WeakSet,et={get:(e,t,n)=>{const r=Reflect.get(e,t),o=We(n);if(void 0===r&&Ze.has(n)){const n={};return Reflect.set(e,t,n),tt(o,n,!1)}if("function"==typeof r){se(o);const e=ke(r);return ae(),e}return Ce(r)&&De(r)?tt(o,r,!1):r}},tt=(e,t,n=!0)=>{const r=Ue(e,t,et);return r&&n&&Ze.add(r),r},nt=new WeakMap,rt=new WeakMap,ot=new WeakSet,it=Reflect.getOwnPropertyDescriptor,st={get:(e,t)=>{const n=rt.get(e),r=e[t];return t in e?r:n[t]},set:(e,t,n)=>{const r=rt.get(e);return(t in e||!(t in r)?e:r)[t]=n,!0},ownKeys:e=>[...new Set([...Object.keys(rt.get(e)),...Object.keys(e)])],getOwnPropertyDescriptor:(e,t)=>it(e,t)||it(rt.get(e),t),has:(e,t)=>Reflect.has(e,t)||Reflect.has(rt.get(e),t)},at=(e,t={})=>{if(ot.has(e))throw Error("This object cannot be proxified.");if(rt.set(e,t),!nt.has(e)){const t=new Proxy(e,st);nt.set(e,t),ot.add(t)}return nt.get(e)},ut=new Map,ct=new Map,lt=new Map,ft=new Map,_t=new Map,pt=e=>ft.get(e||ie())||{},ht=e=>{const t=e||ie();return _t.has(t)||_t.set(t,Xe(t,{},{readOnly:!0})),_t.get(t)},dt="I acknowledge that using a private store means my plugin will inevitably break on the next store release.";function vt(e,{state:t={},...n}={},{lock:r=!1}={}){if(ut.has(e)){if(r===dt||lt.has(e)){const t=lt.get(e);if(!(r===dt||!0!==r&&r===t))throw t?Error("Cannot unlock a private store with an invalid lock code"):Error("Cannot lock a public store")}else lt.set(e,r);const o=ct.get(e);Qe(o,n),Qe(o.state,t)}else{r!==dt&<.set(e,r);const o={state:Xe(e,Ce(t)?t:{}),...n},i=tt(e,o);ct.set(e,o),ut.set(e,i)}return ut.get(e)}const yt=(e=document)=>{var t;const n=null!==(t=e.getElementById("wp-script-module-data-@wordpress/interactivity"))&&void 0!==t?t:e.getElementById("wp-interactivity-data");if(n?.textContent)try{return JSON.parse(n.textContent)}catch{}return{}},mt=e=>{Ce(e?.state)&&Object.entries(e.state).forEach((([e,t])=>{const n=vt(e,{},{lock:dt});Qe(n.state,t,!1),Qe(ht(e),t)})),Ce(e?.config)&&Object.entries(e.config).forEach((([e,t])=>{ft.set(e,t)}))},gt=yt();function wt(e){return null!==e.suffix}function bt(e){return null===e.suffix}mt(gt);const kt=(0,a.q6)({client:{},server:{}}),St={},xt={},Et=(e,t,{priority:n=10}={})=>{St[e]=t,xt[e]=n},Tt=({scope:e})=>(t,...n)=>{let{value:r,namespace:o}=t;if("string"!=typeof r)throw new Error("The `value` prop should be a string path");const i="!"===r[0]&&!!(r=r.slice(1));le(e);const s=((e,t)=>{if(!t)return void Fe();let n=ut.get(t);void 0===n&&(n=vt(t,{},{lock:dt}));const r={...n,context:ce().context[t]};try{return e.split(".").reduce(((e,t)=>e[t]),r)}catch(e){}})(r,o);if("function"==typeof s){if(i){Fe();const e=!s(...n);return fe(),e}return fe(),(...t)=>{le(e);const n=s(...t);return fe(),n}}const a=s;return fe(),i?!a:a},Ot=({directives:e,priorityLevels:[t,...n],element:r,originalProps:o,previousScope:i})=>{const s=b({}).current;s.evaluate=S(Tt({scope:s}),[]);const{client:u,server:c}=x(kt);s.context=u,s.serverContext=c,s.ref=i?.ref||b(null),r=(0,a.Ob)(r,{ref:s.ref}),s.attributes=r.props;const l=n.length>0?(0,a.h)(Ot,{directives:e,priorityLevels:n,element:r,originalProps:o,previousScope:s}):r,f={...o,children:l},_={directives:e,props:f,element:r,context:kt,evaluate:s.evaluate};le(s);for(const e of t){const t=St[e]?.(_);void 0!==t&&(f.children=t)}return fe(),f.children},Pt=a.fF.vnode;function Ft(e){return Ce(e)?Object.fromEntries(Object.entries(e).map((([e,t])=>[e,Ft(t)]))):Array.isArray(e)?e.map((e=>Ft(e))):e}function Ct(e){return new Proxy(e,{get(e,t,n){const r=e[t];switch(t){case"currentTarget":case"preventDefault":case"stopImmediatePropagation":case"stopPropagation":Fe()}return r instanceof Function?function(...t){return r.apply(this===n?e:this,t)}:r}})}a.fF.vnode=e=>{if(e.props.__directives){const t=e.props,n=t.__directives;n.key&&(e.key=n.key.find(bt).value),delete t.__directives;const r=(e=>{const t=Object.keys(e).reduce(((e,t)=>{if(St[t]){const n=xt[t];(e[n]=e[n]||[]).push(t)}return e}),{});return Object.entries(t).sort((([e],[t])=>parseInt(e)-parseInt(t))).map((([,e])=>e))})(n);r.length>0&&(e.props={directives:n,priorityLevels:r,originalProps:t,type:e.type,element:(0,a.h)(e.type,t),top:!0},e.type=Ot)}Pt&&Pt(e)};const Nt=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,jt=/\/\*[^]*?\*\/| +/g,Mt=/\n+/g,$t=e=>({directives:t,evaluate:n})=>{t[`on-${e}`].filter(wt).forEach((t=>{const r=t.suffix.split("--",1)[0];xe((()=>{const o=e=>{const r=n(t);"function"==typeof r&&(r?.sync||(e=Ct(e)),r(e))},i="window"===e?window:document;return i.addEventListener(r,o),()=>i.removeEventListener(r,o)}))}))},Ht=e=>({directives:t,evaluate:n})=>{t[`on-async-${e}`].filter(wt).forEach((t=>{const r=t.suffix.split("--",1)[0];xe((()=>{const o=async e=>{await we();const r=n(t);"function"==typeof r&&r(e)},i="window"===e?window:document;return i.addEventListener(r,o,{passive:!0}),()=>i.removeEventListener(r,o)}))}))},Ut="wp",At=`data-${Ut}-ignore`,Wt=`data-${Ut}-interactive`,Dt=`data-${Ut}-`,Lt=[],It=new RegExp(`^data-${Ut}-([a-z0-9]+(?:-[a-z0-9]+)*)(?:--([a-z0-9_-]+))?$`,"i"),Rt=/^([\w_\/-]+)::(.+)$/,zt=new WeakSet;function Vt(e){const t=document.createTreeWalker(e,205);return function e(n){const{nodeType:r}=n;if(3===r)return[n.data];if(4===r){var o;const e=t.nextSibling();return n.replaceWith(new window.Text(null!==(o=n.nodeValue)&&void 0!==o?o:"")),[n.nodeValue,e]}if(8===r||7===r){const e=t.nextSibling();return n.remove(),[null,e]}const i=n,{attributes:s}=i,u=i.localName,c={},l=[],f=[];let _=!1,p=!1;for(let e=0;e{const o=It.exec(t);if(null===o)return Fe(),e;const i=o[1]||"",s=o[2]||null;var a;return e[i]=e[i]||[],e[i].push({namespace:null!=n?n:null!==(a=Lt[Lt.length-1])&&void 0!==a?a:null,value:r,suffix:s}),e}),{})),"template"===u)c.content=[...i.content.childNodes].map((e=>Vt(e)));else{let n=t.firstChild();if(n){for(;n;){const[r,o]=e(n);r&&l.push(r),n=o||t.nextSibling()}t.parentNode()}}return p&&Lt.pop(),[(0,a.h)(u,c,l)]}(t.currentNode)}const Bt=new WeakMap,Jt=e=>{if(!e.parentElement)throw Error("The passed region should be an element with a parent.");return Bt.has(e)||Bt.set(e,((e,t)=>{const n=(t=[].concat(t))[t.length-1].nextSibling;function r(t,r){e.insertBefore(t,r||n)}return e.__k={nodeType:1,parentNode:e,firstChild:t[0],childNodes:t,insertBefore:r,appendChild:r,removeChild(t){e.removeChild(t)}}})(e.parentElement,e)),Bt.get(e)},Kt=new WeakMap,qt=e=>{if("I acknowledge that using private APIs means my theme or plugin will inevitably break in the next version of WordPress."===e)return{directivePrefix:Ut,getRegionRootFragment:Jt,initialVdom:Kt,toVdom:Vt,directive:Et,getNamespace:ie,h:a.h,cloneElement:a.Ob,render:a.XX,proxifyState:Xe,parseServerData:yt,populateServerData:mt,batch:$};throw new Error("Forbidden access.")};Et("context",(({directives:{context:e},props:{children:t},context:n})=>{const{Provider:r}=n,o=e.find(bt),{client:i,server:s}=x(n),u=o.namespace,c=b(Xe(u,{})),l=b(Xe(u,{},{readOnly:!0})),f=k((()=>{const e={client:{...i},server:{...s}};if(o){const{namespace:t,value:n}=o;Ce(n)||Fe(),Qe(c.current,Ft(n),!1),Qe(l.current,Ft(n)),e.client[t]=at(c.current,i[t]),e.server[t]=at(l.current,s[t])}return e}),[o,i,s]);return(0,a.h)(r,{value:f},t)}),{priority:5}),Et("watch",(({directives:{watch:e},evaluate:t})=>{e.forEach((e=>{Se((()=>{let n=t(e);return"function"==typeof n&&(n=n()),n}))}))})),Et("init",(({directives:{init:e},evaluate:t})=>{e.forEach((e=>{xe((()=>{let n=t(e);return"function"==typeof n&&(n=n()),n}))}))})),Et("on",(({directives:{on:e},element:t,evaluate:n})=>{const r=new Map;e.filter(wt).forEach((e=>{const t=e.suffix.split("--")[0];r.has(t)||r.set(t,new Set),r.get(t).add(e)})),r.forEach(((e,r)=>{const o=t.props[`on${r}`];t.props[`on${r}`]=t=>{e.forEach((e=>{o&&o(t);const r=n(e);"function"==typeof r&&(r?.sync||(t=Ct(t)),r(t))}))}}))})),Et("on-async",(({directives:{"on-async":e},element:t,evaluate:n})=>{const r=new Map;e.filter(wt).forEach((e=>{const t=e.suffix.split("--")[0];r.has(t)||r.set(t,new Set),r.get(t).add(e)})),r.forEach(((e,r)=>{const o=t.props[`on${r}`];t.props[`on${r}`]=t=>{o&&o(t),e.forEach((async e=>{await we();const r=n(e);"function"==typeof r&&r(t)}))}}))})),Et("on-window",$t("window")),Et("on-document",$t("document")),Et("on-async-window",Ht("window")),Et("on-async-document",Ht("document")),Et("class",(({directives:{class:e},element:t,evaluate:n})=>{e.filter(wt).forEach((e=>{const r=e.suffix;let o=n(e);"function"==typeof o&&(o=o());const i=t.props.class||"",s=new RegExp(`(^|\\s)${r}(\\s|$)`,"g");o?s.test(i)||(t.props.class=i?`${i} ${r}`:r):t.props.class=i.replace(s," ").trim(),xe((()=>{o?t.ref.current.classList.add(r):t.ref.current.classList.remove(r)}))}))})),Et("style",(({directives:{style:e},element:t,evaluate:n})=>{e.filter(wt).forEach((e=>{const r=e.suffix;let o=n(e);"function"==typeof o&&(o=o()),t.props.style=t.props.style||{},"string"==typeof t.props.style&&(t.props.style=(e=>{const t=[{}];let n,r;for(;n=Nt.exec(e.replace(jt,""));)n[4]?t.shift():n[3]?(r=n[3].replace(Mt," ").trim(),t.unshift(t[0][r]=t[0][r]||{})):t[0][n[1]]=n[2].replace(Mt," ").trim();return t[0]})(t.props.style)),o?t.props.style[r]=o:delete t.props.style[r],xe((()=>{o?t.ref.current.style[r]=o:t.ref.current.style.removeProperty(r)}))}))})),Et("bind",(({directives:{bind:e},element:t,evaluate:n})=>{e.filter(wt).forEach((e=>{const r=e.suffix;let o=n(e);"function"==typeof o&&(o=o()),t.props[r]=o,xe((()=>{const e=t.ref.current;if("style"!==r){if("width"!==r&&"height"!==r&&"href"!==r&&"list"!==r&&"form"!==r&&"tabIndex"!==r&&"download"!==r&&"rowSpan"!==r&&"colSpan"!==r&&"role"!==r&&r in e)try{return void(e[r]=null==o?"":o)}catch(e){}null==o||!1===o&&"-"!==r[4]?e.removeAttribute(r):e.setAttribute(r,o)}else"string"==typeof o&&(e.style.cssText=o)}))}))})),Et("ignore",(({element:{type:e,props:{innerHTML:t,...n}}})=>{const r=k((()=>t),[]);return(0,a.h)(e,{dangerouslySetInnerHTML:{__html:r},...n})})),Et("text",(({directives:{text:e},element:t,evaluate:n})=>{const r=e.find(bt);if(r)try{let e=n(r);"function"==typeof e&&(e=e()),t.props.children="object"==typeof e?null:e.toString()}catch(e){t.props.children=null}else t.props.children=null})),Et("run",(({directives:{run:e},evaluate:t})=>{e.forEach((e=>{let n=t(e);return"function"==typeof n&&(n=n()),n}))})),Et("each",(({directives:{each:e,"each-key":t},context:n,element:r,evaluate:o})=>{if("template"!==r.type)return;const{Provider:i}=n,s=x(n),[u]=e,{namespace:c}=u;let l=o(u);if("function"==typeof l&&(l=l()),"function"!=typeof l?.[Symbol.iterator])return;const f=wt(u)?u.suffix.replace(/^-+|-+$/g,"").toLowerCase().replace(/-([a-z])/g,(function(e,t){return t.toUpperCase()})):"item",_=[];for(const e of l){const n=at(Xe(c,{}),s.client[c]),o={client:{...s.client,[c]:n},server:{...s.server}};o.client[c][f]=e;const u={...ce(),context:o.client,serverContext:o.server},l=t?Tt({scope:u})(t[0]):e;_.push((0,a.h)(i,{value:o,key:l},r.props.content))}return _}),{priority:20}),Et("each-child",(()=>null),{priority:1}),(async()=>{const e=document.querySelectorAll(`[data-${Ut}-interactive]`);await new Promise((e=>{setTimeout(e,0)}));for(const t of e)if(!zt.has(t)){await we();const e=Jt(t),n=Vt(t);Kt.set(t,n),await we(),(0,a.Qv)(n,e)}})()},622:(e,t,n)=>{n.d(t,{FK:()=>x,Ob:()=>J,Qv:()=>B,XX:()=>V,fF:()=>o,h:()=>k,q6:()=>K,uA:()=>E,zO:()=>s});var r,o,i,s,a,u,c,l,f,_,p,h,d,v={},y=[],m=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,g=Array.isArray;function w(e,t){for(var n in t)e[n]=t[n];return e}function b(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function k(e,t,n){var o,i,s,a={};for(s in t)"key"==s?o=t[s]:"ref"==s?i=t[s]:a[s]=t[s];if(arguments.length>2&&(a.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(s in e.defaultProps)void 0===a[s]&&(a[s]=e.defaultProps[s]);return S(e,a,o,i,null)}function S(e,t,n,r,s){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==s?++i:s,__i:-1,__u:0};return null==s&&null!=o.vnode&&o.vnode(a),a}function x(e){return e.children}function E(e,t){this.props=e,this.context=t}function T(e,t){if(null==t)return e.__?T(e.__,e.__i+1):null;for(var n;tc&&a.sort(l),e=a.shift(),c=a.length,e.__d&&(n=void 0,i=(r=(t=e).__v).__e,s=[],u=[],t.__P&&((n=w({},r)).__v=r.__v+1,o.vnode&&o.vnode(n),A(t.__P,n,r,t.__n,t.__P.namespaceURI,32&r.__u?[i]:null,s,null==i?T(r):i,!!(32&r.__u),u),n.__v=r.__v,n.__.__k[n.__i]=n,W(s,n,u),n.__e!=i&&O(n)));F.__r=0}function C(e,t,n,r,o,i,s,a,u,c,l){var f,_,p,h,d,m,g=r&&r.__k||y,w=t.length;for(u=N(n,t,g,u,w),f=0;f0?S(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=e,s.__b=e.__b+1,a=null,-1!==(c=s.__i=M(s,n,u,f))&&(f--,(a=n[c])&&(a.__u|=2)),null==a||null===a.__v?(-1==c&&(o>l?_--:ou?_--:_++,s.__u|=4))):e.__k[i]=null;if(f)for(i=0;i(null==u||2&u.__u?0:1))for(o=n-1,i=n+1;o>=0||i=0){if((u=t[o])&&!(2&u.__u)&&s==u.key&&a===u.type)return o;o--}if(i2&&(u.children=arguments.length>3?r.call(arguments,2):n),S(e.type,u,o||e.key,i||e.ref,null)}function K(e){function t(e){var n,r;return this.getChildContext||(n=new Set,(r={})[t.__c]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.forEach((function(e){e.__e=!0,P(e)}))},this.sub=function(e){n.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.delete(e),t&&t.call(e)}}),e.children}return t.__c="__cC"+d++,t.__=e,t.Provider=t.__l=(t.Consumer=function(e,t){return e.children(t)}).contextType=t,t}r=y.slice,o={__e:function(e,t,n,r){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),s=o.__d),s)return o.__E=o}catch(t){e=t}throw e}},i=0,s=function(e){return null!=e&&null==e.constructor},E.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=w({},this.state),"function"==typeof e&&(e=e(w({},n),this.props)),e&&w(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),P(this))},E.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),P(this))},E.prototype.render=x,a=[],c="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,l=function(e,t){return e.__v.__b-t.__v.__b},F.__r=0,f=/(PointerCapture)$|Capture$/i,_=0,p=U(!1),h=U(!0),d=0}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};n.d(r,{zj:()=>k.zj,SD:()=>k.SD,V6:()=>k.V6,$K:()=>k.$K,vT:()=>k.vT,jb:()=>k.jb,yT:()=>k.yT,M_:()=>k.M_,hb:()=>k.hb,vJ:()=>k.vJ,ip:()=>k.ip,Nf:()=>k.Nf,Kr:()=>k.Kr,li:()=>k.li,J0:()=>k.J0,FH:()=>k.FH,v4:()=>k.v4,mh:()=>k.mh});var o,i=n(622);null!=(o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0)&&o.__PREACT_DEVTOOLS__&&o.__PREACT_DEVTOOLS__.attachPreact("10.26.4",i.fF,{Fragment:i.FK,Component:i.uA});var s={};function a(e){return e.type===i.FK?"Fragment":"function"==typeof e.type?e.type.displayName||e.type.name:"string"==typeof e.type?e.type:"#text"}var u=[],c=[];function l(){return u.length>0?u[u.length-1]:null}var f=!0;function _(e){return"function"==typeof e.type&&e.type!=i.FK}function p(e){for(var t=[e],n=e;null!=n.__o;)t.push(n.__o),n=n.__o;return t.reduce((function(e,t){e+=" in "+a(t);var n=t.__source;return n?e+=" (at "+n.fileName+":"+n.lineNumber+")":f&&console.warn("Add @babel/plugin-transform-react-jsx-source to get a more detailed component stack. Note that you should not add it to production builds of your App for bundle size reasons."),f=!1,e+"\n"}),"")}var h="function"==typeof WeakMap;function d(e){var t=[];return e.__k?(e.__k.forEach((function(e){e&&"function"==typeof e.type?t.push.apply(t,d(e)):e&&"string"==typeof e.type&&t.push(e.type)})),t):t}function v(e){return e?"function"==typeof e.type?null==e.__?null!=e.__e&&null!=e.__e.parentNode?e.__e.parentNode.localName:"":v(e.__):e.type:""}var y=i.uA.prototype.setState;function m(e){return"table"===e||"tfoot"===e||"tbody"===e||"thead"===e||"td"===e||"tr"===e||"th"===e}i.uA.prototype.setState=function(e,t){return null==this.__v&&null==this.state&&console.warn('Calling "this.setState" inside the constructor of a component is a no-op and might be a bug in your application. Instead, set "this.state = {}" directly.\n\n'+p(l())),y.call(this,e,t)};var g=/^(address|article|aside|blockquote|details|div|dl|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hgroup|hr|main|menu|nav|ol|p|pre|search|section|table|ul)$/,w=i.uA.prototype.forceUpdate;function b(e){var t=e.props,n=a(e),r="";for(var o in t)if(t.hasOwnProperty(o)&&"children"!==o){var i=t[o];"function"==typeof i&&(i="function "+(i.displayName||i.name)+"() {}"),i=Object(i)!==i||i.toString?i+"":Object.prototype.toString.call(i),r+=" "+o+"="+JSON.stringify(i)}var s=t.children;return"<"+n+r+(s&&s.length?">.."+n+">":" />")}i.uA.prototype.forceUpdate=function(e){return null==this.__v?console.warn('Calling "this.forceUpdate" inside the constructor of a component is a no-op and might be a bug in your application.\n\n'+p(l())):null==this.__P&&console.warn('Can\'t call "this.forceUpdate" on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method.\n\n'+p(this.__v)),w.call(this,e)},i.fF.__m=function(e,t){var n=e.type,r=t.map((function(e){return e&&e.localName})).filter(Boolean);console.error('Expected a DOM node of type "'+n+'" but found "'+r.join(", ")+"\" as available DOM-node(s), this is caused by the SSR'd HTML containing different DOM-nodes compared to the hydrated one.\n\n"+p(e))},function(){!function(){var e=i.fF.__b,t=i.fF.diffed,n=i.fF.__,r=i.fF.vnode,o=i.fF.__r;i.fF.diffed=function(e){_(e)&&c.pop(),u.pop(),t&&t(e)},i.fF.__b=function(t){_(t)&&u.push(t),e&&e(t)},i.fF.__=function(e,t){c=[],n&&n(e,t)},i.fF.vnode=function(e){e.__o=c.length>0?c[c.length-1]:null,r&&r(e)},i.fF.__r=function(e){_(e)&&c.push(e),o&&o(e)}}();var e=!1,t=i.fF.__b,n=i.fF.diffed,r=i.fF.vnode,o=i.fF.__r,l=i.fF.__e,f=i.fF.__,y=i.fF.__h,w=h?{useEffect:new WeakMap,useLayoutEffect:new WeakMap,lazyPropTypes:new WeakMap}:null,k=[];i.fF.__e=function(e,t,n,r){if(t&&t.__c&&"function"==typeof e.then){var o=e;e=new Error("Missing Suspense. The throwing component was: "+a(t));for(var i=t;i;i=i.__)if(i.__c&&i.__c.__c){e=o;break}if(e instanceof Error)throw e}try{(r=r||{}).componentStack=p(t),l(e,t,n,r),"function"!=typeof e.then&&setTimeout((function(){throw e}))}catch(e){throw e}},i.fF.__=function(e,t){if(!t)throw new Error("Undefined parent passed to render(), this is the second argument.\nCheck if the element is available in the DOM/has the correct id.");var n;switch(t.nodeType){case 1:case 11:case 9:n=!0;break;default:n=!1}if(!n){var r=a(e);throw new Error("Expected a valid HTML node as a second argument to render.\tReceived "+t+" instead: render(<"+r+" />, "+t+");")}f&&f(e,t)},i.fF.__b=function(n){var r=n.type;if(e=!0,void 0===r)throw new Error("Undefined component passed to createElement()\n\nYou likely forgot to export your component or might have mixed up default and named imports"+b(n)+"\n\n"+p(n));if(null!=r&&"object"==typeof r){if(void 0!==r.__k&&void 0!==r.__e)throw new Error("Invalid type passed to createElement(): "+r+"\n\nDid you accidentally pass a JSX literal as JSX twice?\n\n let My"+a(n)+" = "+b(r)+";\n let vnode = ;\n\nThis usually happens when you export a JSX literal and not the component.\n\n"+p(n));throw new Error("Invalid type passed to createElement(): "+(Array.isArray(r)?"array":r))}if(void 0!==n.ref&&"function"!=typeof n.ref&&"object"!=typeof n.ref&&!("$$typeof"in n))throw new Error('Component\'s "ref" property should be a function, or an object created by createRef(), but got ['+typeof n.ref+"] instead\n"+b(n)+"\n\n"+p(n));if("string"==typeof n.type)for(var o in n.props)if("o"===o[0]&&"n"===o[1]&&"function"!=typeof n.props[o]&&null!=n.props[o])throw new Error("Component's \""+o+'" property should be a function, but got ['+typeof n.props[o]+"] instead\n"+b(n)+"\n\n"+p(n));if("function"==typeof n.type&&n.type.propTypes){if("Lazy"===n.type.displayName&&w&&!w.lazyPropTypes.has(n.type)){var i="PropTypes are not supported on lazy(). Use propTypes on the wrapped component itself. ";try{var u=n.type();w.lazyPropTypes.set(n.type,!0),console.warn(i+"Component wrapped in lazy() is "+a(u))}catch(e){console.warn(i+"We will log the wrapped component's name once it is loaded.")}}var c=n.props;n.type.__f&&delete(c=function(e,t){for(var n in t)e[n]=t[n];return e}({},c)).ref,function(e,t,n,r,o){Object.keys(e).forEach((function(n){var i;try{i=e[n](t,n,r,"prop",null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){i=e}i&&!(i.message in s)&&(s[i.message]=!0,console.error("Failed prop type: "+i.message+(o&&"\n"+o()||"")))}))}(n.type.propTypes,c,0,a(n),(function(){return p(n)}))}t&&t(n)};var S,x=0;i.fF.__r=function(t){o&&o(t),e=!0;var n=t.__c;if(n===S?x++:x=1,x>=25)throw new Error("Too many re-renders. This is limited to prevent an infinite loop which may lock up your browser. The component causing this is: "+a(t));S=n},i.fF.__h=function(t,n,r){if(!t||!e)throw new Error("Hook can only be invoked from render methods.");y&&y(t,n,r)};var E=function(e,t){return{get:function(){var n="get"+e+t;k&&k.indexOf(n)<0&&(k.push(n),console.warn("getting vnode."+e+" is deprecated, "+t))},set:function(){var n="set"+e+t;k&&k.indexOf(n)<0&&(k.push(n),console.warn("setting vnode."+e+" is not allowed, "+t))}}},T={nodeName:E("nodeName","use vnode.type"),attributes:E("attributes","use vnode.props"),children:E("children","use vnode.props.children")},O=Object.create({},T);i.fF.vnode=function(e){var t=e.props;if(null!==e.type&&null!=t&&("__source"in t||"__self"in t)){var n=e.props={};for(var o in t){var i=t[o];"__source"===o?e.__source=i:"__self"===o?e.__self=i:n[o]=i}}e.__proto__=O,r&&r(e)},i.fF.diffed=function(t){var r,o=t.type,i=t.__;if(t.__k&&t.__k.forEach((function(e){if("object"==typeof e&&e&&void 0===e.type){var n=Object.keys(e).join(",");throw new Error("Objects are not valid as a child. Encountered an object with the keys {"+n+"}.\n\n"+p(t))}})),t.__c===S&&(x=0),"string"==typeof o&&(m(o)||"p"===o||"a"===o||"button"===o)){var s=v(i);if(""!==s&&m(o))"table"===o&&"td"!==s&&m(s)?console.error("Improper nesting of table. Your should not have a table-node parent."+b(t)+"\n\n"+p(t)):"thead"!==o&&"tfoot"!==o&&"tbody"!==o||"table"===s?"tr"===o&&"thead"!==s&&"tfoot"!==s&&"tbody"!==s?console.error("Improper nesting of table. Your should have a parent."+b(t)+"\n\n"+p(t)):"td"===o&&"tr"!==s?console.error("Improper nesting of table. Your | should have a | parent."+b(t)+"\n\n"+p(t)):"th"===o&&"tr"!==s&&console.error("Improper nesting of table. Your | should have a |
."+b(t)+"\n\n"+p(t)):console.error("Improper nesting of table. Your should have a parent."+b(t)+"\n\n"+p(t));else if("p"===o){var u=d(t).filter((function(e){return g.test(e)}));u.length&&console.error("Improper nesting of paragraph. Your should not have "+u.join(", ")+" as child-elements."+b(t)+"\n\n"+p(t))}else"a"!==o&&"button"!==o||-1!==d(t).indexOf(o)&&console.error("Improper nesting of interactive content. Your <"+o+"> should not have other "+("a"===o?"anchor":"button")+" tags as child-elements."+b(t)+"\n\n"+p(t))}if(e=!1,n&&n(t),null!=t.__k)for(var c=[],l=0;l{n.d(t,{zj:()=>yt,SD:()=>ve,V6:()=>ye,$K:()=>me,vT:()=>mt,jb:()=>sn,yT:()=>we,M_:()=>wt,hb:()=>je,vJ:()=>Oe,ip:()=>xe,Nf:()=>Ee,Kr:()=>Pe,li:()=>b,J0:()=>m,FH:()=>Se,v4:()=>ke,mh:()=>$e});var r,o,i,s,a=n(622),c=0,u=[],l=a.fF,f=l.__b,_=l.__r,p=l.diffed,h=l.__c,d=l.unmount,v=l.__;function y(e,t){l.__h&&l.__h(o,e,c||t),c=0;var n=o.__H||(o.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function m(e){return c=1,function(e,t,n){var i=y(r++,2);if(i.t=e,!i.__c&&(i.__=[n?n(t):C(void 0,t),function(e){var t=i.__N?i.__N[0]:i.__[0],n=i.t(t,e);t!==n&&(i.__N=[n,i.__[1]],i.__c.setState({}))}],i.__c=o,!o.__f)){var s=function(e,t,n){if(!i.__c.__H)return!0;var r=i.__c.__H.__.filter((function(e){return!!e.__c}));if(r.every((function(e){return!e.__N})))return!a||a.call(this,e,t,n);var o=i.__c.props!==e;return r.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(o=!0)}})),a&&a.call(this,e,t,n)||o};o.__f=!0;var a=o.shouldComponentUpdate,c=o.componentWillUpdate;o.componentWillUpdate=function(e,t,n){if(this.__e){var r=a;a=void 0,s(e,t,n),a=r}c&&c.call(this,e,t,n)},o.shouldComponentUpdate=s}return i.__N||i.__}(C,e)}function g(e,t){var n=y(r++,3);!l.__s&&F(n.__H,t)&&(n.__=e,n.u=t,o.__H.__h.push(n))}function w(e,t){var n=y(r++,4);!l.__s&&F(n.__H,t)&&(n.__=e,n.u=t,o.__h.push(n))}function b(e){return c=5,k((function(){return{current:e}}),[])}function k(e,t){var n=y(r++,7);return F(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function S(e,t){return c=8,k((function(){return e}),t)}function x(e){var t=o.context[e.__c],n=y(r++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(o)),t.props.value):e.__}function O(){for(var e;e=u.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(P),e.__H.__h.forEach(T),e.__H.__h=[]}catch(t){e.__H.__h=[],l.__e(t,e.__v)}}l.__b=function(e){o=null,f&&f(e)},l.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),v&&v(e,t)},l.__r=function(e){_&&_(e),r=0;var t=(o=e.__c).__H;t&&(i===o?(t.__h=[],o.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0}))):(t.__h.forEach(P),t.__h.forEach(T),t.__h=[],r=0)),i=o},l.diffed=function(e){p&&p(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==u.push(t)&&s===l.requestAnimationFrame||((s=l.requestAnimationFrame)||j)(O)),t.__H.__.forEach((function(e){e.u&&(e.__H=e.u),e.u=void 0}))),i=o=null},l.__c=function(e,t){t.some((function(e){try{e.__h.forEach(P),e.__h=e.__h.filter((function(e){return!e.__||T(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],l.__e(n,e.__v)}})),h&&h(e,t)},l.unmount=function(e){d&&d(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{P(e)}catch(e){t=e}})),n.__H=void 0,t&&l.__e(t,n.__v))};var E="function"==typeof requestAnimationFrame;function j(e){var t,n=function(){clearTimeout(r),E&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);E&&(t=requestAnimationFrame(n))}function P(e){var t=o,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),o=t}function T(e){var t=o;e.__c=e.__(),o=t}function F(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function C(e,t){return"function"==typeof t?t(e):t}var N=Symbol.for("preact-signals");function M(){if(A>1)A--;else{for(var e,t=!1;void 0!==U;){var n=U;for(U=void 0,L++;void 0!==n;){var r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&V(n))try{n.c()}catch(n){t||(e=n,t=!0)}n=r}}if(L=0,A--,t)throw e}}function $(e){if(A>0)return e();A++;try{return e()}finally{M()}}var H=void 0;var W,U=void 0,A=0,L=0,D=0;function I(e){if(void 0!==H){var t=e.n;if(void 0===t||t.t!==H)return t={i:0,S:e,p:H.s,n:void 0,t:H,e:void 0,x:void 0,r:t},void 0!==H.s&&(H.s.n=t),H.s=t,e.n=t,32&H.f&&e.S(t),t;if(-1===t.i)return t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=H.s,t.n=void 0,H.s.n=t,H.s=t),t}}function R(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}function z(e){return new R(e)}function V(e){for(var t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function J(e){for(var t=e.s;void 0!==t;t=t.n){var n=t.S.n;if(void 0!==n&&(t.r=n),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function K(e){for(var t=e.s,n=void 0;void 0!==t;){var r=t.p;-1===t.i?(t.S.U(t),void 0!==r&&(r.n=t.n),void 0!==t.n&&(t.n.p=r)):n=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=r}e.s=n}function B(e){R.call(this,void 0),this.x=e,this.s=void 0,this.g=D-1,this.f=4}function q(e){return new B(e)}function Y(e){var t=e.u;if(e.u=void 0,"function"==typeof t){A++;var n=H;H=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,X(e),t}finally{H=n,M()}}}function X(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,Y(e)}function G(e){if(H!==this)throw new Error("Out-of-order effect");K(this),H=e,this.f&=-2,8&this.f&&X(this),M()}function Q(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function Z(e){var t=new Q(e);try{t.c()}catch(e){throw t.d(),e}return t.d.bind(t)}function ee(e,t){a.fF[e]=t.bind(null,a.fF[e]||function(){})}function te(e){W&&W(),W=e&&e.S()}function ne(e){var t=this,n=e.data,r=function(e){return k((function(){return z(e)}),[])}(n);r.value=n;var o=k((function(){for(var e=t.__v;e=e.__;)if(e.__c){e.__c.__$f|=4;break}return t.__$u.c=function(){var e,n=t.__$u.S(),r=o.value;n(),(0,a.zO)(r)||3!==(null==(e=t.base)?void 0:e.nodeType)?(t.__$f|=1,t.setState({})):t.base.data=r},q((function(){var e=r.value.value;return 0===e?0:!0===e?"":e||""}))}),[]);return o.value}function re(e,t,n,r){var o=t in e&&void 0===e.ownerSVGElement,i=z(n);return{o:function(e,t){i.value=e,r=t},d:Z((function(){var n=i.value.value;r[t]!==n&&(r[t]=n,o?e[t]=n:n?e.setAttribute(t,n):e.removeAttribute(t))}))}}R.prototype.brand=N,R.prototype.h=function(){return!0},R.prototype.S=function(e){this.t!==e&&void 0===e.e&&(e.x=this.t,void 0!==this.t&&(this.t.e=e),this.t=e)},R.prototype.U=function(e){if(void 0!==this.t){var t=e.e,n=e.x;void 0!==t&&(t.x=n,e.e=void 0),void 0!==n&&(n.e=t,e.x=void 0),e===this.t&&(this.t=n)}},R.prototype.subscribe=function(e){var t=this;return Z((function(){var n=t.value,r=H;H=void 0;try{e(n)}finally{H=r}}))},R.prototype.valueOf=function(){return this.value},R.prototype.toString=function(){return this.value+""},R.prototype.toJSON=function(){return this.value},R.prototype.peek=function(){var e=H;H=void 0;try{return this.value}finally{H=e}},Object.defineProperty(R.prototype,"value",{get:function(){var e=I(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(L>100)throw new Error("Cycle detected");this.v=e,this.i++,D++,A++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{M()}}}}),(B.prototype=new R).h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===D)return!0;if(this.g=D,this.f|=1,this.i>0&&!V(this))return this.f&=-2,!0;var e=H;try{J(this),H=this;var t=this.x();(16&this.f||this.v!==t||0===this.i)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return H=e,K(this),this.f&=-2,!0},B.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}R.prototype.S.call(this,e)},B.prototype.U=function(e){if(void 0!==this.t&&(R.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}},B.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;void 0!==e;e=e.x)e.t.N()}},Object.defineProperty(B.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=I(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),Q.prototype.c=function(){var e=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var t=this.x();"function"==typeof t&&(this.u=t)}finally{e()}},Q.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Y(this),J(this),A++;var e=H;return H=this,G.bind(this,e)},Q.prototype.N=function(){2&this.f||(this.f|=2,this.o=U,U=this)},Q.prototype.d=function(){this.f|=8,1&this.f||X(this)},ne.displayName="_st",Object.defineProperties(R.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:ne},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}}),ee("__b",(function(e,t){if("string"==typeof t.type){var n,r=t.props;for(var o in r)if("children"!==o){var i=r[o];i instanceof R&&(n||(t.__np=n={}),n[o]=i,r[o]=i.peek())}}e(t)})),ee("__r",(function(e,t){te();var n,r=t.__c;r&&(r.__$f&=-2,void 0===(n=r.__$u)&&(r.__$u=n=function(){var e;return Z((function(){e=this})),e.c=function(){r.__$f|=1,r.setState({})},e}())),te(n),e(t)})),ee("__e",(function(e,t,n,r){te(),e(t,n,r)})),ee("diffed",(function(e,t){var n;if(te(),"string"==typeof t.type&&(n=t.__e)){var r=t.__np,o=t.props;if(r){var i=n.U;if(i)for(var s in i){var a=i[s];void 0===a||s in r||(a.d(),i[s]=void 0)}else n.U=i={};for(var c in r){var u=i[c],l=r[c];void 0===u?(u=re(n,c,l,o),i[c]=u):u.o(l,o)}}}e(t)})),ee("unmount",(function(e,t){if("string"==typeof t.type){var n=t.__e;if(n){var r=n.U;if(r)for(var o in n.U=void 0,r){var i=r[o];i&&i.d()}}}else{var s=t.__c;if(s){var a=s.__$u;a&&(s.__$u=void 0,a.d())}}e(t)})),ee("__h",(function(e,t,n,r){(r<3||9===r)&&(t.__$f|=2),e(t,n,r)})),a.uA.prototype.shouldComponentUpdate=function(e,t){var n=this.__$u,r=n&&void 0!==n.s;for(var o in t)return!0;if(this.__f||"boolean"==typeof this.u&&!0===this.u){if(!(r||2&this.__$f||4&this.__$f))return!0;if(1&this.__$f)return!0}else{if(!(r||4&this.__$f))return!0;if(3&this.__$f)return!0}for(var i in e)if("__source"!==i&&e[i]!==this.props[i])return!0;for(var s in this.props)if(!(s in e))return!0;return!1};const oe=[],ie=()=>oe.slice(-1)[0],se=e=>{oe.push(e)},ae=()=>{oe.pop()},ce=[],ue=()=>ce.slice(-1)[0],le=e=>{ce.push(e)},fe=()=>{ce.pop()},_e=new WeakMap,pe=()=>{throw new Error("Please use `data-wp-bind` to modify the attributes of an element.")},he={get(e,t,n){const r=Reflect.get(e,t,n);return r&&"object"==typeof r?de(r):r},set:pe,deleteProperty:pe},de=e=>(_e.has(e)||_e.set(e,new Proxy(e,he)),_e.get(e)),ve=e=>ue().context[e||ie()],ye=()=>{const e=ue();const{ref:t,attributes:n}=e;return Object.freeze({ref:t.current,attributes:de(n)})},me=e=>ue().serverContext[e||ie()],ge=e=>new Promise((t=>{const n=()=>{clearTimeout(r),window.cancelAnimationFrame(o),setTimeout((()=>{e(),t()}))},r=setTimeout(n,100),o=window.requestAnimationFrame(n)})),we="function"==typeof window.scheduler?.yield?window.scheduler.yield.bind(window.scheduler):()=>new Promise((e=>{setTimeout(e,0)}));function be(e){g((()=>{let t=null,n=!1;return t=function(e,t){let n=()=>{};const r=Z((function(){return n=this.c.bind(this),this.x=e,this.c=t,e()}));return{flush:n,dispose:r}}(e,(async()=>{t&&!n&&(n=!0,await ge(t.flush),n=!1)})),t.dispose}),[])}function ke(e){const t=ue(),n=ie();let r;r="GeneratorFunction"===e?.constructor?.name?async(...r)=>{const o=e(...r);let i,s;for(;;){se(n),le(t);try{s=o.next(i)}finally{fe(),ae()}try{i=await s.value}catch(e){se(n),le(t),o.throw(e)}finally{fe(),ae()}if(s.done)break}return i}:(...r)=>{se(n),le(t);try{return e(...r)}finally{ae(),fe()}};if(e.sync){const e=r;return e.sync=!0,e}return r}function Se(e){be(ke(e))}function xe(e){g(ke(e),[])}function Oe(e,t){g(ke(e),t)}function Ee(e,t){w(ke(e),t)}function je(e,t){return S(ke(e),t)}function Pe(e,t){return k(ke(e),t)}new Set;const Te=e=>{0},Fe=e=>"__proto__"===e||"constructor"===e||"prototype"===e,Ce=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0,Ne=(e,t)=>"__proto__"===e?void 0:t,Me=e=>Boolean(e&&"object"==typeof e&&e.constructor===Object);function $e(e){const t=e;return t.sync=!0,t}const He=new WeakMap,We=new WeakMap,Ue=new WeakMap,Ae=new Set([Object,Array]),Le=(e,t,n)=>{if(!Re(t))throw Error("This object cannot be proxified.");if(!He.has(t)){const r=new Proxy(t,n);He.set(t,r),We.set(r,t),Ue.set(r,e)}return He.get(t)},De=e=>He.get(e),Ie=e=>Ue.get(e),Re=e=>"object"==typeof e&&null!==e&&(!Ue.has(e)&&Ae.has(e.constructor)),ze=e=>We.get(e),Ve={};class Je{constructor(e){this.owner=e,this.computedsByScope=new WeakMap}setValue(e){this.update({value:e})}setGetter(e){this.update({get:e})}getComputed(){const e=ue()||Ve;if(this.valueSignal||this.getterSignal||this.update({}),!this.computedsByScope.has(e)){const t=()=>{const e=this.getterSignal?.value;return e?e.call(this.owner):this.valueSignal?.value};se(Ie(this.owner)),this.computedsByScope.set(e,q(ke(t))),ae()}return this.computedsByScope.get(e)}update({get:e,value:t}){this.valueSignal?t===this.valueSignal.peek()&&e===this.getterSignal.peek()||$((()=>{this.valueSignal.value=t,this.getterSignal.value=e})):(this.valueSignal=z(t),this.getterSignal=z(e))}}const Ke=new Set(Object.getOwnPropertyNames(Symbol).map((e=>Symbol[e])).filter((e=>"symbol"==typeof e))),Be=new WeakMap,qe=(e,t)=>Be.has(e)&&Be.get(e).has(t),Ye=new WeakSet,Xe=(e,t,n)=>{Be.has(e)||Be.set(e,new Map),t="number"==typeof t?`${t}`:t;const r=Be.get(e);if(!r.has(t)){const o=Ie(e),i=new Je(e);if(r.set(t,i),n){const{get:t,value:r}=n;if(t)i.setGetter(t);else{const t=Ye.has(e);i.setValue(Re(r)?et(o,r,{readOnly:t}):r)}}}return r.get(t)},Ge=new WeakMap;let Qe=!1;const Ze={get(e,t,n){if(Qe||!Object.prototype.hasOwnProperty.call(e,t)&&t in e||"symbol"==typeof t&&Ke.has(t))return Reflect.get(e,t,n);const r=Object.getOwnPropertyDescriptor(e,t),o=Xe(n,t,r).getComputed().value;if("function"==typeof o){const e=Ie(n);return(...t)=>{se(e);try{return o.call(n,...t)}finally{ae()}}}return o},set(e,t,n,r){if(Ye.has(r))return!1;se(Ie(r));try{return Reflect.set(e,t,n,r)}finally{ae()}},defineProperty(e,t,n){if(Ye.has(De(e)))return!1;const r=!(t in e),o=Reflect.defineProperty(e,t,n);if(o){const o=De(e),i=Xe(o,t),{get:s,value:a}=n;if(s)i.setGetter(s);else{const e=Ie(o);i.setValue(Re(a)?et(e,a):a)}if(r&&Ge.has(e)&&Ge.get(e).value++,Array.isArray(e)&&Be.get(o)?.has("length")){Xe(o,"length").setValue(e.length)}}return o},deleteProperty(e,t){if(Ye.has(De(e)))return!1;const n=Reflect.deleteProperty(e,t);if(n){Xe(De(e),t).setValue(void 0),Ge.has(e)&&Ge.get(e).value++}return n},ownKeys:e=>(Ge.has(e)||Ge.set(e,z(0)),Ge._=Ge.get(e).value,Reflect.ownKeys(e))},et=(e,t,n)=>{const r=Le(e,t,Ze);return n?.readOnly&&Ye.add(r),r},tt=(e,t,n=!0)=>{if(!Me(e)||!Me(t))return;let r=!1;for(const o in t){if(Fe(o))continue;const i=!(o in e);r=r||i;const s=Object.getOwnPropertyDescriptor(t,o),a=De(e),c=!!a&&qe(a,o)&&Xe(a,o);if("function"==typeof s.get||"function"==typeof s.set)(n||i)&&(Object.defineProperty(e,o,{...s,configurable:!0,enumerable:!0}),s.get&&c&&c.setGetter(s.get));else if(Me(t[o])){const r=Object.getOwnPropertyDescriptor(e,o)?.value;if(i||n&&!Me(r)){if(e[o]={},c){const t=Ie(a);c.setValue(et(t,e[o]))}tt(e[o],t[o],n)}else Me(r)&&tt(e[o],t[o],n)}else if((n||i)&&(Object.defineProperty(e,o,s),c)){const{value:e}=s,t=Ie(a);c.setValue(Re(e)?et(t,e):e)}}r&&Ge.has(e)&&Ge.get(e).value++},nt=(e,t,n=!0)=>$((()=>tt(ze(e)||e,t,n))),rt=new WeakSet,ot={get:(e,t,n)=>{const r=Reflect.get(e,t),o=Ie(n);if(void 0===r&&rt.has(n)){const n={};return Reflect.set(e,t,n),it(o,n,!1)}if("function"==typeof r){se(o);const e=ke(r);return ae(),e}return Me(r)&&Re(r)?it(o,r,!1):r}},it=(e,t,n=!0)=>{const r=Le(e,t,ot);return r&&n&&rt.add(r),r},st=new WeakMap,at=new WeakMap,ct=new WeakSet,ut=Reflect.getOwnPropertyDescriptor,lt={get:(e,t)=>{const n=at.get(e),r=e[t];return t in e?r:n[t]},set:(e,t,n)=>{const r=at.get(e);return(t in e||!(t in r)?e:r)[t]=n,!0},ownKeys:e=>[...new Set([...Object.keys(at.get(e)),...Object.keys(e)])],getOwnPropertyDescriptor:(e,t)=>ut(e,t)||ut(at.get(e),t),has:(e,t)=>Reflect.has(e,t)||Reflect.has(at.get(e),t)},ft=(e,t={})=>{if(ct.has(e))throw Error("This object cannot be proxified.");if(at.set(e,t),!st.has(e)){const t=new Proxy(e,lt);st.set(e,t),ct.add(t)}return st.get(e)},_t=new Map,pt=new Map,ht=new Map,dt=new Map,vt=new Map,yt=e=>dt.get(e||ie())||{},mt=e=>{const t=e||ie();return vt.has(t)||vt.set(t,et(t,{},{readOnly:!0})),vt.get(t)},gt="I acknowledge that using a private store means my plugin will inevitably break on the next store release.";function wt(e,{state:t={},...n}={},{lock:r=!1}={}){if(_t.has(e)){if(r===gt||ht.has(e)){const t=ht.get(e);if(!(r===gt||!0!==r&&r===t))throw t?Error("Cannot unlock a private store with an invalid lock code"):Error("Cannot lock a public store")}else ht.set(e,r);const o=pt.get(e);nt(o,n),nt(o.state,t)}else{r!==gt&&ht.set(e,r);const o={state:et(e,Me(t)?t:{}),...n},i=it(e,o);pt.set(e,o),_t.set(e,i)}return _t.get(e)}const bt=(e=document)=>{var t;const n=null!==(t=e.querySelector('script[id="wp-script-module-data-@wordpress/interactivity"]'))&&void 0!==t?t:e.querySelector('script[id="wp-interactivity-data"]');if(n instanceof HTMLScriptElement)try{return JSON.parse(n.text,Ne)}catch{}return{}},kt=e=>{Me(e?.state)&&Object.entries(e.state).forEach((([e,t])=>{const n=wt(e,{},{lock:gt});nt(n.state,t,!1),nt(mt(e),t)})),Me(e?.config)&&Object.entries(e.config).forEach((([e,t])=>{dt.set(e,t)}))},St=bt();kt(St);const xt="wp",Ot=`data-${xt}-ignore`,Et=`data-${xt}-interactive`,jt=`data-${xt}-`,Pt=[],Tt=new RegExp(`^data-${xt}-([a-z0-9]+(?:-[a-z0-9]+)*)(?:--([a-z0-9_-]+))?$`,"i"),Ft=/^([\w_\/-]+)::(.+)$/,Ct=e=>Fe(e.replace(/^-+|-+$/g,"").toLowerCase()),Nt=new WeakSet,Mt=new WeakSet;function $t(e){const t=document.createTreeWalker(e,205);return function e(n){const{nodeType:r}=n;if(3===r)return[n.data];if(4===r){var o;const e=t.nextSibling();return n.replaceWith(new window.Text(null!==(o=n.nodeValue)&&void 0!==o?o:"")),[n.nodeValue,e]}if(8===r||7===r){const e=t.nextSibling();return n.remove(),[null,e]}const i=n,{attributes:s}=i,c=i.localName,u={},l=[],f=[];let _=!1,p=!1;for(let e=0;e{const o=Tt.exec(t),i=o?.[1]||"",s=o?.[2]||null;return null===o||Ct(i)||null!==s&&s.split("--").some(Ct)?(Te(),e):(e[i]=e[i]||[],e[i].push({namespace:null!=n?n:null!==(a=Pt[Pt.length-1])&&void 0!==a?a:null,value:r,suffix:s}),e);var a}),Object.create(null)),Mt.add(u.__directives)),"template"===c)u.content=[...i.content.childNodes].map((e=>$t(e)));else{let n=t.firstChild();if(n){for(;n;){const[r,o]=e(n);r&&l.push(r),n=o||t.nextSibling()}t.parentNode()}}return p&&Pt.pop(),[(0,a.h)(c,u,l)]}(t.currentNode)}function Ht(e){return null!==e.suffix}function Wt(e){return null===e.suffix}const Ut=(0,a.q6)({client:{},server:{}}),At=Object.create(null),Lt=Object.create(null),Dt=(e,t,{priority:n=10}={})=>{At[e]=t,Lt[e]=n},It=(e,t)=>{if(!t)return void Te();const n=e.split(".");if(Fe(t)||n.some(Fe))return void 0;let r=_t.get(t);void 0===r&&(r=wt(t,{},{lock:gt}));const o={...r,context:Ce(ue().context,t)};try{let e,t=o;for(const r of n)e=t,t=t[r];return((e,t,n)=>{if("function"!=typeof n||null==e)return!1;const r=Object(e),o=ze(r);if(o&&Object.prototype.hasOwnProperty.call(o,t))return!1;for(let e=Object.getPrototypeOf(null!=o?o:r);null!==e;e=Object.getPrototypeOf(e)){const r=Object.getOwnPropertyDescriptor(e,t);if(r)return o?"function"==typeof r.value:r.value===n}return!1})(e,n[n.length-1],t)?void 0:t}catch(e){}},Rt=({scope:e})=>(t,...n)=>{let{value:r,namespace:o}=t;if("string"!=typeof r)throw new Error("The `value` prop should be a string path");const i="!"===r[0]&&!!(r=r.slice(1));le(e);const s=It(r,o);if("function"==typeof s){if(i){Te();const e=!s(...n);return fe(),e}return fe(),(...t)=>{le(e);const n=s(...t);return fe(),n}}const a=s;return fe(),i?!a:a},zt=({directives:e,priorityLevels:[t,...n],element:r,originalProps:o,previousScope:i})=>{const s=b({}).current;s.evaluate=S(Rt({scope:s}),[]);const{client:c,server:u}=x(Ut);s.context=c,s.serverContext=u,s.ref=i?.ref||b(null),r=(0,a.Ob)(r,{ref:s.ref}),s.attributes=r.props;const l=n.length>0?(0,a.h)(zt,{directives:e,priorityLevels:n,element:r,originalProps:o,previousScope:s}):r,f={...o,children:l},_={directives:e,props:f,element:r,context:Ut,evaluate:s.evaluate};le(s);for(const e of t){const t=At[e]?.(_);void 0!==t&&(f.children=t)}return fe(),f.children},Vt=a.fF.vnode;a.fF.vnode=e=>{var t;if(e.props.__directives&&("object"!=typeof(t=e.props.__directives)||null===t||!Mt.has(t))&&delete e.props.__directives,e.props.__directives){const t=e.props,n=t.__directives;n.key&&(e.key=n.key.find(Wt).value),delete t.__directives;const r=(e=>{const t=Object.keys(e).reduce(((e,t)=>{if(At[t]){const n=Lt[t];(e[n]=e[n]||[]).push(t)}return e}),{});return Object.entries(t).sort((([e],[t])=>parseInt(e)-parseInt(t))).map((([,e])=>e))})(n);r.length>0&&(e.props={directives:n,priorityLevels:r,originalProps:t,type:e.type,element:(0,a.h)(e.type,t),top:!0},e.type=zt)}Vt&&Vt(e)};const Jt=new Set(["action","archive","background","cite","classid","codebase","data","formaction","href","icon","longdesc","manifest","poster","profile","src","usemap","xlink:href","xlinkhref","xmlns"]),Kt=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i;const Bt=new Set(["class","dir","height","hidden","id","lang","role","style","tabindex","title","width"]);function qt(e){return Me(e)?Object.fromEntries(Object.entries(e).map((([e,t])=>[e,qt(t)]))):Array.isArray(e)?e.map((e=>qt(e))):e}const Yt=new Set(["__directives","children","dangerouslysetinnerhtml"]);function Xt(e){return new Proxy(e,{get(e,t,n){const r=e[t];switch(t){case"currentTarget":case"preventDefault":case"stopImmediatePropagation":case"stopPropagation":Te()}return r instanceof Function?function(...t){return r.apply(this===n?e:this,t)}:r}})}const Gt=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Qt=/\/\*[^]*?\*\/| +/g,Zt=/\n+/g,en=e=>({directives:t,evaluate:n})=>{t[`on-${e}`].filter(Ht).forEach((t=>{const r=t.suffix.split("--",1)[0];xe((()=>{const o=e=>{const r=n(t);"function"==typeof r&&(r?.sync||(e=Xt(e)),r(e))},i="window"===e?window:document;return i.addEventListener(r,o),()=>i.removeEventListener(r,o)}))}))},tn=e=>({directives:t,evaluate:n})=>{t[`on-async-${e}`].filter(Ht).forEach((t=>{const r=t.suffix.split("--",1)[0];xe((()=>{const o=async e=>{await we();const r=n(t);"function"==typeof r&&r(e)},i="window"===e?window:document;return i.addEventListener(r,o,{passive:!0}),()=>i.removeEventListener(r,o)}))}))},nn=new WeakMap,rn=e=>{if(!e.parentElement)throw Error("The passed region should be an element with a parent.");return nn.has(e)||nn.set(e,((e,t)=>{const n=(t=[].concat(t))[t.length-1].nextSibling;function r(t,r){e.insertBefore(t,r||n)}return e.__k={nodeType:1,parentNode:e,firstChild:t[0],childNodes:t,insertBefore:r,appendChild:r,removeChild(t){e.removeChild(t)}}})(e.parentElement,e)),nn.get(e)},on=new WeakMap,sn=e=>{if("I acknowledge that using private APIs means my theme or plugin will inevitably break in the next version of WordPress."===e)return{directivePrefix:xt,getRegionRootFragment:rn,initialVdom:on,toVdom:$t,directive:Dt,getNamespace:ie,h:a.h,cloneElement:a.Ob,render:a.XX,proxifyState:et,parseServerData:bt,populateServerData:kt,batch:$};throw new Error("Forbidden access.")};Dt("context",(({directives:{context:e},props:{children:t},context:n})=>{const{Provider:r}=n,o=e.find(Wt),{client:i,server:s}=x(n),c=o.namespace,u=b(et(c,{})),l=b(et(c,{},{readOnly:!0})),f=k((()=>{const e={client:{...i},server:{...s}};if(o){const{namespace:t,value:n}=o;Me(n)||Te(),nt(u.current,qt(n),!1),nt(l.current,qt(n)),e.client[t]=ft(u.current,Ce(i,t)),e.server[t]=ft(l.current,Ce(s,t))}return e}),[o,i,s]);return(0,a.h)(r,{value:f},t)}),{priority:5}),Dt("watch",(({directives:{watch:e},evaluate:t})=>{e.forEach((e=>{Se((()=>{let n=t(e);return"function"==typeof n&&(n=n()),n}))}))})),Dt("init",(({directives:{init:e},evaluate:t})=>{e.forEach((e=>{xe((()=>{let n=t(e);return"function"==typeof n&&(n=n()),n}))}))})),Dt("on",(({directives:{on:e},element:t,evaluate:n})=>{const r=new Map;e.filter(Ht).forEach((e=>{const t=e.suffix.split("--")[0];r.has(t)||r.set(t,new Set),r.get(t).add(e)})),r.forEach(((e,r)=>{const o=t.props[`on${r}`];t.props[`on${r}`]=t=>{e.forEach((e=>{o&&o(t);const r=n(e);"function"==typeof r&&(r?.sync||(t=Xt(t)),r(t))}))}}))})),Dt("on-async",(({directives:{"on-async":e},element:t,evaluate:n})=>{const r=new Map;e.filter(Ht).forEach((e=>{const t=e.suffix.split("--")[0];r.has(t)||r.set(t,new Set),r.get(t).add(e)})),r.forEach(((e,r)=>{const o=t.props[`on${r}`];t.props[`on${r}`]=t=>{o&&o(t),e.forEach((async e=>{await we();const r=n(e);"function"==typeof r&&r(t)}))}}))})),Dt("on-window",en("window")),Dt("on-document",en("document")),Dt("on-async-window",tn("window")),Dt("on-async-document",tn("document")),Dt("class",(({directives:{class:e},element:t,evaluate:n})=>{e.filter(Ht).forEach((e=>{const r=e.suffix;let o=n(e);"function"==typeof o&&(o=o());const i="string"==typeof t.props.class?t.props.class:"",s=new RegExp(`(^|\\s)${r}(\\s|$)`,"g");o?s.test(i)||(t.props.class=i?`${i} ${r}`:r):t.props.class=i.replace(s," ").trim(),xe((()=>{o?t.ref.current.classList.add(r):t.ref.current.classList.remove(r)}))}))})),Dt("style",(({directives:{style:e},element:t,evaluate:n})=>{e.filter(Ht).forEach((e=>{const r=e.suffix;let o=n(e);"function"==typeof o&&(o=o()),"string"==typeof t.props.style?t.props.style=(e=>{const t=Object.create(null),n=e.replace(Qt,"");let r,o=0;for(Gt.lastIndex=0;r=Gt.exec(n);)void 0!==r[4]?o=Math.max(0,o-1):void 0!==r[3]?o++:0===o&&(t[r[1]]=r[2].replace(Zt," ").trim());return t})(t.props.style):(e=>{if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||null===t})(t.props.style)?t.props.style=(e=>{const t=Object.create(null);for(const[n,r]of Object.entries(Object.getOwnPropertyDescriptors(e)))r.enumerable&&"value"in r&&(t[n]=r.value);return t})(t.props.style):t.props.style=Object.create(null),o?t.props.style[r]=o:delete t.props.style[r],xe((()=>{o?t.ref.current.style[r]=o:t.ref.current.style.removeProperty(r)}))}))})),Dt("bind",(({directives:{bind:e},element:t,evaluate:n})=>{e.filter(Ht).forEach((e=>{const r=e.suffix,o=r.toLowerCase();if(Yt.has(o)||"content"===o&&"template"===t.type||Fe(r))return;if(/^on/i.test(r))return;if(!((e,t)=>{if("string"!=typeof e||"object"!==e.toLowerCase())return!0;const n=t.toLowerCase();return Bt.has(n)||n.startsWith("aria-")||n.startsWith("data-")&&!n.startsWith("data-wp-")})(t.type,r))return;if("protocol"===r&&("a"===t.type||"area"===t.type))return void delete t.props[r];let i=n(e);"function"==typeof i&&(i=i()),Jt.has(r.toLowerCase())&&(i=function(e){if(null==e||"boolean"==typeof e)return e;try{const t=String(e);return Kt.test(t)?null:t}catch{return null}}(i)),t.props[r]=i,xe((()=>{const e=t.ref.current;if("style"!==r){if("width"!==r&&"height"!==r&&"href"!==r&&"list"!==r&&"form"!==r&&"tabIndex"!==r&&"download"!==r&&"rowSpan"!==r&&"colSpan"!==r&&"role"!==r&&r in e)try{return void(e[r]=null==i?"":i)}catch(e){}null==i||!1===i&&"-"!==r[4]?e.removeAttribute(r):e.setAttribute(r,i)}else"string"==typeof i&&(e.style.cssText=i)}))}))})),Dt("ignore",(({element:{type:e,props:{innerHTML:t,...n}}})=>{const r=k((()=>t),[]);return(0,a.h)(e,{dangerouslySetInnerHTML:{__html:r},...n})})),Dt("text",(({directives:{text:e},element:t,evaluate:n})=>{const r=e.find(Wt);if(r)try{let e=n(r);"function"==typeof e&&(e=e()),t.props.children="object"==typeof e?null:e.toString()}catch(e){t.props.children=null}else t.props.children=null})),Dt("run",(({directives:{run:e},evaluate:t})=>{e.forEach((e=>{let n=t(e);return"function"==typeof n&&(n=n()),n}))})),Dt("each",(({directives:{each:e,"each-key":t},context:n,element:r,evaluate:o})=>{if("template"!==r.type)return;const{Provider:i}=n,s=x(n),[c]=e,{namespace:u}=c;let l=o(c);if("function"==typeof l&&(l=l()),"function"!=typeof l?.[Symbol.iterator])return;const f=Ht(c)?c.suffix.replace(/^-+|-+$/g,"").toLowerCase().replace(/-([a-z])/g,(function(e,t){return t.toUpperCase()})):"item",_=[];for(const e of l){const n=ft(et(u,{}),Ce(s.client,u)),o={client:{...s.client,[u]:n},server:{...s.server}};o.client[u][f]=e;const c={...ue(),context:o.client,serverContext:o.server},l=t?Rt({scope:c})(t[0]):e;_.push((0,a.h)(i,{value:o,key:l},r.props.content))}return _}),{priority:20}),Dt("each-child",(()=>null),{priority:1}),(async()=>{const e=document.querySelectorAll(`[data-${xt}-interactive]`);await new Promise((e=>{setTimeout(e,0)}));for(const t of e)if(!Nt.has(t)){await we();const e=rn(t),n=$t(t);on.set(t,n),await we(),(0,a.Qv)(n,e)}})()},622:(e,t,n)=>{n.d(t,{FK:()=>x,Ob:()=>K,Qv:()=>J,XX:()=>V,fF:()=>o,h:()=>k,q6:()=>B,uA:()=>O,zO:()=>s});var r,o,i,s,a,c,u,l,f,_,p,h,d,v={},y=[],m=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,g=Array.isArray;function w(e,t){for(var n in t)e[n]=t[n];return e}function b(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function k(e,t,n){var o,i,s,a={};for(s in t)"key"==s?o=t[s]:"ref"==s?i=t[s]:a[s]=t[s];if(arguments.length>2&&(a.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(s in e.defaultProps)void 0===a[s]&&(a[s]=e.defaultProps[s]);return S(e,a,o,i,null)}function S(e,t,n,r,s){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==s?++i:s,__i:-1,__u:0};return null==s&&null!=o.vnode&&o.vnode(a),a}function x(e){return e.children}function O(e,t){this.props=e,this.context=t}function E(e,t){if(null==t)return e.__?E(e.__,e.__i+1):null;for(var n;tu&&a.sort(l),e=a.shift(),u=a.length,e.__d&&(n=void 0,i=(r=(t=e).__v).__e,s=[],c=[],t.__P&&((n=w({},r)).__v=r.__v+1,o.vnode&&o.vnode(n),U(t.__P,n,r,t.__n,t.__P.namespaceURI,32&r.__u?[i]:null,s,null==i?E(r):i,!!(32&r.__u),c),n.__v=r.__v,n.__.__k[n.__i]=n,A(s,n,c),n.__e!=i&&j(n)));T.__r=0}function F(e,t,n,r,o,i,s,a,c,u,l){var f,_,p,h,d,m,g=r&&r.__k||y,w=t.length;for(c=C(n,t,g,c,w),f=0;f0?S(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=e,s.__b=e.__b+1,a=null,-1!==(u=s.__i=M(s,n,c,f))&&(f--,(a=n[u])&&(a.__u|=2)),null==a||null===a.__v?(-1==u&&(o>l?_--:oc?_--:_++,s.__u|=4))):e.__k[i]=null;if(f)for(i=0;i(null==c||2&c.__u?0:1))for(o=n-1,i=n+1;o>=0||i=0){if((c=t[o])&&!(2&c.__u)&&s==c.key&&a===c.type)return o;o--}if(i2&&(c.children=arguments.length>3?r.call(arguments,2):n),S(e.type,c,o||e.key,i||e.ref,null)}function B(e){function t(e){var n,r;return this.getChildContext||(n=new Set,(r={})[t.__c]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.forEach((function(e){e.__e=!0,P(e)}))},this.sub=function(e){n.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.delete(e),t&&t.call(e)}}),e.children}return t.__c="__cC"+d++,t.__=e,t.Provider=t.__l=(t.Consumer=function(e,t){return e.children(t)}).contextType=t,t}r=y.slice,o={__e:function(e,t,n,r){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),s=o.__d),s)return o.__E=o}catch(t){e=t}throw e}},i=0,s=function(e){return null!=e&&null==e.constructor},O.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=w({},this.state),"function"==typeof e&&(e=e(w({},n),this.props)),e&&w(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),P(this))},O.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),P(this))},O.prototype.render=x,a=[],u="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,l=function(e,t){return e.__v.__b-t.__v.__b},T.__r=0,f=/(PointerCapture)$|Capture$/i,_=0,p=W(!1),h=W(!0),d=0}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};n.d(r,{zj:()=>k.zj,SD:()=>k.SD,V6:()=>k.V6,$K:()=>k.$K,vT:()=>k.vT,jb:()=>k.jb,yT:()=>k.yT,M_:()=>k.M_,hb:()=>k.hb,vJ:()=>k.vJ,ip:()=>k.ip,Nf:()=>k.Nf,Kr:()=>k.Kr,li:()=>k.li,J0:()=>k.J0,FH:()=>k.FH,v4:()=>k.v4,mh:()=>k.mh});var o,i=n(622);null!=(o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0)&&o.__PREACT_DEVTOOLS__&&o.__PREACT_DEVTOOLS__.attachPreact("10.26.4",i.fF,{Fragment:i.FK,Component:i.uA});var s={};function a(e){return e.type===i.FK?"Fragment":"function"==typeof e.type?e.type.displayName||e.type.name:"string"==typeof e.type?e.type:"#text"}var c=[],u=[];function l(){return c.length>0?c[c.length-1]:null}var f=!0;function _(e){return"function"==typeof e.type&&e.type!=i.FK}function p(e){for(var t=[e],n=e;null!=n.__o;)t.push(n.__o),n=n.__o;return t.reduce((function(e,t){e+=" in "+a(t);var n=t.__source;return n?e+=" (at "+n.fileName+":"+n.lineNumber+")":f&&console.warn("Add @babel/plugin-transform-react-jsx-source to get a more detailed component stack. Note that you should not add it to production builds of your App for bundle size reasons."),f=!1,e+"\n"}),"")}var h="function"==typeof WeakMap;function d(e){var t=[];return e.__k?(e.__k.forEach((function(e){e&&"function"==typeof e.type?t.push.apply(t,d(e)):e&&"string"==typeof e.type&&t.push(e.type)})),t):t}function v(e){return e?"function"==typeof e.type?null==e.__?null!=e.__e&&null!=e.__e.parentNode?e.__e.parentNode.localName:"":v(e.__):e.type:""}var y=i.uA.prototype.setState;function m(e){return"table"===e||"tfoot"===e||"tbody"===e||"thead"===e||"td"===e||"tr"===e||"th"===e}i.uA.prototype.setState=function(e,t){return null==this.__v&&null==this.state&&console.warn('Calling "this.setState" inside the constructor of a component is a no-op and might be a bug in your application. Instead, set "this.state = {}" directly.\n\n'+p(l())),y.call(this,e,t)};var g=/^(address|article|aside|blockquote|details|div|dl|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hgroup|hr|main|menu|nav|ol|p|pre|search|section|table|ul)$/,w=i.uA.prototype.forceUpdate;function b(e){var t=e.props,n=a(e),r="";for(var o in t)if(t.hasOwnProperty(o)&&"children"!==o){var i=t[o];"function"==typeof i&&(i="function "+(i.displayName||i.name)+"() {}"),i=Object(i)!==i||i.toString?i+"":Object.prototype.toString.call(i),r+=" "+o+"="+JSON.stringify(i)}var s=t.children;return"<"+n+r+(s&&s.length?">.."+n+">":" />")}i.uA.prototype.forceUpdate=function(e){return null==this.__v?console.warn('Calling "this.forceUpdate" inside the constructor of a component is a no-op and might be a bug in your application.\n\n'+p(l())):null==this.__P&&console.warn('Can\'t call "this.forceUpdate" on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method.\n\n'+p(this.__v)),w.call(this,e)},i.fF.__m=function(e,t){var n=e.type,r=t.map((function(e){return e&&e.localName})).filter(Boolean);console.error('Expected a DOM node of type "'+n+'" but found "'+r.join(", ")+"\" as available DOM-node(s), this is caused by the SSR'd HTML containing different DOM-nodes compared to the hydrated one.\n\n"+p(e))},function(){!function(){var e=i.fF.__b,t=i.fF.diffed,n=i.fF.__,r=i.fF.vnode,o=i.fF.__r;i.fF.diffed=function(e){_(e)&&u.pop(),c.pop(),t&&t(e)},i.fF.__b=function(t){_(t)&&c.push(t),e&&e(t)},i.fF.__=function(e,t){u=[],n&&n(e,t)},i.fF.vnode=function(e){e.__o=u.length>0?u[u.length-1]:null,r&&r(e)},i.fF.__r=function(e){_(e)&&u.push(e),o&&o(e)}}();var e=!1,t=i.fF.__b,n=i.fF.diffed,r=i.fF.vnode,o=i.fF.__r,l=i.fF.__e,f=i.fF.__,y=i.fF.__h,w=h?{useEffect:new WeakMap,useLayoutEffect:new WeakMap,lazyPropTypes:new WeakMap}:null,k=[];i.fF.__e=function(e,t,n,r){if(t&&t.__c&&"function"==typeof e.then){var o=e;e=new Error("Missing Suspense. The throwing component was: "+a(t));for(var i=t;i;i=i.__)if(i.__c&&i.__c.__c){e=o;break}if(e instanceof Error)throw e}try{(r=r||{}).componentStack=p(t),l(e,t,n,r),"function"!=typeof e.then&&setTimeout((function(){throw e}))}catch(e){throw e}},i.fF.__=function(e,t){if(!t)throw new Error("Undefined parent passed to render(), this is the second argument.\nCheck if the element is available in the DOM/has the correct id.");var n;switch(t.nodeType){case 1:case 11:case 9:n=!0;break;default:n=!1}if(!n){var r=a(e);throw new Error("Expected a valid HTML node as a second argument to render.\tReceived "+t+" instead: render(<"+r+" />, "+t+");")}f&&f(e,t)},i.fF.__b=function(n){var r=n.type;if(e=!0,void 0===r)throw new Error("Undefined component passed to createElement()\n\nYou likely forgot to export your component or might have mixed up default and named imports"+b(n)+"\n\n"+p(n));if(null!=r&&"object"==typeof r){if(void 0!==r.__k&&void 0!==r.__e)throw new Error("Invalid type passed to createElement(): "+r+"\n\nDid you accidentally pass a JSX literal as JSX twice?\n\n let My"+a(n)+" = "+b(r)+";\n let vnode = ;\n\nThis usually happens when you export a JSX literal and not the component.\n\n"+p(n));throw new Error("Invalid type passed to createElement(): "+(Array.isArray(r)?"array":r))}if(void 0!==n.ref&&"function"!=typeof n.ref&&"object"!=typeof n.ref&&!("$$typeof"in n))throw new Error('Component\'s "ref" property should be a function, or an object created by createRef(), but got ['+typeof n.ref+"] instead\n"+b(n)+"\n\n"+p(n));if("string"==typeof n.type)for(var o in n.props)if("o"===o[0]&&"n"===o[1]&&"function"!=typeof n.props[o]&&null!=n.props[o])throw new Error("Component's \""+o+'" property should be a function, but got ['+typeof n.props[o]+"] instead\n"+b(n)+"\n\n"+p(n));if("function"==typeof n.type&&n.type.propTypes){if("Lazy"===n.type.displayName&&w&&!w.lazyPropTypes.has(n.type)){var i="PropTypes are not supported on lazy(). Use propTypes on the wrapped component itself. ";try{var c=n.type();w.lazyPropTypes.set(n.type,!0),console.warn(i+"Component wrapped in lazy() is "+a(c))}catch(e){console.warn(i+"We will log the wrapped component's name once it is loaded.")}}var u=n.props;n.type.__f&&delete(u=function(e,t){for(var n in t)e[n]=t[n];return e}({},u)).ref,function(e,t,n,r,o){Object.keys(e).forEach((function(n){var i;try{i=e[n](t,n,r,"prop",null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){i=e}i&&!(i.message in s)&&(s[i.message]=!0,console.error("Failed prop type: "+i.message+(o&&"\n"+o()||"")))}))}(n.type.propTypes,u,0,a(n),(function(){return p(n)}))}t&&t(n)};var S,x=0;i.fF.__r=function(t){o&&o(t),e=!0;var n=t.__c;if(n===S?x++:x=1,x>=25)throw new Error("Too many re-renders. This is limited to prevent an infinite loop which may lock up your browser. The component causing this is: "+a(t));S=n},i.fF.__h=function(t,n,r){if(!t||!e)throw new Error("Hook can only be invoked from render methods.");y&&y(t,n,r)};var O=function(e,t){return{get:function(){var n="get"+e+t;k&&k.indexOf(n)<0&&(k.push(n),console.warn("getting vnode."+e+" is deprecated, "+t))},set:function(){var n="set"+e+t;k&&k.indexOf(n)<0&&(k.push(n),console.warn("setting vnode."+e+" is not allowed, "+t))}}},E={nodeName:O("nodeName","use vnode.type"),attributes:O("attributes","use vnode.props"),children:O("children","use vnode.props.children")},j=Object.create({},E);i.fF.vnode=function(e){var t=e.props;if(null!==e.type&&null!=t&&("__source"in t||"__self"in t)){var n=e.props={};for(var o in t){var i=t[o];"__source"===o?e.__source=i:"__self"===o?e.__self=i:n[o]=i}}e.__proto__=j,r&&r(e)},i.fF.diffed=function(t){var r,o=t.type,i=t.__;if(t.__k&&t.__k.forEach((function(e){if("object"==typeof e&&e&&void 0===e.type){var n=Object.keys(e).join(",");throw new Error("Objects are not valid as a child. Encountered an object with the keys {"+n+"}.\n\n"+p(t))}})),t.__c===S&&(x=0),"string"==typeof o&&(m(o)||"p"===o||"a"===o||"button"===o)){var s=v(i);if(""!==s&&m(o))"table"===o&&"td"!==s&&m(s)?console.error("Improper nesting of table. Your should not have a table-node parent."+b(t)+"\n\n"+p(t)):"thead"!==o&&"tfoot"!==o&&"tbody"!==o||"table"===s?"tr"===o&&"thead"!==s&&"tfoot"!==s&&"tbody"!==s?console.error("Improper nesting of table. Your should have a parent."+b(t)+"\n\n"+p(t)):"td"===o&&"tr"!==s?console.error("Improper nesting of table. Your | should have a | parent."+b(t)+"\n\n"+p(t)):"th"===o&&"tr"!==s&&console.error("Improper nesting of table. Your | should have a |
."+b(t)+"\n\n"+p(t)):console.error("Improper nesting of table. Your should have a parent."+b(t)+"\n\n"+p(t));else if("p"===o){var c=d(t).filter((function(e){return g.test(e)}));c.length&&console.error("Improper nesting of paragraph. Your should not have "+c.join(", ")+" as child-elements."+b(t)+"\n\n"+p(t))}else"a"!==o&&"button"!==o||-1!==d(t).indexOf(o)&&console.error("Improper nesting of interactive content. Your <"+o+"> should not have other "+("a"===o?"anchor":"button")+" tags as child-elements."+b(t)+"\n\n"+p(t))}if(e=!1,n&&n(t),null!=t.__k)for(var u=[],l=0;l key === '__proto__' || key === 'constructor' || key === 'prototype';
+
+/**
+ * Reads a property that an object owns, ignoring inherited properties such
+ * as `Object.prototype.valueOf`.
+ *
+ * @param object The object to read.
+ * @param key The property key.
+ * @return The value, or `undefined` if the object doesn't own the property.
+ */
+const getOwnProperty = (object, key) => Object.prototype.hasOwnProperty.call(object, key) ? object[key] : undefined;
+
+/**
+ * `JSON.parse()` reviver that removes keys named `__proto__`.
+ *
+ * `JSON.parse()` creates `__proto__` as an own property. Copying it by
+ * assignment, as in a `for...in` loop or `Object.assign()`, replaces the
+ * target's prototype instead.
+ *
+ * @param key The property key.
+ * @param value The parsed value.
+ * @return The value, or `undefined` to remove the key.
+ */
+const jsonReviver = (key, value) => key === '__proto__' ? undefined : value;
+
+/**
* Checks if the passed `candidate` is a plain object with just the `Object`
* prototype.
*
@@ -892,7 +925,7 @@
* 2. The property exists but comes from the Object or Array prototypes.
* 3. The property key is a known symbol.
*/
- if (peeking || !target.hasOwnProperty(key) && key in target || typeof key === 'symbol' && wellKnownSymbols.has(key)) {
+ if (peeking || !Object.prototype.hasOwnProperty.call(target, key) && key in target || typeof key === 'symbol' && wellKnownSymbols.has(key)) {
return Reflect.get(target, key, receiver);
}
@@ -1046,6 +1079,10 @@
}
let hasNewKeys = false;
for (const key in source) {
+ // Assigning `__proto__` would replace the prototype of `target`.
+ if (isReservedKey(key)) {
+ continue;
+ }
const isNew = !(key in target);
hasNewKeys = hasNewKeys || isNew;
const desc = Object.getOwnPropertyDescriptor(source, key);
@@ -1422,14 +1459,14 @@
return stores.get(namespace);
}
const parseServerData = (dom = document) => {
- var _dom$getElementById;
+ var _dom$querySelector;
const jsonDataScriptTag = // Preferred Script Module data passing form
- (_dom$getElementById = dom.getElementById('wp-script-module-data-@wordpress/interactivity')) !== null && _dom$getElementById !== void 0 ? _dom$getElementById :
+ (_dom$querySelector = dom.querySelector('script[id="wp-script-module-data-@wordpress/interactivity"]')) !== null && _dom$querySelector !== void 0 ? _dom$querySelector :
// Legacy form
- dom.getElementById('wp-interactivity-data');
- if (jsonDataScriptTag?.textContent) {
+ dom.querySelector('script[id="wp-interactivity-data"]');
+ if (jsonDataScriptTag instanceof HTMLScriptElement) {
try {
- return JSON.parse(jsonDataScriptTag.textContent);
+ return JSON.parse(jsonDataScriptTag.text, jsonReviver);
} catch {}
}
return {};
@@ -1455,6 +1492,208 @@
const data = parseServerData();
populateServerData(data);
+;// ./node_modules/@wordpress/interactivity/build-module/constants.js
+const directivePrefix = 'wp';
+
+;// ./node_modules/@wordpress/interactivity/build-module/vdom.js
+/**
+ * External dependencies
+ */
+
+/**
+ * Internal dependencies
+ */
+
+
+const ignoreAttr = `data-${directivePrefix}-ignore`;
+const islandAttr = `data-${directivePrefix}-interactive`;
+const fullPrefix = `data-${directivePrefix}-`;
+const namespaces = [];
+const currentNamespace = () => {
+ var _namespaces;
+ return (_namespaces = namespaces[namespaces.length - 1]) !== null && _namespaces !== void 0 ? _namespaces : null;
+};
+const isObject = item => Boolean(item && typeof item === 'object' && item.constructor === Object);
+
+// Regular expression for directive parsing.
+const directiveParser = new RegExp(`^data-${directivePrefix}-` +
+// ${p} must be a prefix string, like 'wp'.
+// Match alphanumeric characters including hyphen-separated
+// segments. It excludes underscore intentionally to prevent confusion.
+// E.g., "custom-directive".
+'([a-z0-9]+(?:-[a-z0-9]+)*)' +
+// (Optional) Match '--' followed by any alphanumeric characters. It
+// excludes underscore intentionally to prevent confusion, but it can
+// contain multiple hyphens. E.g., "--custom-prefix--with-more-info".
+'(?:--([a-z0-9_-]+))?$', 'i' // Case insensitive.
+);
+
+// Regular expression for reference parsing. It can contain a namespace before
+// the reference, separated by `::`, like `some-namespace::state.somePath`.
+// Namespaces can contain any alphanumeric characters, hyphens, underscores or
+// forward slashes. References don't have any restrictions.
+const nsPathRegExp = /^([\w_\/-]+)::(.+)$/;
+
+/**
+ * Checks whether a directive name part is reserved after trimming hyphens and
+ * lowercasing it, as `kebabToCamelCase()` does: `data-wp-each--constructor-`
+ * names the item `constructor`.
+ *
+ * Directive names and suffixes become property keys: `data-wp-bind--[attribute]`,
+ * for example, assigns to the element's props.
+ *
+ * @param part Part of a directive name.
+ * @return Whether the part is reserved.
+ */
+const isReservedNamePart = part => isReservedKey(part.replace(/^-+|-+$/g, '').toLowerCase());
+const hydratedIslands = new WeakSet();
+const directiveMaps = new WeakSet();
+
+/**
+ * Checks whether the passed value is a directive map created by `toVdom()`.
+ *
+ * @param value The value to check.
+ * @return Whether the value is a directive map created by `toVdom()`.
+ */
+const isDirectiveMap = value => typeof value === 'object' && value !== null && directiveMaps.has(value);
+
+/**
+ * Recursive function that transforms a DOM tree into vDOM.
+ *
+ * @param root The root element or node to start traversing on.
+ * @return The resulting vDOM tree.
+ */
+function toVdom(root) {
+ const treeWalker = document.createTreeWalker(root, 205 // TEXT + CDATA_SECTION + COMMENT + PROCESSING_INSTRUCTION + ELEMENT
+ );
+ function walk(node) {
+ const {
+ nodeType
+ } = node;
+
+ // TEXT_NODE (3)
+ if (nodeType === 3) {
+ return [node.data];
+ }
+
+ // CDATA_SECTION_NODE (4)
+ if (nodeType === 4) {
+ var _nodeValue;
+ const next = treeWalker.nextSibling();
+ node.replaceWith(new window.Text((_nodeValue = node.nodeValue) !== null && _nodeValue !== void 0 ? _nodeValue : ''));
+ return [node.nodeValue, next];
+ }
+
+ // COMMENT_NODE (8) || PROCESSING_INSTRUCTION_NODE (7)
+ if (nodeType === 8 || nodeType === 7) {
+ const next = treeWalker.nextSibling();
+ node.remove();
+ return [null, next];
+ }
+ const elementNode = node;
+ const {
+ attributes
+ } = elementNode;
+ const localName = elementNode.localName;
+ const props = {};
+ const children = [];
+ const directives = [];
+ let ignore = false;
+ let island = false;
+ for (let i = 0; i < attributes.length; i++) {
+ const attributeName = attributes[i].name;
+ const attributeValue = attributes[i].value;
+ if (attributeName[fullPrefix.length] && attributeName.slice(0, fullPrefix.length) === fullPrefix) {
+ if (attributeName === ignoreAttr) {
+ ignore = true;
+ } else {
+ var _regexResult$, _regexResult$2;
+ const regexResult = nsPathRegExp.exec(attributeValue);
+ const namespace = (_regexResult$ = regexResult?.[1]) !== null && _regexResult$ !== void 0 ? _regexResult$ : null;
+ let value = (_regexResult$2 = regexResult?.[2]) !== null && _regexResult$2 !== void 0 ? _regexResult$2 : attributeValue;
+ try {
+ const parsedValue = JSON.parse(value, jsonReviver);
+ value = isObject(parsedValue) ? parsedValue : value;
+ } catch {}
+ if (attributeName === islandAttr) {
+ island = true;
+ const islandNamespace =
+ // eslint-disable-next-line no-nested-ternary
+ typeof value === 'string' ? value : typeof value?.namespace === 'string' ? value.namespace : null;
+ namespaces.push(isReservedKey(islandNamespace) ? null : islandNamespace);
+ } else if (isReservedKey(namespace)) {
+ if (true) {
+ warn(`Found reserved namespace "${namespace}" in directive: ${attributeName}.`);
+ }
+ } else {
+ directives.push([attributeName, namespace, value]);
+ }
+ }
+ } else if (attributeName === 'ref') {
+ continue;
+ }
+ props[attributeName] = attributeValue;
+ }
+ if (ignore && !island) {
+ // Keyed by directive names, so it has no prototype.
+ const ignoreDirectives = Object.assign(Object.create(null), {
+ ignore: true
+ });
+ directiveMaps.add(ignoreDirectives);
+ return [(0,preact_module.h)(localName, {
+ ...props,
+ innerHTML: elementNode.innerHTML,
+ __directives: ignoreDirectives
+ })];
+ }
+ if (island) {
+ hydratedIslands.add(elementNode);
+ }
+ if (directives.length) {
+ // Keyed by directive names from the markup, so it has no prototype.
+ props.__directives = directives.reduce((obj, [name, ns, value]) => {
+ const directiveMatch = directiveParser.exec(name);
+ const prefix = directiveMatch?.[1] || '';
+ const suffix = directiveMatch?.[2] || null;
+ if (directiveMatch === null || isReservedNamePart(prefix) || suffix !== null && suffix.split('--').some(isReservedNamePart)) {
+ warn(`Found malformed directive name: ${name}.`);
+ return obj;
+ }
+ obj[prefix] = obj[prefix] || [];
+ obj[prefix].push({
+ namespace: ns !== null && ns !== void 0 ? ns : currentNamespace(),
+ value: value,
+ suffix
+ });
+ return obj;
+ }, Object.create(null));
+ directiveMaps.add(props.__directives);
+ }
+ if (localName === 'template') {
+ props.content = [...elementNode.content.childNodes].map(childNode => toVdom(childNode));
+ } else {
+ let child = treeWalker.firstChild();
+ if (child) {
+ while (child) {
+ const [vnode, nextChild] = walk(child);
+ if (vnode) {
+ children.push(vnode);
+ }
+ child = nextChild || treeWalker.nextSibling();
+ }
+ treeWalker.parentNode();
+ }
+ }
+
+ // Restore previous namespace.
+ if (island) {
+ namespaces.pop();
+ }
+ return [(0,preact_module.h)(localName, props, children)];
+ }
+ return walk(treeWalker.currentNode);
+}
+
;// ./node_modules/@wordpress/interactivity/build-module/hooks.js
// eslint-disable-next-line eslint-comments/disable-enable-pair
/* eslint-disable react-hooks/exhaustive-deps */
@@ -1470,6 +1709,8 @@
+
+
function isNonDefaultDirectiveSuffix(entry) {
return entry.suffix !== null;
}
@@ -1483,8 +1724,9 @@
});
// WordPress Directives.
-const directiveCallbacks = {};
-const directivePriorities = {};
+// Looked up by directive names from the markup, so they have no prototype.
+const directiveCallbacks = Object.create(null);
+const directivePriorities = Object.create(null);
/**
* Register a new directive type in the Interactivity API runtime.
@@ -1565,12 +1807,43 @@
directivePriorities[name] = priority;
};
+/*
+ * Checks whether `value`, read as `parent[ key ]`, is a method that `parent`
+ * inherits, such as `Array.prototype.push`. Store proxies return wrapped
+ * functions, so for a registered proxy the check reads its target.
+ */
+const isInheritedMethod = (parent, key, value) => {
+ if (typeof value !== 'function' || parent === null || parent === undefined) {
+ return false;
+ }
+ const obj = Object(parent);
+ const target = getObjectFromProxy(obj);
+ if (target && Object.prototype.hasOwnProperty.call(target, key)) {
+ return false;
+ }
+ for (let proto = Object.getPrototypeOf(target !== null && target !== void 0 ? target : obj); proto !== null; proto = Object.getPrototypeOf(proto)) {
+ const descriptor = Object.getOwnPropertyDescriptor(proto, key);
+ if (descriptor) {
+ return target ? typeof descriptor.value === 'function' : descriptor.value === value;
+ }
+ }
+ return false;
+};
+
// Resolve the path to some property of the store object.
const resolve = (path, namespace) => {
if (!namespace) {
warn(`Namespace missing for "${path}". The value for that path won't be resolved.`);
return;
}
+ const pathParts = path.split('.');
+ // Paths and namespaces come from the markup.
+ if (isReservedKey(namespace) || pathParts.some(isReservedKey)) {
+ if (true) {
+ warn(`The path "${path}" in the "${namespace}" namespace contains a reserved property name. The value for that path won't be resolved.`);
+ }
+ return;
+ }
let resolvedStore = stores.get(namespace);
if (typeof resolvedStore === 'undefined') {
resolvedStore = store(namespace, {}, {
@@ -1579,11 +1852,23 @@
}
const current = {
...resolvedStore,
- context: getScope().context[namespace]
+ context: getOwnProperty(getScope().context, namespace)
};
try {
// TODO: Support lazy/dynamically initialized stores
- return path.split('.').reduce((acc, key) => acc[key], current);
+ let parent;
+ let value = current;
+ for (const key of pathParts) {
+ parent = value;
+ value = value[key];
+ }
+ if (isInheritedMethod(parent, pathParts[pathParts.length - 1], value)) {
+ if (true) {
+ warn(`The path "${path}" in the "${namespace}" namespace ends in an inherited method. The value for that path won't be resolved.`);
+ }
+ return;
+ }
+ return value;
} catch (e) {}
};
@@ -1707,6 +1992,11 @@
// Preact Options Hook called each time a vnode is created.
const old = preact_module/* options */.fF.vnode;
preact_module/* options */.fF.vnode = vnode => {
+ // Only maps built by `toVdom()` passed its directive name checks. Delete any
+ // other `__directives` value so Preact doesn't set it on the element.
+ if (vnode.props.__directives && !isDirectiveMap(vnode.props.__directives)) {
+ delete vnode.props.__directives;
+ }
if (vnode.props.__directives) {
const props = vnode.props;
const directives = props.__directives;
@@ -1732,6 +2022,91 @@
}
};
+;// ./node_modules/@wordpress/interactivity/build-module/url.js
+/**
+ * Attributes whose value is a URL, and which therefore have to be checked
+ * before they are bound. Some of them, like `href` on an anchor or `action` on
+ * a form, execute a `javascript:` URL when the element is activated.
+ *
+ * This list mirrors wp_kses_uri_attributes() in PHP. It also includes some names
+ * that cannot be bound today, as hardening against future changes.
+ */
+const urlAttributes = new Set(['action', 'archive', 'background', 'cite', 'classid', 'codebase', 'data', 'formaction', 'href', 'icon', 'longdesc', 'manifest', 'poster', 'profile', 'src', 'usemap', 'xlink:href', 'xlinkhref', 'xmlns']);
+
+/**
+ * Matches a string whose URL scheme is `javascript`.
+ *
+ * @see https://url.spec.whatwg.org/#concept-basic-url-parser
+ *
+ * - Remove any leading and trailing C0 control or space from input.
+ * - Remove all ASCII tab or newline from input.
+ *
+ * Then check for a `javascript:` scheme.
+ *
+ * This check is inspired by React DOM's `sanitizeURL` function.
+ *
+ * @see https://github.com/react/react/blob/07dde64da1abd1525120b9ae49672386486e33c3/packages/react-dom-bindings/src/shared/sanitizeURL.js
+ */
+const isJavaScriptProtocol = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i;
+
+/**
+ * Gets the value to bind to a URL attribute.
+ *
+ * Null, undefined and booleans are returned as they are. Any other value is
+ * converted to a string once, and that string is both checked and returned, so
+ * the URL that is checked is the URL that is bound.
+ *
+ * @param value Value to bind.
+ * @return The value to bind, or null if it is a `javascript:` URL or cannot be
+ * converted to a string.
+ */
+function getSafeUrl(value) {
+ if (value === null || value === undefined || typeof value === 'boolean') {
+ return value;
+ }
+ try {
+ const url = String(value);
+ return isJavaScriptProtocol.test(url) ? null : url;
+ } catch {
+ return null;
+ }
+}
+
+;// ./node_modules/@wordpress/interactivity/build-module/restricted-bindings.js
+/**
+ * Attributes that can be bound on an `object` element, besides `aria-*`
+ * attributes and `data-*` attributes other than directives.
+ *
+ * WordPress only allows an `object` element in post content when it has
+ * checked the values of its `data` and `type` attributes, which the runtime
+ * cannot repeat. Binding is therefore limited to attributes that cannot change
+ * what the element loads: `width`, `height`, and the global attributes KSES
+ * allows on any element, except that every `aria-*` attribute is allowed where
+ * KSES lists only some. A `data-wp-*` attribute is refused because it is a
+ * directive, which could bind `data` or `type` once rendered.
+ *
+ * The server enforces the same set when it processes directives, in
+ * `WP_Interactivity_API::data_wp_bind_processor()`, so both refuse the same
+ * bindings.
+ */
+const objectAttributes = new Set(['class', 'dir', 'height', 'hidden', 'id', 'lang', 'role', 'style', 'tabindex', 'title', 'width']);
+
+/**
+ * Checks whether an attribute can be bound on an element. Only `object`
+ * elements limit their bindings.
+ *
+ * @param type Element type, as in the vDOM.
+ * @param attribute Name of the bound attribute.
+ * @return Whether the attribute can be bound.
+ */
+const isBindingAllowed = (type, attribute) => {
+ if (typeof type !== 'string' || type.toLowerCase() !== 'object') {
+ return true;
+ }
+ const name = attribute.toLowerCase();
+ return objectAttributes.has(name) || name.startsWith('aria-') || name.startsWith('data-') && !name.startsWith('data-wp-');
+};
+
;// ./node_modules/@wordpress/interactivity/build-module/directives.js
// eslint-disable-next-line eslint-comments/disable-enable-pair
/* eslint-disable react-hooks/exhaustive-deps */
@@ -1750,6 +2125,8 @@
+
+
/**
* Recursively clone the passed object.
*
@@ -1766,6 +2143,23 @@
return source;
}
+// Lowercase names of internal properties that are not binding candidates.
+const internalProps = new Set(['__directives', 'children', 'dangerouslysetinnerhtml']);
+
+// Warns that event handler attributes cannot be bound.
+const warnEventHandlerBindNotSupported = attribute => {
+ if (true) {
+ warn(`Binding event handler attributes is not supported. Please use "data-wp-on--${attribute.slice(2)}" instead.`);
+ }
+};
+
+// Warns that the data-wp-bind directive doesn't set a given prop.
+const warnUnbindableProp = suffix => {
+ if (true) {
+ warn(`The data-wp-bind directive can't set the "${suffix}" prop. Ignoring data-wp-bind--${suffix}.`);
+ }
+};
+
/**
* Wraps event object to warn about access of synchronous properties and methods.
*
@@ -1811,28 +2205,70 @@
const empty = ' ';
/**
- * Convert a css style string into a object.
+ * Converts a CSS declaration list, like the value of a `style` attribute, into
+ * an object that maps each property to its value.
+ *
+ * Only top-level `property: value;` declarations are read. Nested blocks are
+ * skipped, because a `style` attribute can't contain them. The returned object
+ * doesn't inherit from `Object.prototype`, so a property name can't reach an
+ * inherited value.
*
- * Made by Cristian Bote (@cristianbote) for Goober.
+ * Based on the parser by Cristian Bote (@cristianbote) for Goober.
* https://unpkg.com/browse/goober@2.1.13/src/core/astish.js
*
* @param val CSS string.
* @return CSS object.
*/
const cssStringToObject = val => {
- const tree = [{}];
- let block, left;
- while (block = newRule.exec(val.replace(ruleClean, ''))) {
- if (block[4]) {
- tree.shift();
- } else if (block[3]) {
- left = block[3].replace(ruleNewline, empty).trim();
- tree.unshift(tree[0][left] = tree[0][left] || {});
- } else {
- tree[0][block[1]] = block[2].replace(ruleNewline, empty).trim();
+ const result = Object.create(null);
+ const css = val.replace(ruleClean, '');
+ let depth = 0;
+ let block;
+ newRule.lastIndex = 0;
+ while (block = newRule.exec(css)) {
+ if (block[4] !== undefined) {
+ // End of a block.
+ depth = Math.max(0, depth - 1);
+ } else if (block[3] !== undefined) {
+ // Start of a nested block. Its content is skipped.
+ depth++;
+ } else if (depth === 0) {
+ result[block[1]] = block[2].replace(ruleNewline, empty).trim();
+ }
+ }
+ return result;
+};
+
+/**
+ * Checks whether a value is an object that inherits from `Object.prototype` or
+ * has no prototype.
+ *
+ * @param value The value to check.
+ * @return Whether the value is such an object.
+ */
+const isStyleObject = value => {
+ if (typeof value !== 'object' || value === null) {
+ return false;
+ }
+ const prototype = Object.getPrototypeOf(value);
+ return prototype === Object.prototype || prototype === null;
+};
+
+/**
+ * Copies the own enumerable data properties of an object into an object
+ * without a prototype. Accessor properties are skipped, so no getter runs.
+ *
+ * @param object The object to copy.
+ * @return The copy.
+ */
+const copyDataProperties = object => {
+ const copy = Object.create(null);
+ for (const [key, desc] of Object.entries(Object.getOwnPropertyDescriptors(object))) {
+ if (desc.enumerable && 'value' in desc) {
+ copy[key] = desc.value;
}
}
- return tree[0];
+ return copy;
};
/**
@@ -1942,8 +2378,8 @@
}
deepMerge(client.current, deepClone(value), false);
deepMerge(server.current, deepClone(value));
- result.client[namespace] = proxifyContext(client.current, inheritedClient[namespace]);
- result.server[namespace] = proxifyContext(server.current, inheritedServer[namespace]);
+ result.client[namespace] = proxifyContext(client.current, getOwnProperty(inheritedClient, namespace));
+ result.server[namespace] = proxifyContext(server.current, getOwnProperty(inheritedServer, namespace));
}
return result;
}, [defaultEntry, inheritedClient, inheritedServer]);
@@ -2092,7 +2528,8 @@
if (typeof result === 'function') {
result = result();
}
- const currentClass = element.props.class || '';
+ // `data-wp-bind--class` can set a value that isn't a string.
+ const currentClass = typeof element.props.class === 'string' ? element.props.class : '';
const classFinder = new RegExp(`(^|\\s)${className}(\\s|$)`, 'g');
if (!result) {
element.props.class = currentClass.replace(classFinder, ' ').trim();
@@ -2128,9 +2565,14 @@
if (typeof result === 'function') {
result = result();
}
- element.props.style = element.props.style || {};
if (typeof element.props.style === 'string') {
element.props.style = cssStringToObject(element.props.style);
+ } else if (isStyleObject(element.props.style)) {
+ // Only write into a style object that `data-wp-style` created.
+ element.props.style = copyDataProperties(element.props.style);
+ } else {
+ // `data-wp-bind--style` can set a value that isn't a style.
+ element.props.style = Object.create(null);
}
if (!result) {
delete element.props.style[styleProp];
@@ -2162,10 +2604,56 @@
}) => {
bind.filter(isNonDefaultDirectiveSuffix).forEach(entry => {
const attribute = entry.suffix;
+ const name = attribute.toLowerCase();
+ if (internalProps.has(name) ||
+ // `toVdom()` stores a ``'s markup in its `content` prop.
+ name === 'content' && element.type === 'template' || isReservedKey(attribute)) {
+ if (true) {
+ warnUnbindableProp(attribute);
+ }
+ return;
+ }
+
+ // Binding event handler attributes is not supported. Use the
+ // `data-wp-on` directive instead.
+ if (/^on/i.test(attribute)) {
+ if (true) {
+ warnEventHandlerBindNotSupported(attribute);
+ }
+ return;
+ }
+
+ /*
+ * A binding that is not allowed leaves the attribute as it was rendered,
+ * both during hydration and on elements created on the client.
+ */
+ if (!isBindingAllowed(element.type, attribute)) {
+ if (true) {
+ warn(`The "${attribute}" attribute cannot be bound on an "object" element. The directive data-wp-bind--${attribute} was ignored.`);
+ }
+ return;
+ }
+ if (attribute === 'protocol' && (element.type === 'a' || element.type === 'area')) {
+ /*
+ * The server renders the attribute, so it is removed from the props
+ * too. Otherwise Preact sets it when the router updates the element.
+ */
+ delete element.props[attribute];
+ return;
+ }
let result = evaluate(entry);
if (typeof result === 'function') {
result = result();
}
+
+ /*
+ * URLs are checked before the value reaches the props, because Preact
+ * writes the attribute itself on every render after the hydration, and
+ * on elements mounted on the client.
+ */
+ if (urlAttributes.has(attribute.toLowerCase())) {
+ result = getSafeUrl(result);
+ }
element.props[attribute] = result;
/*
@@ -2310,7 +2798,7 @@
const itemProp = isNonDefaultDirectiveSuffix(entry) ? kebabToCamelCase(entry.suffix) : 'item';
const result = [];
for (const item of iterable) {
- const itemContext = proxifyContext(proxifyState(namespace, {}), inheritedValue.client[namespace]);
+ const itemContext = proxifyContext(proxifyState(namespace, {}), getOwnProperty(inheritedValue.client, namespace));
const mergedContext = {
client: {
...inheritedValue.client,
@@ -2345,177 +2833,6 @@
});
});
-;// ./node_modules/@wordpress/interactivity/build-module/constants.js
-const directivePrefix = 'wp';
-
-;// ./node_modules/@wordpress/interactivity/build-module/vdom.js
-/**
- * External dependencies
- */
-
-/**
- * Internal dependencies
- */
-
-
-const ignoreAttr = `data-${directivePrefix}-ignore`;
-const islandAttr = `data-${directivePrefix}-interactive`;
-const fullPrefix = `data-${directivePrefix}-`;
-const namespaces = [];
-const currentNamespace = () => {
- var _namespaces;
- return (_namespaces = namespaces[namespaces.length - 1]) !== null && _namespaces !== void 0 ? _namespaces : null;
-};
-const isObject = item => Boolean(item && typeof item === 'object' && item.constructor === Object);
-
-// Regular expression for directive parsing.
-const directiveParser = new RegExp(`^data-${directivePrefix}-` +
-// ${p} must be a prefix string, like 'wp'.
-// Match alphanumeric characters including hyphen-separated
-// segments. It excludes underscore intentionally to prevent confusion.
-// E.g., "custom-directive".
-'([a-z0-9]+(?:-[a-z0-9]+)*)' +
-// (Optional) Match '--' followed by any alphanumeric characters. It
-// excludes underscore intentionally to prevent confusion, but it can
-// contain multiple hyphens. E.g., "--custom-prefix--with-more-info".
-'(?:--([a-z0-9_-]+))?$', 'i' // Case insensitive.
-);
-
-// Regular expression for reference parsing. It can contain a namespace before
-// the reference, separated by `::`, like `some-namespace::state.somePath`.
-// Namespaces can contain any alphanumeric characters, hyphens, underscores or
-// forward slashes. References don't have any restrictions.
-const nsPathRegExp = /^([\w_\/-]+)::(.+)$/;
-const hydratedIslands = new WeakSet();
-
-/**
- * Recursive function that transforms a DOM tree into vDOM.
- *
- * @param root The root element or node to start traversing on.
- * @return The resulting vDOM tree.
- */
-function toVdom(root) {
- const treeWalker = document.createTreeWalker(root, 205 // TEXT + CDATA_SECTION + COMMENT + PROCESSING_INSTRUCTION + ELEMENT
- );
- function walk(node) {
- const {
- nodeType
- } = node;
-
- // TEXT_NODE (3)
- if (nodeType === 3) {
- return [node.data];
- }
-
- // CDATA_SECTION_NODE (4)
- if (nodeType === 4) {
- var _nodeValue;
- const next = treeWalker.nextSibling();
- node.replaceWith(new window.Text((_nodeValue = node.nodeValue) !== null && _nodeValue !== void 0 ? _nodeValue : ''));
- return [node.nodeValue, next];
- }
-
- // COMMENT_NODE (8) || PROCESSING_INSTRUCTION_NODE (7)
- if (nodeType === 8 || nodeType === 7) {
- const next = treeWalker.nextSibling();
- node.remove();
- return [null, next];
- }
- const elementNode = node;
- const {
- attributes
- } = elementNode;
- const localName = elementNode.localName;
- const props = {};
- const children = [];
- const directives = [];
- let ignore = false;
- let island = false;
- for (let i = 0; i < attributes.length; i++) {
- const attributeName = attributes[i].name;
- const attributeValue = attributes[i].value;
- if (attributeName[fullPrefix.length] && attributeName.slice(0, fullPrefix.length) === fullPrefix) {
- if (attributeName === ignoreAttr) {
- ignore = true;
- } else {
- var _regexResult$, _regexResult$2;
- const regexResult = nsPathRegExp.exec(attributeValue);
- const namespace = (_regexResult$ = regexResult?.[1]) !== null && _regexResult$ !== void 0 ? _regexResult$ : null;
- let value = (_regexResult$2 = regexResult?.[2]) !== null && _regexResult$2 !== void 0 ? _regexResult$2 : attributeValue;
- try {
- const parsedValue = JSON.parse(value);
- value = isObject(parsedValue) ? parsedValue : value;
- } catch {}
- if (attributeName === islandAttr) {
- island = true;
- const islandNamespace =
- // eslint-disable-next-line no-nested-ternary
- typeof value === 'string' ? value : typeof value?.namespace === 'string' ? value.namespace : null;
- namespaces.push(islandNamespace);
- } else {
- directives.push([attributeName, namespace, value]);
- }
- }
- } else if (attributeName === 'ref') {
- continue;
- }
- props[attributeName] = attributeValue;
- }
- if (ignore && !island) {
- return [(0,preact_module.h)(localName, {
- ...props,
- innerHTML: elementNode.innerHTML,
- __directives: {
- ignore: true
- }
- })];
- }
- if (island) {
- hydratedIslands.add(elementNode);
- }
- if (directives.length) {
- props.__directives = directives.reduce((obj, [name, ns, value]) => {
- const directiveMatch = directiveParser.exec(name);
- if (directiveMatch === null) {
- warn(`Found malformed directive name: ${name}.`);
- return obj;
- }
- const prefix = directiveMatch[1] || '';
- const suffix = directiveMatch[2] || null;
- obj[prefix] = obj[prefix] || [];
- obj[prefix].push({
- namespace: ns !== null && ns !== void 0 ? ns : currentNamespace(),
- value: value,
- suffix
- });
- return obj;
- }, {});
- }
- if (localName === 'template') {
- props.content = [...elementNode.content.childNodes].map(childNode => toVdom(childNode));
- } else {
- let child = treeWalker.firstChild();
- if (child) {
- while (child) {
- const [vnode, nextChild] = walk(child);
- if (vnode) {
- children.push(vnode);
- }
- child = nextChild || treeWalker.nextSibling();
- }
- treeWalker.parentNode();
- }
- }
-
- // Restore previous namespace.
- if (island) {
- namespaces.pop();
- }
- return [(0,preact_module.h)(localName, props, children)];
- }
- return walk(treeWalker.currentNode);
-}
-
;// ./node_modules/@wordpress/interactivity/build-module/init.js
/**
* External dependencies
diff -Nru wordpress-6.8.10+dfsg1/wp-includes/js/dist/script-modules/interactivity/index.min.js wordpress-6.8.12+dfsg1/wp-includes/js/dist/script-modules/interactivity/index.min.js
--- wordpress-6.8.10+dfsg1/wp-includes/js/dist/script-modules/interactivity/index.min.js 2025-03-03 18:08:42.211884000 +0000
+++ wordpress-6.8.12+dfsg1/wp-includes/js/dist/script-modules/interactivity/index.min.js 2026-10-28 15:49:05.061274000 +0000
@@ -1 +1 @@
-var t={622:(t,e,n)=>{n.d(e,{Ob:()=>q,Qv:()=>z,XX:()=>B,fF:()=>o,h:()=>S,q6:()=>J,uA:()=>E,zO:()=>s});var r,o,i,s,u,c,l,_,a,f,p,h,v,d={},y=[],g=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,m=Array.isArray;function w(t,e){for(var n in e)t[n]=e[n];return t}function b(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function S(t,e,n){var o,i,s,u={};for(s in e)"key"==s?o=e[s]:"ref"==s?i=e[s]:u[s]=e[s];if(arguments.length>2&&(u.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(s in t.defaultProps)void 0===u[s]&&(u[s]=t.defaultProps[s]);return x(t,u,o,i,null)}function x(t,e,n,r,s){var u={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==s?++i:s,__i:-1,__u:0};return null==s&&null!=o.vnode&&o.vnode(u),u}function k(t){return t.children}function E(t,e){this.props=t,this.context=e}function P(t,e){if(null==e)return t.__?P(t.__,t.__i+1):null;for(var n;el&&u.sort(_),t=u.shift(),l=u.length,t.__d&&(n=void 0,i=(r=(e=t).__v).__e,s=[],c=[],e.__P&&((n=w({},r)).__v=r.__v+1,o.vnode&&o.vnode(n),F(e.__P,n,r,e.__n,e.__P.namespaceURI,32&r.__u?[i]:null,s,null==i?P(r):i,!!(32&r.__u),c),n.__v=r.__v,n.__.__k[n.__i]=n,A(s,n,c),n.__e!=i&&C(n)));$.__r=0}function T(t,e,n,r,o,i,s,u,c,l,_){var a,f,p,h,v,g,m=r&&r.__k||y,w=e.length;for(c=M(n,e,m,c,w),a=0;a0?x(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=t,s.__b=t.__b+1,u=null,-1!==(l=s.__i=j(s,n,c,a))&&(a--,(u=n[l])&&(u.__u|=2)),null==u||null===u.__v?(-1==l&&(o>_?f--:o<_&&f++),"function"!=typeof s.type&&(s.__u|=4)):l!=c&&(l==c-1?f--:l==c+1?f++:(l>c?f--:f++,s.__u|=4))):t.__k[i]=null;if(a)for(i=0;i<_;i++)null!=(u=n[i])&&!(2&u.__u)&&(u.__e==r&&(r=P(u)),I(u,u));return r}function N(t,e,n){var r,o;if("function"==typeof t.type){for(r=t.__k,o=0;r&&o(null==c||2&c.__u?0:1))for(o=n-1,i=n+1;o>=0||i=0){if((c=e[o])&&!(2&c.__u)&&s==c.key&&u===c.type)return o;o--}if(i2&&(c.children=arguments.length>3?r.call(arguments,2):n),x(t.type,c,o||t.key,i||t.ref,null)}function J(t){function e(t){var n,r;return this.getChildContext||(n=new Set,(r={})[e.__c]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&n.forEach((function(t){t.__e=!0,O(t)}))},this.sub=function(t){n.add(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){n&&n.delete(t),e&&e.call(t)}}),t.children}return e.__c="__cC"+v++,e.__=t,e.Provider=e.__l=(e.Consumer=function(t,e){return t.children(e)}).contextType=e,e}r=y.slice,o={__e:function(t,e,n,r){for(var o,i,s;e=e.__;)if((o=e.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(t)),s=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(t,r||{}),s=o.__d),s)return o.__E=o}catch(e){t=e}throw t}},i=0,s=function(t){return null!=t&&null==t.constructor},E.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=w({},this.state),"function"==typeof t&&(t=t(w({},n),this.props)),t&&w(n,t),null!=t&&this.__v&&(e&&this._sb.push(e),O(this))},E.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),O(this))},E.prototype.render=k,u=[],l="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,_=function(t,e){return t.__v.__b-e.__v.__b},$.__r=0,a=/(PointerCapture)$|Capture$/i,f=0,p=W(!1),h=W(!0),v=0}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var r={};n.d(r,{zj:()=>he,SD:()=>yt,V6:()=>gt,$K:()=>mt,vT:()=>ve,jb:()=>Ge,yT:()=>bt,M_:()=>ye,hb:()=>Ot,vJ:()=>Pt,ip:()=>Et,Nf:()=>Ct,Kr:()=>$t,li:()=>S,J0:()=>m,FH:()=>kt,v4:()=>xt,mh:()=>Nt});var o,i,s,u,c=n(622),l=0,_=[],a=c.fF,f=a.__b,p=a.__r,h=a.diffed,v=a.__c,d=a.unmount,y=a.__;function g(t,e){a.__h&&a.__h(i,t,l||e),l=0;var n=i.__H||(i.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({}),n.__[t]}function m(t){return l=1,function(t,e,n){var r=g(o++,2);if(r.t=t,!r.__c&&(r.__=[n?n(e):N(void 0,e),function(t){var e=r.__N?r.__N[0]:r.__[0],n=r.t(e,t);e!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=i,!i.__f)){var s=function(t,e,n){if(!r.__c.__H)return!0;var o=r.__c.__H.__.filter((function(t){return!!t.__c}));if(o.every((function(t){return!t.__N})))return!u||u.call(this,t,e,n);var i=r.__c.props!==t;return o.forEach((function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(i=!0)}})),u&&u.call(this,t,e,n)||i};i.__f=!0;var u=i.shouldComponentUpdate,c=i.componentWillUpdate;i.componentWillUpdate=function(t,e,n){if(this.__e){var r=u;u=void 0,s(t,e,n),u=r}c&&c.call(this,t,e,n)},i.shouldComponentUpdate=s}return r.__N||r.__}(N,t)}function w(t,e){var n=g(o++,3);!a.__s&&M(n.__H,e)&&(n.__=t,n.u=e,i.__H.__h.push(n))}function b(t,e){var n=g(o++,4);!a.__s&&M(n.__H,e)&&(n.__=t,n.u=e,i.__h.push(n))}function S(t){return l=5,x((function(){return{current:t}}),[])}function x(t,e){var n=g(o++,7);return M(n.__H,e)&&(n.__=t(),n.__H=e,n.__h=t),n.__}function k(t,e){return l=8,x((function(){return t}),e)}function E(t){var e=i.context[t.__c],n=g(o++,9);return n.c=t,e?(null==n.__&&(n.__=!0,e.sub(i)),e.props.value):t.__}function P(){for(var t;t=_.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach($),t.__H.__h.forEach(T),t.__H.__h=[]}catch(e){t.__H.__h=[],a.__e(e,t.__v)}}a.__b=function(t){i=null,f&&f(t)},a.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),y&&y(t,e)},a.__r=function(t){p&&p(t),o=0;var e=(i=t.__c).__H;e&&(s===i?(e.__h=[],i.__h=[],e.__.forEach((function(t){t.__N&&(t.__=t.__N),t.u=t.__N=void 0}))):(e.__h.forEach($),e.__h.forEach(T),e.__h=[],o=0)),s=i},a.diffed=function(t){h&&h(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==_.push(e)&&u===a.requestAnimationFrame||((u=a.requestAnimationFrame)||O)(P)),e.__H.__.forEach((function(t){t.u&&(t.__H=t.u),t.u=void 0}))),s=i=null},a.__c=function(t,e){e.some((function(t){try{t.__h.forEach($),t.__h=t.__h.filter((function(t){return!t.__||T(t)}))}catch(n){e.some((function(t){t.__h&&(t.__h=[])})),e=[],a.__e(n,t.__v)}})),v&&v(t,e)},a.unmount=function(t){d&&d(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach((function(t){try{$(t)}catch(t){e=t}})),n.__H=void 0,e&&a.__e(e,n.__v))};var C="function"==typeof requestAnimationFrame;function O(t){var e,n=function(){clearTimeout(r),C&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);C&&(e=requestAnimationFrame(n))}function $(t){var e=i,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),i=e}function T(t){var e=i;t.__c=t.__(),i=e}function M(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function N(t,e){return"function"==typeof e?e(t):e}var j=Symbol.for("preact-signals");function H(){if(L>1)L--;else{for(var t,e=!1;void 0!==A;){var n=A;for(A=void 0,D++;void 0!==n;){var r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&z(n))try{n.c()}catch(n){e||(t=n,e=!0)}n=r}}if(D=0,L--,e)throw t}}function U(t){if(L>0)return t();L++;try{return t()}finally{H()}}var W=void 0;var F,A=void 0,L=0,D=0,R=0;function I(t){if(void 0!==W){var e=t.n;if(void 0===e||e.t!==W)return e={i:0,S:t,p:W.s,n:void 0,t:W,e:void 0,x:void 0,r:e},void 0!==W.s&&(W.s.n=e),W.s=e,t.n=e,32&W.f&&t.S(e),e;if(-1===e.i)return e.i=0,void 0!==e.n&&(e.n.p=e.p,void 0!==e.p&&(e.p.n=e.n),e.p=W.s,e.n=void 0,W.s.n=e,W.s=e),e}}function V(t){this.v=t,this.i=0,this.n=void 0,this.t=void 0}function B(t){return new V(t)}function z(t){for(var e=t.s;void 0!==e;e=e.n)if(e.S.i!==e.i||!e.S.h()||e.S.i!==e.i)return!0;return!1}function q(t){for(var e=t.s;void 0!==e;e=e.n){var n=e.S.n;if(void 0!==n&&(e.r=n),e.S.n=e,e.i=-1,void 0===e.n){t.s=e;break}}}function J(t){for(var e=t.s,n=void 0;void 0!==e;){var r=e.p;-1===e.i?(e.S.U(e),void 0!==r&&(r.n=e.n),void 0!==e.n&&(e.n.p=r)):n=e,e.S.n=e.r,void 0!==e.r&&(e.r=void 0),e=r}t.s=n}function K(t){V.call(this,void 0),this.x=t,this.s=void 0,this.g=R-1,this.f=4}function G(t){return new K(t)}function X(t){var e=t.u;if(t.u=void 0,"function"==typeof e){L++;var n=W;W=void 0;try{e()}catch(e){throw t.f&=-2,t.f|=8,Q(t),e}finally{W=n,H()}}}function Q(t){for(var e=t.s;void 0!==e;e=e.n)e.S.U(e);t.x=void 0,t.s=void 0,X(t)}function Y(t){if(W!==this)throw new Error("Out-of-order effect");J(this),W=t,this.f&=-2,8&this.f&&Q(this),H()}function Z(t){this.x=t,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function tt(t){var e=new Z(t);try{e.c()}catch(t){throw e.d(),t}return e.d.bind(e)}function et(t,e){c.fF[t]=e.bind(null,c.fF[t]||function(){})}function nt(t){F&&F(),F=t&&t.S()}function rt(t){var e=this,n=t.data,r=function(t){return x((function(){return B(t)}),[])}(n);r.value=n;var o=x((function(){for(var t=e.__v;t=t.__;)if(t.__c){t.__c.__$f|=4;break}return e.__$u.c=function(){var t,n=e.__$u.S(),r=o.value;n(),(0,c.zO)(r)||3!==(null==(t=e.base)?void 0:t.nodeType)?(e.__$f|=1,e.setState({})):e.base.data=r},G((function(){var t=r.value.value;return 0===t?0:!0===t?"":t||""}))}),[]);return o.value}function ot(t,e,n,r){var o=e in t&&void 0===t.ownerSVGElement,i=B(n);return{o:function(t,e){i.value=t,r=e},d:tt((function(){var n=i.value.value;r[e]!==n&&(r[e]=n,o?t[e]=n:n?t.setAttribute(e,n):t.removeAttribute(e))}))}}V.prototype.brand=j,V.prototype.h=function(){return!0},V.prototype.S=function(t){this.t!==t&&void 0===t.e&&(t.x=this.t,void 0!==this.t&&(this.t.e=t),this.t=t)},V.prototype.U=function(t){if(void 0!==this.t){var e=t.e,n=t.x;void 0!==e&&(e.x=n,t.e=void 0),void 0!==n&&(n.e=e,t.x=void 0),t===this.t&&(this.t=n)}},V.prototype.subscribe=function(t){var e=this;return tt((function(){var n=e.value,r=W;W=void 0;try{t(n)}finally{W=r}}))},V.prototype.valueOf=function(){return this.value},V.prototype.toString=function(){return this.value+""},V.prototype.toJSON=function(){return this.value},V.prototype.peek=function(){var t=W;W=void 0;try{return this.value}finally{W=t}},Object.defineProperty(V.prototype,"value",{get:function(){var t=I(this);return void 0!==t&&(t.i=this.i),this.v},set:function(t){if(t!==this.v){if(D>100)throw new Error("Cycle detected");this.v=t,this.i++,R++,L++;try{for(var e=this.t;void 0!==e;e=e.x)e.t.N()}finally{H()}}}}),(K.prototype=new V).h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===R)return!0;if(this.g=R,this.f|=1,this.i>0&&!z(this))return this.f&=-2,!0;var t=W;try{q(this),W=this;var e=this.x();(16&this.f||this.v!==e||0===this.i)&&(this.v=e,this.f&=-17,this.i++)}catch(t){this.v=t,this.f|=16,this.i++}return W=t,J(this),this.f&=-2,!0},K.prototype.S=function(t){if(void 0===this.t){this.f|=36;for(var e=this.s;void 0!==e;e=e.n)e.S.S(e)}V.prototype.S.call(this,t)},K.prototype.U=function(t){if(void 0!==this.t&&(V.prototype.U.call(this,t),void 0===this.t)){this.f&=-33;for(var e=this.s;void 0!==e;e=e.n)e.S.U(e)}},K.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var t=this.t;void 0!==t;t=t.x)t.t.N()}},Object.defineProperty(K.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var t=I(this);if(this.h(),void 0!==t&&(t.i=this.i),16&this.f)throw this.v;return this.v}}),Z.prototype.c=function(){var t=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var e=this.x();"function"==typeof e&&(this.u=e)}finally{t()}},Z.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,X(this),q(this),L++;var t=W;return W=this,Y.bind(this,t)},Z.prototype.N=function(){2&this.f||(this.f|=2,this.o=A,A=this)},Z.prototype.d=function(){this.f|=8,1&this.f||Q(this)},rt.displayName="_st",Object.defineProperties(V.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:rt},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}}),et("__b",(function(t,e){if("string"==typeof e.type){var n,r=e.props;for(var o in r)if("children"!==o){var i=r[o];i instanceof V&&(n||(e.__np=n={}),n[o]=i,r[o]=i.peek())}}t(e)})),et("__r",(function(t,e){nt();var n,r=e.__c;r&&(r.__$f&=-2,void 0===(n=r.__$u)&&(r.__$u=n=function(){var t;return tt((function(){t=this})),t.c=function(){r.__$f|=1,r.setState({})},t}())),nt(n),t(e)})),et("__e",(function(t,e,n,r){nt(),t(e,n,r)})),et("diffed",(function(t,e){var n;if(nt(),"string"==typeof e.type&&(n=e.__e)){var r=e.__np,o=e.props;if(r){var i=n.U;if(i)for(var s in i){var u=i[s];void 0===u||s in r||(u.d(),i[s]=void 0)}else n.U=i={};for(var c in r){var l=i[c],_=r[c];void 0===l?(l=ot(n,c,_,o),i[c]=l):l.o(_,o)}}}t(e)})),et("unmount",(function(t,e){if("string"==typeof e.type){var n=e.__e;if(n){var r=n.U;if(r)for(var o in n.U=void 0,r){var i=r[o];i&&i.d()}}}else{var s=e.__c;if(s){var u=s.__$u;u&&(s.__$u=void 0,u.d())}}t(e)})),et("__h",(function(t,e,n,r){(r<3||9===r)&&(e.__$f|=2),t(e,n,r)})),c.uA.prototype.shouldComponentUpdate=function(t,e){var n=this.__$u,r=n&&void 0!==n.s;for(var o in e)return!0;if(this.__f||"boolean"==typeof this.u&&!0===this.u){if(!(r||2&this.__$f||4&this.__$f))return!0;if(1&this.__$f)return!0}else{if(!(r||4&this.__$f))return!0;if(3&this.__$f)return!0}for(var i in t)if("__source"!==i&&t[i]!==this.props[i])return!0;for(var s in this.props)if(!(s in t))return!0;return!1};const it=[],st=()=>it.slice(-1)[0],ut=t=>{it.push(t)},ct=()=>{it.pop()},lt=[],_t=()=>lt.slice(-1)[0],at=t=>{lt.push(t)},ft=()=>{lt.pop()},pt=new WeakMap,ht=()=>{throw new Error("Please use `data-wp-bind` to modify the attributes of an element.")},vt={get(t,e,n){const r=Reflect.get(t,e,n);return r&&"object"==typeof r?dt(r):r},set:ht,deleteProperty:ht},dt=t=>(pt.has(t)||pt.set(t,new Proxy(t,vt)),pt.get(t)),yt=t=>_t().context[t||st()],gt=()=>{const t=_t();const{ref:e,attributes:n}=t;return Object.freeze({ref:e.current,attributes:dt(n)})},mt=t=>_t().serverContext[t||st()],wt=t=>new Promise((e=>{const n=()=>{clearTimeout(r),window.cancelAnimationFrame(o),setTimeout((()=>{t(),e()}))},r=setTimeout(n,100),o=window.requestAnimationFrame(n)})),bt="function"==typeof window.scheduler?.yield?window.scheduler.yield.bind(window.scheduler):()=>new Promise((t=>{setTimeout(t,0)}));function St(t){w((()=>{let e=null,n=!1;return e=function(t,e){let n=()=>{};const r=tt((function(){return n=this.c.bind(this),this.x=t,this.c=e,t()}));return{flush:n,dispose:r}}(t,(async()=>{e&&!n&&(n=!0,await wt(e.flush),n=!1)})),e.dispose}),[])}function xt(t){const e=_t(),n=st();let r;r="GeneratorFunction"===t?.constructor?.name?async(...r)=>{const o=t(...r);let i,s;for(;;){ut(n),at(e);try{s=o.next(i)}finally{ft(),ct()}try{i=await s.value}catch(t){ut(n),at(e),o.throw(t)}finally{ft(),ct()}if(s.done)break}return i}:(...r)=>{ut(n),at(e);try{return t(...r)}finally{ct(),ft()}};if(t.sync){const t=r;return t.sync=!0,t}return r}function kt(t){St(xt(t))}function Et(t){w(xt(t),[])}function Pt(t,e){w(xt(t),e)}function Ct(t,e){b(xt(t),e)}function Ot(t,e){return k(xt(t),e)}function $t(t,e){return x(xt(t),e)}new Set;const Tt=t=>{0},Mt=t=>Boolean(t&&"object"==typeof t&&t.constructor===Object);function Nt(t){const e=t;return e.sync=!0,e}const jt=new WeakMap,Ht=new WeakMap,Ut=new WeakMap,Wt=new Set([Object,Array]),Ft=(t,e,n)=>{if(!Dt(e))throw Error("This object cannot be proxified.");if(!jt.has(e)){const r=new Proxy(e,n);jt.set(e,r),Ht.set(r,e),Ut.set(r,t)}return jt.get(e)},At=t=>jt.get(t),Lt=t=>Ut.get(t),Dt=t=>"object"==typeof t&&null!==t&&(!Ut.has(t)&&Wt.has(t.constructor)),Rt={};class It{constructor(t){this.owner=t,this.computedsByScope=new WeakMap}setValue(t){this.update({value:t})}setGetter(t){this.update({get:t})}getComputed(){const t=_t()||Rt;if(this.valueSignal||this.getterSignal||this.update({}),!this.computedsByScope.has(t)){const e=()=>{const t=this.getterSignal?.value;return t?t.call(this.owner):this.valueSignal?.value};ut(Lt(this.owner)),this.computedsByScope.set(t,G(xt(e))),ct()}return this.computedsByScope.get(t)}update({get:t,value:e}){this.valueSignal?e===this.valueSignal.peek()&&t===this.getterSignal.peek()||U((()=>{this.valueSignal.value=e,this.getterSignal.value=t})):(this.valueSignal=B(e),this.getterSignal=B(t))}}const Vt=new Set(Object.getOwnPropertyNames(Symbol).map((t=>Symbol[t])).filter((t=>"symbol"==typeof t))),Bt=new WeakMap,zt=(t,e)=>Bt.has(t)&&Bt.get(t).has(e),qt=new WeakSet,Jt=(t,e,n)=>{Bt.has(t)||Bt.set(t,new Map),e="number"==typeof e?`${e}`:e;const r=Bt.get(t);if(!r.has(e)){const o=Lt(t),i=new It(t);if(r.set(e,i),n){const{get:e,value:r}=n;if(e)i.setGetter(e);else{const e=qt.has(t);i.setValue(Dt(r)?Qt(o,r,{readOnly:e}):r)}}}return r.get(e)},Kt=new WeakMap;let Gt=!1;const Xt={get(t,e,n){if(Gt||!t.hasOwnProperty(e)&&e in t||"symbol"==typeof e&&Vt.has(e))return Reflect.get(t,e,n);const r=Object.getOwnPropertyDescriptor(t,e),o=Jt(n,e,r).getComputed().value;if("function"==typeof o){const t=Lt(n);return(...e)=>{ut(t);try{return o.call(n,...e)}finally{ct()}}}return o},set(t,e,n,r){if(qt.has(r))return!1;ut(Lt(r));try{return Reflect.set(t,e,n,r)}finally{ct()}},defineProperty(t,e,n){if(qt.has(At(t)))return!1;const r=!(e in t),o=Reflect.defineProperty(t,e,n);if(o){const o=At(t),i=Jt(o,e),{get:s,value:u}=n;if(s)i.setGetter(s);else{const t=Lt(o);i.setValue(Dt(u)?Qt(t,u):u)}if(r&&Kt.has(t)&&Kt.get(t).value++,Array.isArray(t)&&Bt.get(o)?.has("length")){Jt(o,"length").setValue(t.length)}}return o},deleteProperty(t,e){if(qt.has(At(t)))return!1;const n=Reflect.deleteProperty(t,e);if(n){Jt(At(t),e).setValue(void 0),Kt.has(t)&&Kt.get(t).value++}return n},ownKeys:t=>(Kt.has(t)||Kt.set(t,B(0)),Kt._=Kt.get(t).value,Reflect.ownKeys(t))},Qt=(t,e,n)=>{const r=Ft(t,e,Xt);return n?.readOnly&&qt.add(r),r},Yt=(t,e,n=!0)=>{if(!Mt(t)||!Mt(e))return;let r=!1;for(const o in e){const i=!(o in t);r=r||i;const s=Object.getOwnPropertyDescriptor(e,o),u=At(t),c=!!u&&zt(u,o)&&Jt(u,o);if("function"==typeof s.get||"function"==typeof s.set)(n||i)&&(Object.defineProperty(t,o,{...s,configurable:!0,enumerable:!0}),s.get&&c&&c.setGetter(s.get));else if(Mt(e[o])){const r=Object.getOwnPropertyDescriptor(t,o)?.value;if(i||n&&!Mt(r)){if(t[o]={},c){const e=Lt(u);c.setValue(Qt(e,t[o]))}Yt(t[o],e[o],n)}else Mt(r)&&Yt(t[o],e[o],n)}else if((n||i)&&(Object.defineProperty(t,o,s),c)){const{value:t}=s,e=Lt(u);c.setValue(Dt(t)?Qt(e,t):t)}}r&&Kt.has(t)&&Kt.get(t).value++},Zt=(t,e,n=!0)=>U((()=>{return Yt((r=t,Ht.get(r)||t),e,n);var r})),te=new WeakSet,ee={get:(t,e,n)=>{const r=Reflect.get(t,e),o=Lt(n);if(void 0===r&&te.has(n)){const n={};return Reflect.set(t,e,n),ne(o,n,!1)}if("function"==typeof r){ut(o);const t=xt(r);return ct(),t}return Mt(r)&&Dt(r)?ne(o,r,!1):r}},ne=(t,e,n=!0)=>{const r=Ft(t,e,ee);return r&&n&&te.add(r),r},re=new WeakMap,oe=new WeakMap,ie=new WeakSet,se=Reflect.getOwnPropertyDescriptor,ue={get:(t,e)=>{const n=oe.get(t),r=t[e];return e in t?r:n[e]},set:(t,e,n)=>{const r=oe.get(t);return(e in t||!(e in r)?t:r)[e]=n,!0},ownKeys:t=>[...new Set([...Object.keys(oe.get(t)),...Object.keys(t)])],getOwnPropertyDescriptor:(t,e)=>se(t,e)||se(oe.get(t),e),has:(t,e)=>Reflect.has(t,e)||Reflect.has(oe.get(t),e)},ce=(t,e={})=>{if(ie.has(t))throw Error("This object cannot be proxified.");if(oe.set(t,e),!re.has(t)){const e=new Proxy(t,ue);re.set(t,e),ie.add(e)}return re.get(t)},le=new Map,_e=new Map,ae=new Map,fe=new Map,pe=new Map,he=t=>fe.get(t||st())||{},ve=t=>{const e=t||st();return pe.has(e)||pe.set(e,Qt(e,{},{readOnly:!0})),pe.get(e)},de="I acknowledge that using a private store means my plugin will inevitably break on the next store release.";function ye(t,{state:e={},...n}={},{lock:r=!1}={}){if(le.has(t)){if(r===de||ae.has(t)){const e=ae.get(t);if(!(r===de||!0!==r&&r===e))throw e?Error("Cannot unlock a private store with an invalid lock code"):Error("Cannot lock a public store")}else ae.set(t,r);const o=_e.get(t);Zt(o,n),Zt(o.state,e)}else{r!==de&&ae.set(t,r);const o={state:Qt(t,Mt(e)?e:{}),...n},i=ne(t,o);_e.set(t,o),le.set(t,i)}return le.get(t)}const ge=(t=document)=>{var e;const n=null!==(e=t.getElementById("wp-script-module-data-@wordpress/interactivity"))&&void 0!==e?e:t.getElementById("wp-interactivity-data");if(n?.textContent)try{return JSON.parse(n.textContent)}catch{}return{}},me=t=>{Mt(t?.state)&&Object.entries(t.state).forEach((([t,e])=>{const n=ye(t,{},{lock:de});Zt(n.state,e,!1),Zt(ve(t),e)})),Mt(t?.config)&&Object.entries(t.config).forEach((([t,e])=>{fe.set(t,e)}))},we=ge();function be(t){return null!==t.suffix}function Se(t){return null===t.suffix}me(we);const xe=(0,c.q6)({client:{},server:{}}),ke={},Ee={},Pe=(t,e,{priority:n=10}={})=>{ke[t]=e,Ee[t]=n},Ce=({scope:t})=>(e,...n)=>{let{value:r,namespace:o}=e;if("string"!=typeof r)throw new Error("The `value` prop should be a string path");const i="!"===r[0]&&!!(r=r.slice(1));at(t);const s=((t,e)=>{if(!e)return void Tt();let n=le.get(e);void 0===n&&(n=ye(e,{},{lock:de}));const r={...n,context:_t().context[e]};try{return t.split(".").reduce(((t,e)=>t[e]),r)}catch(t){}})(r,o);if("function"==typeof s){if(i){Tt();const t=!s(...n);return ft(),t}return ft(),(...e)=>{at(t);const n=s(...e);return ft(),n}}const u=s;return ft(),i?!u:u},Oe=({directives:t,priorityLevels:[e,...n],element:r,originalProps:o,previousScope:i})=>{const s=S({}).current;s.evaluate=k(Ce({scope:s}),[]);const{client:u,server:l}=E(xe);s.context=u,s.serverContext=l,s.ref=i?.ref||S(null),r=(0,c.Ob)(r,{ref:s.ref}),s.attributes=r.props;const _=n.length>0?(0,c.h)(Oe,{directives:t,priorityLevels:n,element:r,originalProps:o,previousScope:s}):r,a={...o,children:_},f={directives:t,props:a,element:r,context:xe,evaluate:s.evaluate};at(s);for(const t of e){const e=ke[t]?.(f);void 0!==e&&(a.children=e)}return ft(),a.children},$e=c.fF.vnode;function Te(t){return Mt(t)?Object.fromEntries(Object.entries(t).map((([t,e])=>[t,Te(e)]))):Array.isArray(t)?t.map((t=>Te(t))):t}function Me(t){return new Proxy(t,{get(t,e,n){const r=t[e];switch(e){case"currentTarget":case"preventDefault":case"stopImmediatePropagation":case"stopPropagation":Tt()}return r instanceof Function?function(...e){return r.apply(this===n?t:this,e)}:r}})}c.fF.vnode=t=>{if(t.props.__directives){const e=t.props,n=e.__directives;n.key&&(t.key=n.key.find(Se).value),delete e.__directives;const r=(t=>{const e=Object.keys(t).reduce(((t,e)=>{if(ke[e]){const n=Ee[e];(t[n]=t[n]||[]).push(e)}return t}),{});return Object.entries(e).sort((([t],[e])=>parseInt(t)-parseInt(e))).map((([,t])=>t))})(n);r.length>0&&(t.props={directives:n,priorityLevels:r,originalProps:e,type:t.type,element:(0,c.h)(t.type,e),top:!0},t.type=Oe)}$e&&$e(t)};const Ne=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,je=/\/\*[^]*?\*\/| +/g,He=/\n+/g,Ue=t=>({directives:e,evaluate:n})=>{e[`on-${t}`].filter(be).forEach((e=>{const r=e.suffix.split("--",1)[0];Et((()=>{const o=t=>{const r=n(e);"function"==typeof r&&(r?.sync||(t=Me(t)),r(t))},i="window"===t?window:document;return i.addEventListener(r,o),()=>i.removeEventListener(r,o)}))}))},We=t=>({directives:e,evaluate:n})=>{e[`on-async-${t}`].filter(be).forEach((e=>{const r=e.suffix.split("--",1)[0];Et((()=>{const o=async t=>{await bt();const r=n(e);"function"==typeof r&&r(t)},i="window"===t?window:document;return i.addEventListener(r,o,{passive:!0}),()=>i.removeEventListener(r,o)}))}))},Fe="wp",Ae=`data-${Fe}-ignore`,Le=`data-${Fe}-interactive`,De=`data-${Fe}-`,Re=[],Ie=new RegExp(`^data-${Fe}-([a-z0-9]+(?:-[a-z0-9]+)*)(?:--([a-z0-9_-]+))?$`,"i"),Ve=/^([\w_\/-]+)::(.+)$/,Be=new WeakSet;function ze(t){const e=document.createTreeWalker(t,205);return function t(n){const{nodeType:r}=n;if(3===r)return[n.data];if(4===r){var o;const t=e.nextSibling();return n.replaceWith(new window.Text(null!==(o=n.nodeValue)&&void 0!==o?o:"")),[n.nodeValue,t]}if(8===r||7===r){const t=e.nextSibling();return n.remove(),[null,t]}const i=n,{attributes:s}=i,u=i.localName,l={},_=[],a=[];let f=!1,p=!1;for(let t=0;t{const o=Ie.exec(e);if(null===o)return Tt(),t;const i=o[1]||"",s=o[2]||null;var u;return t[i]=t[i]||[],t[i].push({namespace:null!=n?n:null!==(u=Re[Re.length-1])&&void 0!==u?u:null,value:r,suffix:s}),t}),{})),"template"===u)l.content=[...i.content.childNodes].map((t=>ze(t)));else{let n=e.firstChild();if(n){for(;n;){const[r,o]=t(n);r&&_.push(r),n=o||e.nextSibling()}e.parentNode()}}return p&&Re.pop(),[(0,c.h)(u,l,_)]}(e.currentNode)}const qe=new WeakMap,Je=t=>{if(!t.parentElement)throw Error("The passed region should be an element with a parent.");return qe.has(t)||qe.set(t,((t,e)=>{const n=(e=[].concat(e))[e.length-1].nextSibling;function r(e,r){t.insertBefore(e,r||n)}return t.__k={nodeType:1,parentNode:t,firstChild:e[0],childNodes:e,insertBefore:r,appendChild:r,removeChild(e){t.removeChild(e)}}})(t.parentElement,t)),qe.get(t)},Ke=new WeakMap,Ge=t=>{if("I acknowledge that using private APIs means my theme or plugin will inevitably break in the next version of WordPress."===t)return{directivePrefix:Fe,getRegionRootFragment:Je,initialVdom:Ke,toVdom:ze,directive:Pe,getNamespace:st,h:c.h,cloneElement:c.Ob,render:c.XX,proxifyState:Qt,parseServerData:ge,populateServerData:me,batch:U};throw new Error("Forbidden access.")};Pe("context",(({directives:{context:t},props:{children:e},context:n})=>{const{Provider:r}=n,o=t.find(Se),{client:i,server:s}=E(n),u=o.namespace,l=S(Qt(u,{})),_=S(Qt(u,{},{readOnly:!0})),a=x((()=>{const t={client:{...i},server:{...s}};if(o){const{namespace:e,value:n}=o;Mt(n)||Tt(),Zt(l.current,Te(n),!1),Zt(_.current,Te(n)),t.client[e]=ce(l.current,i[e]),t.server[e]=ce(_.current,s[e])}return t}),[o,i,s]);return(0,c.h)(r,{value:a},e)}),{priority:5}),Pe("watch",(({directives:{watch:t},evaluate:e})=>{t.forEach((t=>{kt((()=>{let n=e(t);return"function"==typeof n&&(n=n()),n}))}))})),Pe("init",(({directives:{init:t},evaluate:e})=>{t.forEach((t=>{Et((()=>{let n=e(t);return"function"==typeof n&&(n=n()),n}))}))})),Pe("on",(({directives:{on:t},element:e,evaluate:n})=>{const r=new Map;t.filter(be).forEach((t=>{const e=t.suffix.split("--")[0];r.has(e)||r.set(e,new Set),r.get(e).add(t)})),r.forEach(((t,r)=>{const o=e.props[`on${r}`];e.props[`on${r}`]=e=>{t.forEach((t=>{o&&o(e);const r=n(t);"function"==typeof r&&(r?.sync||(e=Me(e)),r(e))}))}}))})),Pe("on-async",(({directives:{"on-async":t},element:e,evaluate:n})=>{const r=new Map;t.filter(be).forEach((t=>{const e=t.suffix.split("--")[0];r.has(e)||r.set(e,new Set),r.get(e).add(t)})),r.forEach(((t,r)=>{const o=e.props[`on${r}`];e.props[`on${r}`]=e=>{o&&o(e),t.forEach((async t=>{await bt();const r=n(t);"function"==typeof r&&r(e)}))}}))})),Pe("on-window",Ue("window")),Pe("on-document",Ue("document")),Pe("on-async-window",We("window")),Pe("on-async-document",We("document")),Pe("class",(({directives:{class:t},element:e,evaluate:n})=>{t.filter(be).forEach((t=>{const r=t.suffix;let o=n(t);"function"==typeof o&&(o=o());const i=e.props.class||"",s=new RegExp(`(^|\\s)${r}(\\s|$)`,"g");o?s.test(i)||(e.props.class=i?`${i} ${r}`:r):e.props.class=i.replace(s," ").trim(),Et((()=>{o?e.ref.current.classList.add(r):e.ref.current.classList.remove(r)}))}))})),Pe("style",(({directives:{style:t},element:e,evaluate:n})=>{t.filter(be).forEach((t=>{const r=t.suffix;let o=n(t);"function"==typeof o&&(o=o()),e.props.style=e.props.style||{},"string"==typeof e.props.style&&(e.props.style=(t=>{const e=[{}];let n,r;for(;n=Ne.exec(t.replace(je,""));)n[4]?e.shift():n[3]?(r=n[3].replace(He," ").trim(),e.unshift(e[0][r]=e[0][r]||{})):e[0][n[1]]=n[2].replace(He," ").trim();return e[0]})(e.props.style)),o?e.props.style[r]=o:delete e.props.style[r],Et((()=>{o?e.ref.current.style[r]=o:e.ref.current.style.removeProperty(r)}))}))})),Pe("bind",(({directives:{bind:t},element:e,evaluate:n})=>{t.filter(be).forEach((t=>{const r=t.suffix;let o=n(t);"function"==typeof o&&(o=o()),e.props[r]=o,Et((()=>{const t=e.ref.current;if("style"!==r){if("width"!==r&&"height"!==r&&"href"!==r&&"list"!==r&&"form"!==r&&"tabIndex"!==r&&"download"!==r&&"rowSpan"!==r&&"colSpan"!==r&&"role"!==r&&r in t)try{return void(t[r]=null==o?"":o)}catch(t){}null==o||!1===o&&"-"!==r[4]?t.removeAttribute(r):t.setAttribute(r,o)}else"string"==typeof o&&(t.style.cssText=o)}))}))})),Pe("ignore",(({element:{type:t,props:{innerHTML:e,...n}}})=>{const r=x((()=>e),[]);return(0,c.h)(t,{dangerouslySetInnerHTML:{__html:r},...n})})),Pe("text",(({directives:{text:t},element:e,evaluate:n})=>{const r=t.find(Se);if(r)try{let t=n(r);"function"==typeof t&&(t=t()),e.props.children="object"==typeof t?null:t.toString()}catch(t){e.props.children=null}else e.props.children=null})),Pe("run",(({directives:{run:t},evaluate:e})=>{t.forEach((t=>{let n=e(t);return"function"==typeof n&&(n=n()),n}))})),Pe("each",(({directives:{each:t,"each-key":e},context:n,element:r,evaluate:o})=>{if("template"!==r.type)return;const{Provider:i}=n,s=E(n),[u]=t,{namespace:l}=u;let _=o(u);if("function"==typeof _&&(_=_()),"function"!=typeof _?.[Symbol.iterator])return;const a=be(u)?u.suffix.replace(/^-+|-+$/g,"").toLowerCase().replace(/-([a-z])/g,(function(t,e){return e.toUpperCase()})):"item",f=[];for(const t of _){const n=ce(Qt(l,{}),s.client[l]),o={client:{...s.client,[l]:n},server:{...s.server}};o.client[l][a]=t;const u={..._t(),context:o.client,serverContext:o.server},_=e?Ce({scope:u})(e[0]):t;f.push((0,c.h)(i,{value:o,key:_},r.props.content))}return f}),{priority:20}),Pe("each-child",(()=>null),{priority:1}),(async()=>{const t=document.querySelectorAll(`[data-${Fe}-interactive]`);await new Promise((t=>{setTimeout(t,0)}));for(const e of t)if(!Be.has(e)){await bt();const t=Je(e),n=ze(e);Ke.set(e,n),await bt(),(0,c.Qv)(n,t)}})();var Xe=r.zj,Qe=r.SD,Ye=r.V6,Ze=r.$K,tn=r.vT,en=r.jb,nn=r.yT,rn=r.M_,on=r.hb,sn=r.vJ,un=r.ip,cn=r.Nf,ln=r.Kr,_n=r.li,an=r.J0,fn=r.FH,pn=r.v4,hn=r.mh;export{Xe as getConfig,Qe as getContext,Ye as getElement,Ze as getServerContext,tn as getServerState,en as privateApis,nn as splitTask,rn as store,on as useCallback,sn as useEffect,un as useInit,cn as useLayoutEffect,ln as useMemo,_n as useRef,an as useState,fn as useWatch,pn as withScope,hn as withSyncEvent};
\ No newline at end of file
+var t={622:(t,e,n)=>{n.d(e,{Ob:()=>z,Qv:()=>q,XX:()=>B,fF:()=>o,h:()=>S,q6:()=>J,uA:()=>O,zO:()=>s});var r,o,i,s,c,u,l,a,_,f,p,h,d,v={},y=[],g=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,m=Array.isArray;function w(t,e){for(var n in e)t[n]=e[n];return t}function b(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function S(t,e,n){var o,i,s,c={};for(s in e)"key"==s?o=e[s]:"ref"==s?i=e[s]:c[s]=e[s];if(arguments.length>2&&(c.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(s in t.defaultProps)void 0===c[s]&&(c[s]=t.defaultProps[s]);return x(t,c,o,i,null)}function x(t,e,n,r,s){var c={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==s?++i:s,__i:-1,__u:0};return null==s&&null!=o.vnode&&o.vnode(c),c}function k(t){return t.children}function O(t,e){this.props=t,this.context=e}function P(t,e){if(null==e)return t.__?P(t.__,t.__i+1):null;for(var n;el&&c.sort(a),t=c.shift(),l=c.length,t.__d&&(n=void 0,i=(r=(e=t).__v).__e,s=[],u=[],e.__P&&((n=w({},r)).__v=r.__v+1,o.vnode&&o.vnode(n),F(e.__P,n,r,e.__n,e.__P.namespaceURI,32&r.__u?[i]:null,s,null==i?P(r):i,!!(32&r.__u),u),n.__v=r.__v,n.__.__k[n.__i]=n,L(s,n,u),n.__e!=i&&E(n)));C.__r=0}function $(t,e,n,r,o,i,s,c,u,l,a){var _,f,p,h,d,g,m=r&&r.__k||y,w=e.length;for(u=T(n,e,m,u,w),_=0;_0?x(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=t,s.__b=t.__b+1,c=null,-1!==(l=s.__i=N(s,n,u,_))&&(_--,(c=n[l])&&(c.__u|=2)),null==c||null===c.__v?(-1==l&&(o>a?f--:ou?f--:f++,s.__u|=4))):t.__k[i]=null;if(_)for(i=0;i(null==u||2&u.__u?0:1))for(o=n-1,i=n+1;o>=0||i=0){if((u=e[o])&&!(2&u.__u)&&s==u.key&&c===u.type)return o;o--}if(i2&&(u.children=arguments.length>3?r.call(arguments,2):n),x(t.type,u,o||t.key,i||t.ref,null)}function J(t){function e(t){var n,r;return this.getChildContext||(n=new Set,(r={})[e.__c]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&n.forEach((function(t){t.__e=!0,j(t)}))},this.sub=function(t){n.add(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){n&&n.delete(t),e&&e.call(t)}}),t.children}return e.__c="__cC"+d++,e.__=t,e.Provider=e.__l=(e.Consumer=function(t,e){return t.children(e)}).contextType=e,e}r=y.slice,o={__e:function(t,e,n,r){for(var o,i,s;e=e.__;)if((o=e.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(t)),s=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(t,r||{}),s=o.__d),s)return o.__E=o}catch(e){t=e}throw t}},i=0,s=function(t){return null!=t&&null==t.constructor},O.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=w({},this.state),"function"==typeof t&&(t=t(w({},n),this.props)),t&&w(n,t),null!=t&&this.__v&&(e&&this._sb.push(e),j(this))},O.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),j(this))},O.prototype.render=k,c=[],l="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,a=function(t,e){return t.__v.__b-e.__v.__b},C.__r=0,_=/(PointerCapture)$|Capture$/i,f=0,p=U(!1),h=U(!0),d=0}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var r={};n.d(r,{zj:()=>ge,SD:()=>yt,V6:()=>gt,$K:()=>mt,vT:()=>me,jb:()=>cn,yT:()=>bt,M_:()=>be,hb:()=>jt,vJ:()=>Pt,ip:()=>Ot,Nf:()=>Et,Kr:()=>Ct,li:()=>S,J0:()=>m,FH:()=>kt,v4:()=>xt,mh:()=>Ht});var o,i,s,c,u=n(622),l=0,a=[],_=u.fF,f=_.__b,p=_.__r,h=_.diffed,d=_.__c,v=_.unmount,y=_.__;function g(t,e){_.__h&&_.__h(i,t,l||e),l=0;var n=i.__H||(i.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({}),n.__[t]}function m(t){return l=1,function(t,e,n){var r=g(o++,2);if(r.t=t,!r.__c&&(r.__=[n?n(e):M(void 0,e),function(t){var e=r.__N?r.__N[0]:r.__[0],n=r.t(e,t);e!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=i,!i.__f)){var s=function(t,e,n){if(!r.__c.__H)return!0;var o=r.__c.__H.__.filter((function(t){return!!t.__c}));if(o.every((function(t){return!t.__N})))return!c||c.call(this,t,e,n);var i=r.__c.props!==t;return o.forEach((function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(i=!0)}})),c&&c.call(this,t,e,n)||i};i.__f=!0;var c=i.shouldComponentUpdate,u=i.componentWillUpdate;i.componentWillUpdate=function(t,e,n){if(this.__e){var r=c;c=void 0,s(t,e,n),c=r}u&&u.call(this,t,e,n)},i.shouldComponentUpdate=s}return r.__N||r.__}(M,t)}function w(t,e){var n=g(o++,3);!_.__s&&T(n.__H,e)&&(n.__=t,n.u=e,i.__H.__h.push(n))}function b(t,e){var n=g(o++,4);!_.__s&&T(n.__H,e)&&(n.__=t,n.u=e,i.__h.push(n))}function S(t){return l=5,x((function(){return{current:t}}),[])}function x(t,e){var n=g(o++,7);return T(n.__H,e)&&(n.__=t(),n.__H=e,n.__h=t),n.__}function k(t,e){return l=8,x((function(){return t}),e)}function O(t){var e=i.context[t.__c],n=g(o++,9);return n.c=t,e?(null==n.__&&(n.__=!0,e.sub(i)),e.props.value):t.__}function P(){for(var t;t=a.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(C),t.__H.__h.forEach($),t.__H.__h=[]}catch(e){t.__H.__h=[],_.__e(e,t.__v)}}_.__b=function(t){i=null,f&&f(t)},_.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),y&&y(t,e)},_.__r=function(t){p&&p(t),o=0;var e=(i=t.__c).__H;e&&(s===i?(e.__h=[],i.__h=[],e.__.forEach((function(t){t.__N&&(t.__=t.__N),t.u=t.__N=void 0}))):(e.__h.forEach(C),e.__h.forEach($),e.__h=[],o=0)),s=i},_.diffed=function(t){h&&h(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==a.push(e)&&c===_.requestAnimationFrame||((c=_.requestAnimationFrame)||j)(P)),e.__H.__.forEach((function(t){t.u&&(t.__H=t.u),t.u=void 0}))),s=i=null},_.__c=function(t,e){e.some((function(t){try{t.__h.forEach(C),t.__h=t.__h.filter((function(t){return!t.__||$(t)}))}catch(n){e.some((function(t){t.__h&&(t.__h=[])})),e=[],_.__e(n,t.__v)}})),d&&d(t,e)},_.unmount=function(t){v&&v(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach((function(t){try{C(t)}catch(t){e=t}})),n.__H=void 0,e&&_.__e(e,n.__v))};var E="function"==typeof requestAnimationFrame;function j(t){var e,n=function(){clearTimeout(r),E&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);E&&(e=requestAnimationFrame(n))}function C(t){var e=i,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),i=e}function $(t){var e=i;t.__c=t.__(),i=e}function T(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function M(t,e){return"function"==typeof e?e(t):e}var N=Symbol.for("preact-signals");function W(){if(A>1)A--;else{for(var t,e=!1;void 0!==L;){var n=L;for(L=void 0,D++;void 0!==n;){var r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&q(n))try{n.c()}catch(n){e||(t=n,e=!0)}n=r}}if(D=0,A--,e)throw t}}function H(t){if(A>0)return t();A++;try{return t()}finally{W()}}var U=void 0;var F,L=void 0,A=0,D=0,R=0;function I(t){if(void 0!==U){var e=t.n;if(void 0===e||e.t!==U)return e={i:0,S:t,p:U.s,n:void 0,t:U,e:void 0,x:void 0,r:e},void 0!==U.s&&(U.s.n=e),U.s=e,t.n=e,32&U.f&&t.S(e),e;if(-1===e.i)return e.i=0,void 0!==e.n&&(e.n.p=e.p,void 0!==e.p&&(e.p.n=e.n),e.p=U.s,e.n=void 0,U.s.n=e,U.s=e),e}}function V(t){this.v=t,this.i=0,this.n=void 0,this.t=void 0}function B(t){return new V(t)}function q(t){for(var e=t.s;void 0!==e;e=e.n)if(e.S.i!==e.i||!e.S.h()||e.S.i!==e.i)return!0;return!1}function z(t){for(var e=t.s;void 0!==e;e=e.n){var n=e.S.n;if(void 0!==n&&(e.r=n),e.S.n=e,e.i=-1,void 0===e.n){t.s=e;break}}}function J(t){for(var e=t.s,n=void 0;void 0!==e;){var r=e.p;-1===e.i?(e.S.U(e),void 0!==r&&(r.n=e.n),void 0!==e.n&&(e.n.p=r)):n=e,e.S.n=e.r,void 0!==e.r&&(e.r=void 0),e=r}t.s=n}function K(t){V.call(this,void 0),this.x=t,this.s=void 0,this.g=R-1,this.f=4}function G(t){return new K(t)}function X(t){var e=t.u;if(t.u=void 0,"function"==typeof e){A++;var n=U;U=void 0;try{e()}catch(e){throw t.f&=-2,t.f|=8,Q(t),e}finally{U=n,W()}}}function Q(t){for(var e=t.s;void 0!==e;e=e.n)e.S.U(e);t.x=void 0,t.s=void 0,X(t)}function Y(t){if(U!==this)throw new Error("Out-of-order effect");J(this),U=t,this.f&=-2,8&this.f&&Q(this),W()}function Z(t){this.x=t,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function tt(t){var e=new Z(t);try{e.c()}catch(t){throw e.d(),t}return e.d.bind(e)}function et(t,e){u.fF[t]=e.bind(null,u.fF[t]||function(){})}function nt(t){F&&F(),F=t&&t.S()}function rt(t){var e=this,n=t.data,r=function(t){return x((function(){return B(t)}),[])}(n);r.value=n;var o=x((function(){for(var t=e.__v;t=t.__;)if(t.__c){t.__c.__$f|=4;break}return e.__$u.c=function(){var t,n=e.__$u.S(),r=o.value;n(),(0,u.zO)(r)||3!==(null==(t=e.base)?void 0:t.nodeType)?(e.__$f|=1,e.setState({})):e.base.data=r},G((function(){var t=r.value.value;return 0===t?0:!0===t?"":t||""}))}),[]);return o.value}function ot(t,e,n,r){var o=e in t&&void 0===t.ownerSVGElement,i=B(n);return{o:function(t,e){i.value=t,r=e},d:tt((function(){var n=i.value.value;r[e]!==n&&(r[e]=n,o?t[e]=n:n?t.setAttribute(e,n):t.removeAttribute(e))}))}}V.prototype.brand=N,V.prototype.h=function(){return!0},V.prototype.S=function(t){this.t!==t&&void 0===t.e&&(t.x=this.t,void 0!==this.t&&(this.t.e=t),this.t=t)},V.prototype.U=function(t){if(void 0!==this.t){var e=t.e,n=t.x;void 0!==e&&(e.x=n,t.e=void 0),void 0!==n&&(n.e=e,t.x=void 0),t===this.t&&(this.t=n)}},V.prototype.subscribe=function(t){var e=this;return tt((function(){var n=e.value,r=U;U=void 0;try{t(n)}finally{U=r}}))},V.prototype.valueOf=function(){return this.value},V.prototype.toString=function(){return this.value+""},V.prototype.toJSON=function(){return this.value},V.prototype.peek=function(){var t=U;U=void 0;try{return this.value}finally{U=t}},Object.defineProperty(V.prototype,"value",{get:function(){var t=I(this);return void 0!==t&&(t.i=this.i),this.v},set:function(t){if(t!==this.v){if(D>100)throw new Error("Cycle detected");this.v=t,this.i++,R++,A++;try{for(var e=this.t;void 0!==e;e=e.x)e.t.N()}finally{W()}}}}),(K.prototype=new V).h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===R)return!0;if(this.g=R,this.f|=1,this.i>0&&!q(this))return this.f&=-2,!0;var t=U;try{z(this),U=this;var e=this.x();(16&this.f||this.v!==e||0===this.i)&&(this.v=e,this.f&=-17,this.i++)}catch(t){this.v=t,this.f|=16,this.i++}return U=t,J(this),this.f&=-2,!0},K.prototype.S=function(t){if(void 0===this.t){this.f|=36;for(var e=this.s;void 0!==e;e=e.n)e.S.S(e)}V.prototype.S.call(this,t)},K.prototype.U=function(t){if(void 0!==this.t&&(V.prototype.U.call(this,t),void 0===this.t)){this.f&=-33;for(var e=this.s;void 0!==e;e=e.n)e.S.U(e)}},K.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var t=this.t;void 0!==t;t=t.x)t.t.N()}},Object.defineProperty(K.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var t=I(this);if(this.h(),void 0!==t&&(t.i=this.i),16&this.f)throw this.v;return this.v}}),Z.prototype.c=function(){var t=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var e=this.x();"function"==typeof e&&(this.u=e)}finally{t()}},Z.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,X(this),z(this),A++;var t=U;return U=this,Y.bind(this,t)},Z.prototype.N=function(){2&this.f||(this.f|=2,this.o=L,L=this)},Z.prototype.d=function(){this.f|=8,1&this.f||Q(this)},rt.displayName="_st",Object.defineProperties(V.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:rt},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}}),et("__b",(function(t,e){if("string"==typeof e.type){var n,r=e.props;for(var o in r)if("children"!==o){var i=r[o];i instanceof V&&(n||(e.__np=n={}),n[o]=i,r[o]=i.peek())}}t(e)})),et("__r",(function(t,e){nt();var n,r=e.__c;r&&(r.__$f&=-2,void 0===(n=r.__$u)&&(r.__$u=n=function(){var t;return tt((function(){t=this})),t.c=function(){r.__$f|=1,r.setState({})},t}())),nt(n),t(e)})),et("__e",(function(t,e,n,r){nt(),t(e,n,r)})),et("diffed",(function(t,e){var n;if(nt(),"string"==typeof e.type&&(n=e.__e)){var r=e.__np,o=e.props;if(r){var i=n.U;if(i)for(var s in i){var c=i[s];void 0===c||s in r||(c.d(),i[s]=void 0)}else n.U=i={};for(var u in r){var l=i[u],a=r[u];void 0===l?(l=ot(n,u,a,o),i[u]=l):l.o(a,o)}}}t(e)})),et("unmount",(function(t,e){if("string"==typeof e.type){var n=e.__e;if(n){var r=n.U;if(r)for(var o in n.U=void 0,r){var i=r[o];i&&i.d()}}}else{var s=e.__c;if(s){var c=s.__$u;c&&(s.__$u=void 0,c.d())}}t(e)})),et("__h",(function(t,e,n,r){(r<3||9===r)&&(e.__$f|=2),t(e,n,r)})),u.uA.prototype.shouldComponentUpdate=function(t,e){var n=this.__$u,r=n&&void 0!==n.s;for(var o in e)return!0;if(this.__f||"boolean"==typeof this.u&&!0===this.u){if(!(r||2&this.__$f||4&this.__$f))return!0;if(1&this.__$f)return!0}else{if(!(r||4&this.__$f))return!0;if(3&this.__$f)return!0}for(var i in t)if("__source"!==i&&t[i]!==this.props[i])return!0;for(var s in this.props)if(!(s in t))return!0;return!1};const it=[],st=()=>it.slice(-1)[0],ct=t=>{it.push(t)},ut=()=>{it.pop()},lt=[],at=()=>lt.slice(-1)[0],_t=t=>{lt.push(t)},ft=()=>{lt.pop()},pt=new WeakMap,ht=()=>{throw new Error("Please use `data-wp-bind` to modify the attributes of an element.")},dt={get(t,e,n){const r=Reflect.get(t,e,n);return r&&"object"==typeof r?vt(r):r},set:ht,deleteProperty:ht},vt=t=>(pt.has(t)||pt.set(t,new Proxy(t,dt)),pt.get(t)),yt=t=>at().context[t||st()],gt=()=>{const t=at();const{ref:e,attributes:n}=t;return Object.freeze({ref:e.current,attributes:vt(n)})},mt=t=>at().serverContext[t||st()],wt=t=>new Promise((e=>{const n=()=>{clearTimeout(r),window.cancelAnimationFrame(o),setTimeout((()=>{t(),e()}))},r=setTimeout(n,100),o=window.requestAnimationFrame(n)})),bt="function"==typeof window.scheduler?.yield?window.scheduler.yield.bind(window.scheduler):()=>new Promise((t=>{setTimeout(t,0)}));function St(t){w((()=>{let e=null,n=!1;return e=function(t,e){let n=()=>{};const r=tt((function(){return n=this.c.bind(this),this.x=t,this.c=e,t()}));return{flush:n,dispose:r}}(t,(async()=>{e&&!n&&(n=!0,await wt(e.flush),n=!1)})),e.dispose}),[])}function xt(t){const e=at(),n=st();let r;r="GeneratorFunction"===t?.constructor?.name?async(...r)=>{const o=t(...r);let i,s;for(;;){ct(n),_t(e);try{s=o.next(i)}finally{ft(),ut()}try{i=await s.value}catch(t){ct(n),_t(e),o.throw(t)}finally{ft(),ut()}if(s.done)break}return i}:(...r)=>{ct(n),_t(e);try{return t(...r)}finally{ut(),ft()}};if(t.sync){const t=r;return t.sync=!0,t}return r}function kt(t){St(xt(t))}function Ot(t){w(xt(t),[])}function Pt(t,e){w(xt(t),e)}function Et(t,e){b(xt(t),e)}function jt(t,e){return k(xt(t),e)}function Ct(t,e){return x(xt(t),e)}new Set;const $t=t=>{0},Tt=t=>"__proto__"===t||"constructor"===t||"prototype"===t,Mt=(t,e)=>Object.prototype.hasOwnProperty.call(t,e)?t[e]:void 0,Nt=(t,e)=>"__proto__"===t?void 0:e,Wt=t=>Boolean(t&&"object"==typeof t&&t.constructor===Object);function Ht(t){const e=t;return e.sync=!0,e}const Ut=new WeakMap,Ft=new WeakMap,Lt=new WeakMap,At=new Set([Object,Array]),Dt=(t,e,n)=>{if(!Vt(e))throw Error("This object cannot be proxified.");if(!Ut.has(e)){const r=new Proxy(e,n);Ut.set(e,r),Ft.set(r,e),Lt.set(r,t)}return Ut.get(e)},Rt=t=>Ut.get(t),It=t=>Lt.get(t),Vt=t=>"object"==typeof t&&null!==t&&(!Lt.has(t)&&At.has(t.constructor)),Bt=t=>Ft.get(t),qt={};class zt{constructor(t){this.owner=t,this.computedsByScope=new WeakMap}setValue(t){this.update({value:t})}setGetter(t){this.update({get:t})}getComputed(){const t=at()||qt;if(this.valueSignal||this.getterSignal||this.update({}),!this.computedsByScope.has(t)){const e=()=>{const t=this.getterSignal?.value;return t?t.call(this.owner):this.valueSignal?.value};ct(It(this.owner)),this.computedsByScope.set(t,G(xt(e))),ut()}return this.computedsByScope.get(t)}update({get:t,value:e}){this.valueSignal?e===this.valueSignal.peek()&&t===this.getterSignal.peek()||H((()=>{this.valueSignal.value=e,this.getterSignal.value=t})):(this.valueSignal=B(e),this.getterSignal=B(t))}}const Jt=new Set(Object.getOwnPropertyNames(Symbol).map((t=>Symbol[t])).filter((t=>"symbol"==typeof t))),Kt=new WeakMap,Gt=(t,e)=>Kt.has(t)&&Kt.get(t).has(e),Xt=new WeakSet,Qt=(t,e,n)=>{Kt.has(t)||Kt.set(t,new Map),e="number"==typeof e?`${e}`:e;const r=Kt.get(t);if(!r.has(e)){const o=It(t),i=new zt(t);if(r.set(e,i),n){const{get:e,value:r}=n;if(e)i.setGetter(e);else{const e=Xt.has(t);i.setValue(Vt(r)?ee(o,r,{readOnly:e}):r)}}}return r.get(e)},Yt=new WeakMap;let Zt=!1;const te={get(t,e,n){if(Zt||!Object.prototype.hasOwnProperty.call(t,e)&&e in t||"symbol"==typeof e&&Jt.has(e))return Reflect.get(t,e,n);const r=Object.getOwnPropertyDescriptor(t,e),o=Qt(n,e,r).getComputed().value;if("function"==typeof o){const t=It(n);return(...e)=>{ct(t);try{return o.call(n,...e)}finally{ut()}}}return o},set(t,e,n,r){if(Xt.has(r))return!1;ct(It(r));try{return Reflect.set(t,e,n,r)}finally{ut()}},defineProperty(t,e,n){if(Xt.has(Rt(t)))return!1;const r=!(e in t),o=Reflect.defineProperty(t,e,n);if(o){const o=Rt(t),i=Qt(o,e),{get:s,value:c}=n;if(s)i.setGetter(s);else{const t=It(o);i.setValue(Vt(c)?ee(t,c):c)}if(r&&Yt.has(t)&&Yt.get(t).value++,Array.isArray(t)&&Kt.get(o)?.has("length")){Qt(o,"length").setValue(t.length)}}return o},deleteProperty(t,e){if(Xt.has(Rt(t)))return!1;const n=Reflect.deleteProperty(t,e);if(n){Qt(Rt(t),e).setValue(void 0),Yt.has(t)&&Yt.get(t).value++}return n},ownKeys:t=>(Yt.has(t)||Yt.set(t,B(0)),Yt._=Yt.get(t).value,Reflect.ownKeys(t))},ee=(t,e,n)=>{const r=Dt(t,e,te);return n?.readOnly&&Xt.add(r),r},ne=(t,e,n=!0)=>{if(!Wt(t)||!Wt(e))return;let r=!1;for(const o in e){if(Tt(o))continue;const i=!(o in t);r=r||i;const s=Object.getOwnPropertyDescriptor(e,o),c=Rt(t),u=!!c&&Gt(c,o)&&Qt(c,o);if("function"==typeof s.get||"function"==typeof s.set)(n||i)&&(Object.defineProperty(t,o,{...s,configurable:!0,enumerable:!0}),s.get&&u&&u.setGetter(s.get));else if(Wt(e[o])){const r=Object.getOwnPropertyDescriptor(t,o)?.value;if(i||n&&!Wt(r)){if(t[o]={},u){const e=It(c);u.setValue(ee(e,t[o]))}ne(t[o],e[o],n)}else Wt(r)&&ne(t[o],e[o],n)}else if((n||i)&&(Object.defineProperty(t,o,s),u)){const{value:t}=s,e=It(c);u.setValue(Vt(t)?ee(e,t):t)}}r&&Yt.has(t)&&Yt.get(t).value++},re=(t,e,n=!0)=>H((()=>ne(Bt(t)||t,e,n))),oe=new WeakSet,ie={get:(t,e,n)=>{const r=Reflect.get(t,e),o=It(n);if(void 0===r&&oe.has(n)){const n={};return Reflect.set(t,e,n),se(o,n,!1)}if("function"==typeof r){ct(o);const t=xt(r);return ut(),t}return Wt(r)&&Vt(r)?se(o,r,!1):r}},se=(t,e,n=!0)=>{const r=Dt(t,e,ie);return r&&n&&oe.add(r),r},ce=new WeakMap,ue=new WeakMap,le=new WeakSet,ae=Reflect.getOwnPropertyDescriptor,_e={get:(t,e)=>{const n=ue.get(t),r=t[e];return e in t?r:n[e]},set:(t,e,n)=>{const r=ue.get(t);return(e in t||!(e in r)?t:r)[e]=n,!0},ownKeys:t=>[...new Set([...Object.keys(ue.get(t)),...Object.keys(t)])],getOwnPropertyDescriptor:(t,e)=>ae(t,e)||ae(ue.get(t),e),has:(t,e)=>Reflect.has(t,e)||Reflect.has(ue.get(t),e)},fe=(t,e={})=>{if(le.has(t))throw Error("This object cannot be proxified.");if(ue.set(t,e),!ce.has(t)){const e=new Proxy(t,_e);ce.set(t,e),le.add(e)}return ce.get(t)},pe=new Map,he=new Map,de=new Map,ve=new Map,ye=new Map,ge=t=>ve.get(t||st())||{},me=t=>{const e=t||st();return ye.has(e)||ye.set(e,ee(e,{},{readOnly:!0})),ye.get(e)},we="I acknowledge that using a private store means my plugin will inevitably break on the next store release.";function be(t,{state:e={},...n}={},{lock:r=!1}={}){if(pe.has(t)){if(r===we||de.has(t)){const e=de.get(t);if(!(r===we||!0!==r&&r===e))throw e?Error("Cannot unlock a private store with an invalid lock code"):Error("Cannot lock a public store")}else de.set(t,r);const o=he.get(t);re(o,n),re(o.state,e)}else{r!==we&&de.set(t,r);const o={state:ee(t,Wt(e)?e:{}),...n},i=se(t,o);he.set(t,o),pe.set(t,i)}return pe.get(t)}const Se=(t=document)=>{var e;const n=null!==(e=t.querySelector('script[id="wp-script-module-data-@wordpress/interactivity"]'))&&void 0!==e?e:t.querySelector('script[id="wp-interactivity-data"]');if(n instanceof HTMLScriptElement)try{return JSON.parse(n.text,Nt)}catch{}return{}},xe=t=>{Wt(t?.state)&&Object.entries(t.state).forEach((([t,e])=>{const n=be(t,{},{lock:we});re(n.state,e,!1),re(me(t),e)})),Wt(t?.config)&&Object.entries(t.config).forEach((([t,e])=>{ve.set(t,e)}))},ke=Se();xe(ke);const Oe="wp",Pe=`data-${Oe}-ignore`,Ee=`data-${Oe}-interactive`,je=`data-${Oe}-`,Ce=[],$e=new RegExp(`^data-${Oe}-([a-z0-9]+(?:-[a-z0-9]+)*)(?:--([a-z0-9_-]+))?$`,"i"),Te=/^([\w_\/-]+)::(.+)$/,Me=t=>Tt(t.replace(/^-+|-+$/g,"").toLowerCase()),Ne=new WeakSet,We=new WeakSet;function He(t){const e=document.createTreeWalker(t,205);return function t(n){const{nodeType:r}=n;if(3===r)return[n.data];if(4===r){var o;const t=e.nextSibling();return n.replaceWith(new window.Text(null!==(o=n.nodeValue)&&void 0!==o?o:"")),[n.nodeValue,t]}if(8===r||7===r){const t=e.nextSibling();return n.remove(),[null,t]}const i=n,{attributes:s}=i,c=i.localName,l={},a=[],_=[];let f=!1,p=!1;for(let t=0;t{const o=$e.exec(e),i=o?.[1]||"",s=o?.[2]||null;return null===o||Me(i)||null!==s&&s.split("--").some(Me)?($t(),t):(t[i]=t[i]||[],t[i].push({namespace:null!=n?n:null!==(c=Ce[Ce.length-1])&&void 0!==c?c:null,value:r,suffix:s}),t);var c}),Object.create(null)),We.add(l.__directives)),"template"===c)l.content=[...i.content.childNodes].map((t=>He(t)));else{let n=e.firstChild();if(n){for(;n;){const[r,o]=t(n);r&&a.push(r),n=o||e.nextSibling()}e.parentNode()}}return p&&Ce.pop(),[(0,u.h)(c,l,a)]}(e.currentNode)}function Ue(t){return null!==t.suffix}function Fe(t){return null===t.suffix}const Le=(0,u.q6)({client:{},server:{}}),Ae=Object.create(null),De=Object.create(null),Re=(t,e,{priority:n=10}={})=>{Ae[t]=e,De[t]=n},Ie=(t,e)=>{if(!e)return void $t();const n=t.split(".");if(Tt(e)||n.some(Tt))return void 0;let r=pe.get(e);void 0===r&&(r=be(e,{},{lock:we}));const o={...r,context:Mt(at().context,e)};try{let t,e=o;for(const r of n)t=e,e=e[r];return((t,e,n)=>{if("function"!=typeof n||null==t)return!1;const r=Object(t),o=Bt(r);if(o&&Object.prototype.hasOwnProperty.call(o,e))return!1;for(let t=Object.getPrototypeOf(null!=o?o:r);null!==t;t=Object.getPrototypeOf(t)){const r=Object.getOwnPropertyDescriptor(t,e);if(r)return o?"function"==typeof r.value:r.value===n}return!1})(t,n[n.length-1],e)?void 0:e}catch(t){}},Ve=({scope:t})=>(e,...n)=>{let{value:r,namespace:o}=e;if("string"!=typeof r)throw new Error("The `value` prop should be a string path");const i="!"===r[0]&&!!(r=r.slice(1));_t(t);const s=Ie(r,o);if("function"==typeof s){if(i){$t();const t=!s(...n);return ft(),t}return ft(),(...e)=>{_t(t);const n=s(...e);return ft(),n}}const c=s;return ft(),i?!c:c},Be=({directives:t,priorityLevels:[e,...n],element:r,originalProps:o,previousScope:i})=>{const s=S({}).current;s.evaluate=k(Ve({scope:s}),[]);const{client:c,server:l}=O(Le);s.context=c,s.serverContext=l,s.ref=i?.ref||S(null),r=(0,u.Ob)(r,{ref:s.ref}),s.attributes=r.props;const a=n.length>0?(0,u.h)(Be,{directives:t,priorityLevels:n,element:r,originalProps:o,previousScope:s}):r,_={...o,children:a},f={directives:t,props:_,element:r,context:Le,evaluate:s.evaluate};_t(s);for(const t of e){const e=Ae[t]?.(f);void 0!==e&&(_.children=e)}return ft(),_.children},qe=u.fF.vnode;u.fF.vnode=t=>{var e;if(t.props.__directives&&("object"!=typeof(e=t.props.__directives)||null===e||!We.has(e))&&delete t.props.__directives,t.props.__directives){const e=t.props,n=e.__directives;n.key&&(t.key=n.key.find(Fe).value),delete e.__directives;const r=(t=>{const e=Object.keys(t).reduce(((t,e)=>{if(Ae[e]){const n=De[e];(t[n]=t[n]||[]).push(e)}return t}),{});return Object.entries(e).sort((([t],[e])=>parseInt(t)-parseInt(e))).map((([,t])=>t))})(n);r.length>0&&(t.props={directives:n,priorityLevels:r,originalProps:e,type:t.type,element:(0,u.h)(t.type,e),top:!0},t.type=Be)}qe&&qe(t)};const ze=new Set(["action","archive","background","cite","classid","codebase","data","formaction","href","icon","longdesc","manifest","poster","profile","src","usemap","xlink:href","xlinkhref","xmlns"]),Je=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i;const Ke=new Set(["class","dir","height","hidden","id","lang","role","style","tabindex","title","width"]);function Ge(t){return Wt(t)?Object.fromEntries(Object.entries(t).map((([t,e])=>[t,Ge(e)]))):Array.isArray(t)?t.map((t=>Ge(t))):t}const Xe=new Set(["__directives","children","dangerouslysetinnerhtml"]);function Qe(t){return new Proxy(t,{get(t,e,n){const r=t[e];switch(e){case"currentTarget":case"preventDefault":case"stopImmediatePropagation":case"stopPropagation":$t()}return r instanceof Function?function(...e){return r.apply(this===n?t:this,e)}:r}})}const Ye=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Ze=/\/\*[^]*?\*\/| +/g,tn=/\n+/g,en=t=>({directives:e,evaluate:n})=>{e[`on-${t}`].filter(Ue).forEach((e=>{const r=e.suffix.split("--",1)[0];Ot((()=>{const o=t=>{const r=n(e);"function"==typeof r&&(r?.sync||(t=Qe(t)),r(t))},i="window"===t?window:document;return i.addEventListener(r,o),()=>i.removeEventListener(r,o)}))}))},nn=t=>({directives:e,evaluate:n})=>{e[`on-async-${t}`].filter(Ue).forEach((e=>{const r=e.suffix.split("--",1)[0];Ot((()=>{const o=async t=>{await bt();const r=n(e);"function"==typeof r&&r(t)},i="window"===t?window:document;return i.addEventListener(r,o,{passive:!0}),()=>i.removeEventListener(r,o)}))}))},rn=new WeakMap,on=t=>{if(!t.parentElement)throw Error("The passed region should be an element with a parent.");return rn.has(t)||rn.set(t,((t,e)=>{const n=(e=[].concat(e))[e.length-1].nextSibling;function r(e,r){t.insertBefore(e,r||n)}return t.__k={nodeType:1,parentNode:t,firstChild:e[0],childNodes:e,insertBefore:r,appendChild:r,removeChild(e){t.removeChild(e)}}})(t.parentElement,t)),rn.get(t)},sn=new WeakMap,cn=t=>{if("I acknowledge that using private APIs means my theme or plugin will inevitably break in the next version of WordPress."===t)return{directivePrefix:Oe,getRegionRootFragment:on,initialVdom:sn,toVdom:He,directive:Re,getNamespace:st,h:u.h,cloneElement:u.Ob,render:u.XX,proxifyState:ee,parseServerData:Se,populateServerData:xe,batch:H};throw new Error("Forbidden access.")};Re("context",(({directives:{context:t},props:{children:e},context:n})=>{const{Provider:r}=n,o=t.find(Fe),{client:i,server:s}=O(n),c=o.namespace,l=S(ee(c,{})),a=S(ee(c,{},{readOnly:!0})),_=x((()=>{const t={client:{...i},server:{...s}};if(o){const{namespace:e,value:n}=o;Wt(n)||$t(),re(l.current,Ge(n),!1),re(a.current,Ge(n)),t.client[e]=fe(l.current,Mt(i,e)),t.server[e]=fe(a.current,Mt(s,e))}return t}),[o,i,s]);return(0,u.h)(r,{value:_},e)}),{priority:5}),Re("watch",(({directives:{watch:t},evaluate:e})=>{t.forEach((t=>{kt((()=>{let n=e(t);return"function"==typeof n&&(n=n()),n}))}))})),Re("init",(({directives:{init:t},evaluate:e})=>{t.forEach((t=>{Ot((()=>{let n=e(t);return"function"==typeof n&&(n=n()),n}))}))})),Re("on",(({directives:{on:t},element:e,evaluate:n})=>{const r=new Map;t.filter(Ue).forEach((t=>{const e=t.suffix.split("--")[0];r.has(e)||r.set(e,new Set),r.get(e).add(t)})),r.forEach(((t,r)=>{const o=e.props[`on${r}`];e.props[`on${r}`]=e=>{t.forEach((t=>{o&&o(e);const r=n(t);"function"==typeof r&&(r?.sync||(e=Qe(e)),r(e))}))}}))})),Re("on-async",(({directives:{"on-async":t},element:e,evaluate:n})=>{const r=new Map;t.filter(Ue).forEach((t=>{const e=t.suffix.split("--")[0];r.has(e)||r.set(e,new Set),r.get(e).add(t)})),r.forEach(((t,r)=>{const o=e.props[`on${r}`];e.props[`on${r}`]=e=>{o&&o(e),t.forEach((async t=>{await bt();const r=n(t);"function"==typeof r&&r(e)}))}}))})),Re("on-window",en("window")),Re("on-document",en("document")),Re("on-async-window",nn("window")),Re("on-async-document",nn("document")),Re("class",(({directives:{class:t},element:e,evaluate:n})=>{t.filter(Ue).forEach((t=>{const r=t.suffix;let o=n(t);"function"==typeof o&&(o=o());const i="string"==typeof e.props.class?e.props.class:"",s=new RegExp(`(^|\\s)${r}(\\s|$)`,"g");o?s.test(i)||(e.props.class=i?`${i} ${r}`:r):e.props.class=i.replace(s," ").trim(),Ot((()=>{o?e.ref.current.classList.add(r):e.ref.current.classList.remove(r)}))}))})),Re("style",(({directives:{style:t},element:e,evaluate:n})=>{t.filter(Ue).forEach((t=>{const r=t.suffix;let o=n(t);"function"==typeof o&&(o=o()),"string"==typeof e.props.style?e.props.style=(t=>{const e=Object.create(null),n=t.replace(Ze,"");let r,o=0;for(Ye.lastIndex=0;r=Ye.exec(n);)void 0!==r[4]?o=Math.max(0,o-1):void 0!==r[3]?o++:0===o&&(e[r[1]]=r[2].replace(tn," ").trim());return e})(e.props.style):(t=>{if("object"!=typeof t||null===t)return!1;const e=Object.getPrototypeOf(t);return e===Object.prototype||null===e})(e.props.style)?e.props.style=(t=>{const e=Object.create(null);for(const[n,r]of Object.entries(Object.getOwnPropertyDescriptors(t)))r.enumerable&&"value"in r&&(e[n]=r.value);return e})(e.props.style):e.props.style=Object.create(null),o?e.props.style[r]=o:delete e.props.style[r],Ot((()=>{o?e.ref.current.style[r]=o:e.ref.current.style.removeProperty(r)}))}))})),Re("bind",(({directives:{bind:t},element:e,evaluate:n})=>{t.filter(Ue).forEach((t=>{const r=t.suffix,o=r.toLowerCase();if(Xe.has(o)||"content"===o&&"template"===e.type||Tt(r))return;if(/^on/i.test(r))return;if(!((t,e)=>{if("string"!=typeof t||"object"!==t.toLowerCase())return!0;const n=e.toLowerCase();return Ke.has(n)||n.startsWith("aria-")||n.startsWith("data-")&&!n.startsWith("data-wp-")})(e.type,r))return;if("protocol"===r&&("a"===e.type||"area"===e.type))return void delete e.props[r];let i=n(t);"function"==typeof i&&(i=i()),ze.has(r.toLowerCase())&&(i=function(t){if(null==t||"boolean"==typeof t)return t;try{const e=String(t);return Je.test(e)?null:e}catch{return null}}(i)),e.props[r]=i,Ot((()=>{const t=e.ref.current;if("style"!==r){if("width"!==r&&"height"!==r&&"href"!==r&&"list"!==r&&"form"!==r&&"tabIndex"!==r&&"download"!==r&&"rowSpan"!==r&&"colSpan"!==r&&"role"!==r&&r in t)try{return void(t[r]=null==i?"":i)}catch(t){}null==i||!1===i&&"-"!==r[4]?t.removeAttribute(r):t.setAttribute(r,i)}else"string"==typeof i&&(t.style.cssText=i)}))}))})),Re("ignore",(({element:{type:t,props:{innerHTML:e,...n}}})=>{const r=x((()=>e),[]);return(0,u.h)(t,{dangerouslySetInnerHTML:{__html:r},...n})})),Re("text",(({directives:{text:t},element:e,evaluate:n})=>{const r=t.find(Fe);if(r)try{let t=n(r);"function"==typeof t&&(t=t()),e.props.children="object"==typeof t?null:t.toString()}catch(t){e.props.children=null}else e.props.children=null})),Re("run",(({directives:{run:t},evaluate:e})=>{t.forEach((t=>{let n=e(t);return"function"==typeof n&&(n=n()),n}))})),Re("each",(({directives:{each:t,"each-key":e},context:n,element:r,evaluate:o})=>{if("template"!==r.type)return;const{Provider:i}=n,s=O(n),[c]=t,{namespace:l}=c;let a=o(c);if("function"==typeof a&&(a=a()),"function"!=typeof a?.[Symbol.iterator])return;const _=Ue(c)?c.suffix.replace(/^-+|-+$/g,"").toLowerCase().replace(/-([a-z])/g,(function(t,e){return e.toUpperCase()})):"item",f=[];for(const t of a){const n=fe(ee(l,{}),Mt(s.client,l)),o={client:{...s.client,[l]:n},server:{...s.server}};o.client[l][_]=t;const c={...at(),context:o.client,serverContext:o.server},a=e?Ve({scope:c})(e[0]):t;f.push((0,u.h)(i,{value:o,key:a},r.props.content))}return f}),{priority:20}),Re("each-child",(()=>null),{priority:1}),(async()=>{const t=document.querySelectorAll(`[data-${Oe}-interactive]`);await new Promise((t=>{setTimeout(t,0)}));for(const e of t)if(!Ne.has(e)){await bt();const t=on(e),n=He(e);sn.set(e,n),await bt(),(0,u.Qv)(n,t)}})();var un=r.zj,ln=r.SD,an=r.V6,_n=r.$K,fn=r.vT,pn=r.jb,hn=r.yT,dn=r.M_,vn=r.hb,yn=r.vJ,gn=r.ip,mn=r.Nf,wn=r.Kr,bn=r.li,Sn=r.J0,xn=r.FH,kn=r.v4,On=r.mh;export{un as getConfig,ln as getContext,an as getElement,_n as getServerContext,fn as getServerState,pn as privateApis,hn as splitTask,dn as store,vn as useCallback,yn as useEffect,gn as useInit,mn as useLayoutEffect,wn as useMemo,bn as useRef,Sn as useState,xn as useWatch,kn as withScope,On as withSyncEvent};
\ No newline at end of file
diff -Nru wordpress-6.8.10+dfsg1/wp-includes/js/dist/script-modules/interactivity-router/index.js wordpress-6.8.12+dfsg1/wp-includes/js/dist/script-modules/interactivity-router/index.js
--- wordpress-6.8.10+dfsg1/wp-includes/js/dist/script-modules/interactivity-router/index.js 2025-03-03 18:08:42.211884000 +0000
+++ wordpress-6.8.12+dfsg1/wp-includes/js/dist/script-modules/interactivity-router/index.js 2026-10-28 15:49:05.061274000 +0000
@@ -205,14 +205,60 @@
return u.pathname + u.search;
};
-// Fetch a new page and convert it to a static virtual DOM.
+/**
+ * Checks whether a fetched response can be processed as a page.
+ *
+ * Only a successful, same-origin response that the browser would display as
+ * an HTML page is accepted. Any other response, such as an uploaded file
+ * served with a non-HTML content type, is rejected so that none of its content
+ * is processed.
+ *
+ * @param response The fetched response.
+ * @return Whether the response can be processed as a page.
+ */
+const isValidPageResponse = response => {
+ var _response$headers$get;
+ if (response.status !== 200) {
+ return false;
+ }
+
+ // The final URL, after redirects, must be in the same origin.
+ try {
+ if (new URL(response.url).origin !== window.location.origin) {
+ return false;
+ }
+ } catch {
+ return false;
+ }
+
+ // The browser parses only `text/html` with the HTML parser, which is the
+ // parser the router uses. `DOMParser` parses with scripting disabled, so
+ // its result can still differ from the browser's. A `,` means that the
+ // response has more than one content type header.
+ const contentType = (_response$headers$get = response.headers.get('content-type')) !== null && _response$headers$get !== void 0 ? _response$headers$get : '';
+ if (contentType.includes(',') || contentType.split(';')[0].trim().toLowerCase() !== 'text/html') {
+ return false;
+ }
+ return true;
+};
+
+// Fetch a new page and convert it to a static virtual DOM. The URL is the
+// path and query of the page to fetch. It returns false if there was an error
+// during fetching or preparation, or if the fetched response is not a valid
+// page.
const fetchPage = async (url, {
html
}) => {
try {
if (!html) {
- const res = await window.fetch(url);
- if (res.status !== 200) {
+ // Only a same-origin URL can be fetched.
+ const requestUrl = new URL(url, window.location.href);
+ if (requestUrl.origin !== window.location.origin) {
+ return false;
+ }
+ // Some `window.fetch` wrappers call string methods on the input.
+ const res = await window.fetch(requestUrl.href);
+ if (!isValidPageResponse(res)) {
return false;
}
html = await res.text();
@@ -229,9 +275,11 @@
const regionsToVdom = async (dom, {
vdom
} = {}) => {
- const regions = {
+ // Keyed by router region IDs found in the markup, so it doesn't inherit
+ // from `Object.prototype`.
+ const regions = Object.assign(Object.create(null), {
body: undefined
- };
+ });
let head;
if (false) {}
if (navigationMode === 'regionBased') {
@@ -359,6 +407,8 @@
* @return Promise that resolves once the navigation is completed or aborted.
*/
*navigate(href, options = {}) {
+ // Only read the options passed as own properties.
+ options = Object.assign(Object.create(null), options);
const {
clientNavigationDisabled
} = (0,interactivity_namespaceObject.getConfig)();
@@ -445,6 +495,8 @@
* @param [options.html] HTML string to be used instead of fetching the requested URL.
*/
prefetch(url, options = {}) {
+ // Only read the options passed as own properties.
+ options = Object.assign(Object.create(null), options);
const {
clientNavigationDisabled
} = (0,interactivity_namespaceObject.getConfig)();
@@ -472,10 +524,10 @@
function a11ySpeak(messageKey) {
if (!hasLoadedNavigationTextsData) {
hasLoadedNavigationTextsData = true;
- const content = document.getElementById('wp-script-module-data-@wordpress/interactivity-router')?.textContent;
- if (content) {
+ const script = document.querySelector('script[id="wp-script-module-data-@wordpress/interactivity-router"]');
+ if (script instanceof HTMLScriptElement) {
try {
- const parsed = JSON.parse(content);
+ const parsed = JSON.parse(script.text);
if (typeof parsed?.i18n?.loading === 'string') {
navigationTexts.loading = parsed.i18n.loading;
}
diff -Nru wordpress-6.8.10+dfsg1/wp-includes/js/dist/script-modules/interactivity-router/index.min.js wordpress-6.8.12+dfsg1/wp-includes/js/dist/script-modules/interactivity-router/index.min.js
--- wordpress-6.8.10+dfsg1/wp-includes/js/dist/script-modules/interactivity-router/index.min.js 2025-03-03 18:08:42.211884000 +0000
+++ wordpress-6.8.12+dfsg1/wp-includes/js/dist/script-modules/interactivity-router/index.min.js 2026-10-28 15:49:05.061274000 +0000
@@ -1 +1 @@
-import*as e from"@wordpress/interactivity";var t={317:e=>{e.exports=import("@wordpress/a11y")}},o={};function i(e){var n=o[e];if(void 0!==n)return n.exports;var a=o[e]={exports:{}};return t[e](a,a.exports,i),a.exports}i.d=(e,t)=>{for(var o in t)i.o(t,o)&&!i.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var n={};i.d(n,{o:()=>D,w:()=>A});const a=(e=>{var t={};return i.d(t,e),t})({getConfig:()=>e.getConfig,privateApis:()=>e.privateApis,store:()=>e.store});new Map;var r;const{directivePrefix:s,getRegionRootFragment:d,initialVdom:l,toVdom:c,render:g,parseServerData:w,populateServerData:p,batch:u}=(0,a.privateApis)("I acknowledge that using private APIs means my theme or plugin will inevitably break in the next version of WordPress."),h=null!==(r=(0,a.getConfig)("core/router").navigationMode)&&void 0!==r?r:"regionBased",f=new Map,v=e=>{const t=new URL(e,window.location.href);return t.pathname+t.search},m=async(e,{vdom:t}={})=>{const o={body:void 0};if("regionBased"===h){const i=`data-${s}-router-region`;e.querySelectorAll(`[${i}]`).forEach((e=>{const n=e.getAttribute(i);o[n]=t?.has(e)?t.get(e):c(e)}))}const i=e.querySelector("title")?.innerText,n=w(e);return{regions:o,head:undefined,title:i,initialData:n}},y=async e=>{if("regionBased"===h){const t=`data-${s}-router-region`;u((()=>{p(e.initialData),document.querySelectorAll(`[${t}]`).forEach((o=>{const i=o.getAttribute(t),n=d(o);g(e.regions[i],n)}))}))}e.title&&(document.title=e.title)},x=e=>(window.location.assign(e),new Promise((()=>{})));window.addEventListener("popstate",(async()=>{const e=v(window.location.href),t=f.has(e)&&await f.get(e);t?(await y(t),A.url=window.location.href):window.location.reload()})),f.set(v(window.location.href),Promise.resolve(m(document,{vdom:l})));let b="",S=!1;const P={loading:"Loading page, please wait.",loaded:"Page Loaded."},{state:A,actions:D}=(0,a.store)("core/router",{state:{url:window.location.href,navigation:{hasStarted:!1,hasFinished:!1}},actions:{*navigate(e,t={}){const{clientNavigationDisabled:o}=(0,a.getConfig)();o&&(yield x(e));const i=v(e),{navigation:n}=A,{loadingAnimation:r=!0,screenReaderAnnouncement:s=!0,timeout:d=1e4}=t;b=e,D.prefetch(i,t);const l=new Promise((e=>setTimeout(e,d))),c=setTimeout((()=>{b===e&&(r&&(n.hasStarted=!0,n.hasFinished=!1),s&&C("loading"))}),400),g=yield Promise.race([f.get(i),l]);if(clearTimeout(c),b===e)if(g&&!g.initialData?.config?.["core/router"]?.clientNavigationDisabled){yield y(g),window.history[t.replace?"replaceState":"pushState"]({},"",e),A.url=e,r&&(n.hasStarted=!1,n.hasFinished=!0),s&&C("loaded");const{hash:o}=new URL(e,window.location.href);o&&document.querySelector(o)?.scrollIntoView()}else yield x(e)},prefetch(e,t={}){const{clientNavigationDisabled:o}=(0,a.getConfig)();if(o)return;const i=v(e);!t.force&&f.has(i)||f.set(i,(async(e,{html:t})=>{try{if(!t){const o=await window.fetch(e);if(200!==o.status)return!1;t=await o.text()}const o=(new window.DOMParser).parseFromString(t,"text/html");return m(o)}catch(e){return!1}})(i,{html:t.html}))}}});function C(e){if(!S){S=!0;const e=document.getElementById("wp-script-module-data-@wordpress/interactivity-router")?.textContent;if(e)try{const t=JSON.parse(e);"string"==typeof t?.i18n?.loading&&(P.loading=t.i18n.loading),"string"==typeof t?.i18n?.loaded&&(P.loaded=t.i18n.loaded)}catch{}else A.navigation.texts?.loading&&(P.loading=A.navigation.texts.loading),A.navigation.texts?.loaded&&(P.loaded=A.navigation.texts.loaded)}const t=P[e];Promise.resolve().then(i.bind(i,317)).then((({speak:e})=>e(t)),(()=>{}))}var F=n.o,L=n.w;export{F as actions,L as state};
\ No newline at end of file
+import*as e from"@wordpress/interactivity";var t={317:e=>{e.exports=import("@wordpress/a11y")}},o={};function i(e){var n=o[e];if(void 0!==n)return n.exports;var a=o[e]={exports:{}};return t[e](a,a.exports,i),a.exports}i.d=(e,t)=>{for(var o in t)i.o(t,o)&&!i.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var n={};i.d(n,{o:()=>D,w:()=>A});const a=(e=>{var t={};return i.d(t,e),t})({getConfig:()=>e.getConfig,privateApis:()=>e.privateApis,store:()=>e.store});new Map;var r;const{directivePrefix:s,getRegionRootFragment:c,initialVdom:d,toVdom:l,render:g,parseServerData:u,populateServerData:w,batch:p}=(0,a.privateApis)("I acknowledge that using private APIs means my theme or plugin will inevitably break in the next version of WordPress."),h=null!==(r=(0,a.getConfig)("core/router").navigationMode)&&void 0!==r?r:"regionBased",f=new Map,v=e=>{const t=new URL(e,window.location.href);return t.pathname+t.search},m=async(e,{html:t})=>{try{if(!t){const o=new URL(e,window.location.href);if(o.origin!==window.location.origin)return!1;const i=await window.fetch(o.href);if(!(e=>{var t;if(200!==e.status)return!1;try{if(new URL(e.url).origin!==window.location.origin)return!1}catch{return!1}const o=null!==(t=e.headers.get("content-type"))&&void 0!==t?t:"";return!o.includes(",")&&"text/html"===o.split(";")[0].trim().toLowerCase()})(i))return!1;t=await i.text()}const o=(new window.DOMParser).parseFromString(t,"text/html");return y(o)}catch(e){return!1}},y=async(e,{vdom:t}={})=>{const o=Object.assign(Object.create(null),{body:void 0});if("regionBased"===h){const i=`data-${s}-router-region`;e.querySelectorAll(`[${i}]`).forEach((e=>{const n=e.getAttribute(i);o[n]=t?.has(e)?t.get(e):l(e)}))}const i=e.querySelector("title")?.innerText,n=u(e);return{regions:o,head:undefined,title:i,initialData:n}},b=async e=>{if("regionBased"===h){const t=`data-${s}-router-region`;p((()=>{w(e.initialData),document.querySelectorAll(`[${t}]`).forEach((o=>{const i=o.getAttribute(t),n=c(o);g(e.regions[i],n)}))}))}e.title&&(document.title=e.title)},x=e=>(window.location.assign(e),new Promise((()=>{})));window.addEventListener("popstate",(async()=>{const e=v(window.location.href),t=f.has(e)&&await f.get(e);t?(await b(t),A.url=window.location.href):window.location.reload()})),f.set(v(window.location.href),Promise.resolve(y(document,{vdom:d})));let S="",P=!1;const O={loading:"Loading page, please wait.",loaded:"Page Loaded."},{state:A,actions:D}=(0,a.store)("core/router",{state:{url:window.location.href,navigation:{hasStarted:!1,hasFinished:!1}},actions:{*navigate(e,t={}){t=Object.assign(Object.create(null),t);const{clientNavigationDisabled:o}=(0,a.getConfig)();o&&(yield x(e));const i=v(e),{navigation:n}=A,{loadingAnimation:r=!0,screenReaderAnnouncement:s=!0,timeout:c=1e4}=t;S=e,D.prefetch(i,t);const d=new Promise((e=>setTimeout(e,c))),l=setTimeout((()=>{S===e&&(r&&(n.hasStarted=!0,n.hasFinished=!1),s&&L("loading"))}),400),g=yield Promise.race([f.get(i),d]);if(clearTimeout(l),S===e)if(g&&!g.initialData?.config?.["core/router"]?.clientNavigationDisabled){yield b(g),window.history[t.replace?"replaceState":"pushState"]({},"",e),A.url=e,r&&(n.hasStarted=!1,n.hasFinished=!0),s&&L("loaded");const{hash:o}=new URL(e,window.location.href);o&&document.querySelector(o)?.scrollIntoView()}else yield x(e)},prefetch(e,t={}){t=Object.assign(Object.create(null),t);const{clientNavigationDisabled:o}=(0,a.getConfig)();if(o)return;const i=v(e);!t.force&&f.has(i)||f.set(i,m(i,{html:t.html}))}}});function L(e){if(!P){P=!0;const e=document.querySelector('script[id="wp-script-module-data-@wordpress/interactivity-router"]');if(e instanceof HTMLScriptElement)try{const t=JSON.parse(e.text);"string"==typeof t?.i18n?.loading&&(O.loading=t.i18n.loading),"string"==typeof t?.i18n?.loaded&&(O.loaded=t.i18n.loaded)}catch{}else A.navigation.texts?.loading&&(O.loading=A.navigation.texts.loading),A.navigation.texts?.loaded&&(O.loaded=A.navigation.texts.loaded)}const t=O[e];Promise.resolve().then(i.bind(i,317)).then((({speak:e})=>e(t)),(()=>{}))}var j=n.o,R=n.w;export{j as actions,R as state};
\ No newline at end of file
diff -Nru wordpress-6.8.10+dfsg1/wp-includes/kses.php wordpress-6.8.12+dfsg1/wp-includes/kses.php
--- wordpress-6.8.10+dfsg1/wp-includes/kses.php 2026-08-06 17:35:49.211694000 +0000
+++ wordpress-6.8.12+dfsg1/wp-includes/kses.php 2026-10-28 15:49:05.061274000 +0000
@@ -1344,6 +1344,21 @@
}
}
+ /*
+ * An Interactivity API binding replaces an attribute value when the content is rendered,
+ * after KSES has checked it. Where KSES restricts attribute values on an element, only
+ * bindings of attributes it allows there with any value are kept.
+ */
+ if (
+ str_starts_with( $name_low, 'data-wp-bind--' ) &&
+ _wp_kses_directive_binds_value_restricted_attribute( $name_low, $allowed_attr )
+ ) {
+ $name = '';
+ $value = '';
+ $whole = '';
+ return false;
+ }
+
if ( 'style' === $name_low ) {
$new_value = safecss_filter_attr( $value );
@@ -2784,4 +2799,91 @@
}
return false;
+}
+
+/**
+ * Determines whether KSES restricts the value of any attribute of an element.
+ *
+ * An attribute rule other than `required` and `valueless` restricts the value itself,
+ * for example `values` or `value_callback`.
+ *
+ * @since 6.8.12
+ * @access private
+ * @ignore
+ *
+ * @param array|bool $allowed_attributes The attributes KSES allows on the element.
+ * @return bool Whether KSES restricts the value of any attribute of the element.
+ */
+function _wp_kses_restricts_attribute_values( $allowed_attributes ): bool {
+ if ( ! is_array( $allowed_attributes ) ) {
+ return false;
+ }
+
+ foreach ( $allowed_attributes as $attribute_rules ) {
+ if ( ! is_array( $attribute_rules ) ) {
+ continue;
+ }
+ foreach ( array_keys( $attribute_rules ) as $rule ) {
+ if ( ! in_array( strtolower( (string) $rule ), array( 'required', 'valueless' ), true ) ) {
+ return true;
+ }
+ }
+ }
+
+ return false;
+}
+
+/**
+ * Determines whether a directive binds an attribute whose value KSES restricts.
+ *
+ * This only applies to elements for which KSES restricts the value of at least one
+ * attribute. On those elements, a `data-wp-bind` directive is reported unless it binds
+ * an attribute which KSES allows there with any value. KSES calls this to keep such a
+ * directive out of content saved by an author who cannot post unfiltered HTML.
+ *
+ * @since 6.8.12
+ * @access private
+ * @ignore
+ *
+ * @param string $directive_name The directive attribute name, in lowercase.
+ * @param array|bool $allowed_attributes The attributes KSES allows on the element.
+ * @return bool Whether the directive binds an attribute whose value KSES restricts.
+ */
+function _wp_kses_directive_binds_value_restricted_attribute( string $directive_name, $allowed_attributes ): bool {
+ if ( ! str_starts_with( $directive_name, 'data-wp-bind--' ) ) {
+ return false;
+ }
+
+ if ( ! _wp_kses_restricts_attribute_values( $allowed_attributes ) ) {
+ return false;
+ }
+
+ /*
+ * Both the whole remainder of the name and the part before a unique ID are checked, so
+ * that the result does not depend on how the unique ID is parsed: a runtime that supports
+ * unique IDs does not apply such a binding at all, and an older one binds the whole
+ * remainder as the attribute name.
+ */
+ $bound_attribute = substr( $directive_name, strlen( 'data-wp-bind--' ) );
+ $bound_attributes = array( $bound_attribute );
+ $unique_id_index = strpos( $bound_attribute, '---' );
+ if ( false !== $unique_id_index ) {
+ $bound_attributes[] = substr( $bound_attribute, 0, $unique_id_index );
+ }
+
+ foreach ( $bound_attributes as $attribute_name ) {
+ if ( isset( $allowed_attributes[ $attribute_name ] ) ) {
+ $rules = $allowed_attributes[ $attribute_name ];
+ } elseif ( 1 === preg_match( '/^data-[a-z0-9_-]+$/', $attribute_name ) && isset( $allowed_attributes['data-*'] ) ) {
+ $rules = $allowed_attributes['data-*'];
+ } else {
+ return true;
+ }
+
+ if ( ! $rules || is_array( $rules ) ) {
+ return true;
+ }
+ }
+
+ return false;
}
diff -Nru wordpress-6.8.10+dfsg1/wp-includes/post.php wordpress-6.8.12+dfsg1/wp-includes/post.php
--- wordpress-6.8.10+dfsg1/wp-includes/post.php 2025-03-25 06:45:28.687052000 +0000
+++ wordpress-6.8.12+dfsg1/wp-includes/post.php 2026-10-06 15:06:43.947417000 +0000
@@ -5739,63 +5739,71 @@
*/
do_action( 'transition_post_status', $new_status, $old_status, $post );
- /**
- * Fires when a post is transitioned from one status to another.
- *
- * The dynamic portions of the hook name, `$new_status` and `$old_status`,
- * refer to the old and new post statuses, respectively.
- *
- * Possible hook names include:
- *
- * - `draft_to_publish`
- * - `publish_to_trash`
- * - `pending_to_draft`
- *
- * @since 2.3.0
- *
- * @param WP_Post $post Post object.
- */
- do_action( "{$old_status}_to_{$new_status}", $post );
+ $new_status_object = get_post_status_object( $new_status );
+ $old_status_valid = get_post_status_object( $old_status ) || 'new' === $old_status;
+ $post_type_object = get_post_type_object( $post->post_type );
- /**
- * Fires when a post is transitioned from one status to another.
- *
- * The dynamic portions of the hook name, `$new_status` and `$post->post_type`,
- * refer to the new post status and post type, respectively.
- *
- * Possible hook names include:
- *
- * - `draft_post`
- * - `future_post`
- * - `pending_post`
- * - `private_post`
- * - `publish_post`
- * - `trash_post`
- * - `draft_page`
- * - `future_page`
- * - `pending_page`
- * - `private_page`
- * - `publish_page`
- * - `trash_page`
- * - `publish_attachment`
- * - `trash_attachment`
- *
- * Please note: When this action is hooked using a particular post status (like
- * 'publish', as `publish_{$post->post_type}`), it will fire both when a post is
- * first transitioned to that status from something else, as well as upon
- * subsequent post updates (old and new status are both the same).
- *
- * Therefore, if you are looking to only fire a callback when a post is first
- * transitioned to a status, use the {@see 'transition_post_status'} hook instead.
- *
- * @since 2.3.0
- * @since 5.9.0 Added `$old_status` parameter.
- *
- * @param int $post_id Post ID.
- * @param WP_Post $post Post object.
- * @param string $old_status Old post status.
- */
- do_action( "{$new_status}_{$post->post_type}", $post->ID, $post, $old_status );
+ if ( $new_status_object && $old_status_valid ) {
+ /**
+ * Fires when a post is transitioned from one status to another.
+ *
+ * The dynamic portions of the hook name, `$new_status` and `$old_status`,
+ * refer to the old and new post statuses, respectively.
+ *
+ * Possible hook names include:
+ *
+ * - `draft_to_publish`
+ * - `publish_to_trash`
+ * - `pending_to_draft`
+ *
+ * @since 2.3.0
+ *
+ * @param WP_Post $post Post object.
+ */
+ do_action( "{$old_status}_to_{$new_status}", $post );
+ }
+
+ if ( $new_status_object && $post_type_object ) {
+ /**
+ * Fires when a post is transitioned from one status to another.
+ *
+ * The dynamic portions of the hook name, `$new_status` and `$post->post_type`,
+ * refer to the new post status and post type, respectively.
+ *
+ * Possible hook names include:
+ *
+ * - `draft_post`
+ * - `future_post`
+ * - `pending_post`
+ * - `private_post`
+ * - `publish_post`
+ * - `trash_post`
+ * - `draft_page`
+ * - `future_page`
+ * - `pending_page`
+ * - `private_page`
+ * - `publish_page`
+ * - `trash_page`
+ * - `publish_attachment`
+ * - `trash_attachment`
+ *
+ * Please note: When this action is hooked using a particular post status (like
+ * 'publish', as `publish_{$post->post_type}`), it will fire both when a post is
+ * first transitioned to that status from something else, as well as upon
+ * subsequent post updates (old and new status are both the same).
+ *
+ * Therefore, if you are looking to only fire a callback when a post is first
+ * transitioned to a status, use the {@see 'transition_post_status'} hook instead.
+ *
+ * @since 2.3.0
+ * @since 5.9.0 Added `$old_status` parameter.
+ *
+ * @param int $post_id Post ID.
+ * @param WP_Post $post Post object.
+ * @param string $old_status Old post status.
+ */
+ do_action( "{$new_status}_{$post->post_type}", $post->ID, $post, $old_status );
+ }
}
/**
diff -Nru wordpress-6.8.10+dfsg1/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php wordpress-6.8.12+dfsg1/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
--- wordpress-6.8.10+dfsg1/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php 2025-09-30 16:52:31.715927000 +0000
+++ wordpress-6.8.12+dfsg1/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php 2026-10-06 15:06:43.947417000 +0000
@@ -695,7 +695,7 @@
);
}
- if ( ! empty( $request['sticky'] ) && ! current_user_can( $post_type->cap->edit_others_posts ) && ! current_user_can( $post_type->cap->publish_posts ) ) {
+ if ( ! empty( $request['sticky'] ) && ( ! current_user_can( $post_type->cap->edit_others_posts ) || ! current_user_can( $post_type->cap->publish_posts ) ) ) {
return new WP_Error(
'rest_cannot_assign_sticky',
__( 'Sorry, you are not allowed to make posts sticky.' ),
@@ -906,7 +906,7 @@
);
}
- if ( ! empty( $request['sticky'] ) && ! current_user_can( $post_type->cap->edit_others_posts ) && ! current_user_can( $post_type->cap->publish_posts ) ) {
+ if ( isset( $request['sticky'] ) && is_sticky( $post->ID ) !== (bool) $request['sticky'] && ( ! current_user_can( $post_type->cap->edit_others_posts ) || ! current_user_can( $post_type->cap->publish_posts ) ) ) {
return new WP_Error(
'rest_cannot_assign_sticky',
__( 'Sorry, you are not allowed to make posts sticky.' ),
diff -Nru wordpress-6.8.10+dfsg1/wp-includes/version.php wordpress-6.8.12+dfsg1/wp-includes/version.php
--- wordpress-6.8.10+dfsg1/wp-includes/version.php 2026-09-22 13:00:22.000000000 +0000
+++ wordpress-6.8.12+dfsg1/wp-includes/version.php 2026-10-28 16:02:46.000000000 +0000
@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
-$wp_version = '6.8.10';
+$wp_version = '6.8.12';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
diff -Nru wordpress-6.8.10+dfsg1/wp-signup.php wordpress-6.8.12+dfsg1/wp-signup.php
--- wordpress-6.8.10+dfsg1/wp-signup.php 2026-08-06 17:35:49.211694000 +0000
+++ wordpress-6.8.12+dfsg1/wp-signup.php 2026-10-28 15:49:05.061274000 +0000
@@ -563,7 +563,7 @@
untrailingslashit( $domain . $path )
),
esc_url( $login_url ),
- $user_name
+ esc_html( $user_name )
);
?>