run:R W Run
99.07 KB
2026-03-11 16:18:51
R W Run
49.64 KB
2026-03-11 16:18:51
R W Run
86.28 KB
2026-03-11 16:18:51
R W Run
40.23 KB
2026-03-11 16:18:51
R W Run
error_log
📄debug.js
1/******/ var __webpack_modules__ = ({
2
3/***/ 434:
4/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
5
6
7// EXPORTS
8__webpack_require__.d(__webpack_exports__, {
9 zj: () => (/* reexport */ getConfig),
10 SD: () => (/* reexport */ getContext),
11 V6: () => (/* reexport */ getElement),
12 $K: () => (/* reexport */ getServerContext),
13 vT: () => (/* reexport */ getServerState),
14 jb: () => (/* binding */ privateApis),
15 yT: () => (/* reexport */ splitTask),
16 M_: () => (/* reexport */ store),
17 hb: () => (/* reexport */ useCallback),
18 vJ: () => (/* reexport */ useEffect),
19 ip: () => (/* reexport */ useInit),
20 Nf: () => (/* reexport */ useLayoutEffect),
21 Kr: () => (/* reexport */ useMemo),
22 li: () => (/* reexport */ A),
23 J0: () => (/* reexport */ d),
24 FH: () => (/* reexport */ useWatch),
25 v4: () => (/* reexport */ withScope),
26 mh: () => (/* reexport */ withSyncEvent)
27});
28
29// EXTERNAL MODULE: ./node_modules/preact/dist/preact.module.js
30var preact_module = __webpack_require__(622);
31;// ./node_modules/preact/hooks/dist/hooks.module.js
32var hooks_module_t,r,hooks_module_u,i,hooks_module_o=0,hooks_module_f=[],hooks_module_c=preact_module/* options */.fF,e=hooks_module_c.__b,a=hooks_module_c.__r,v=hooks_module_c.diffed,l=hooks_module_c.__c,m=hooks_module_c.unmount,s=hooks_module_c.__;function p(n,t){hooks_module_c.__h&&hooks_module_c.__h(r,n,hooks_module_o||t),hooks_module_o=0;var u=r.__H||(r.__H={__:[],__h:[]});return n>=u.__.length&&u.__.push({}),u.__[n]}function d(n){return hooks_module_o=1,h(D,n)}function h(n,u,i){var o=p(hooks_module_t++,2);if(o.t=n,!o.__c&&(o.__=[i?i(u):D(void 0,u),function(n){var t=o.__N?o.__N[0]:o.__[0],r=o.t(t,n);t!==r&&(o.__N=[r,o.__[1]],o.__c.setState({}))}],o.__c=r,!r.__f)){var f=function(n,t,r){if(!o.__c.__H)return!0;var u=o.__c.__H.__.filter(function(n){return!!n.__c});if(u.every(function(n){return!n.__N}))return!c||c.call(this,n,t,r);var i=o.__c.props!==n;return u.forEach(function(n){if(n.__N){var t=n.__[0];n.__=n.__N,n.__N=void 0,t!==n.__[0]&&(i=!0)}}),c&&c.call(this,n,t,r)||i};r.__f=!0;var c=r.shouldComponentUpdate,e=r.componentWillUpdate;r.componentWillUpdate=function(n,t,r){if(this.__e){var u=c;c=void 0,f(n,t,r),c=u}e&&e.call(this,n,t,r)},r.shouldComponentUpdate=f}return o.__N||o.__}function y(n,u){var i=p(hooks_module_t++,3);!hooks_module_c.__s&&C(i.__H,u)&&(i.__=n,i.u=u,r.__H.__h.push(i))}function _(n,u){var i=p(hooks_module_t++,4);!hooks_module_c.__s&&C(i.__H,u)&&(i.__=n,i.u=u,r.__h.push(i))}function A(n){return hooks_module_o=5,T(function(){return{current:n}},[])}function F(n,t,r){hooks_module_o=6,_(function(){if("function"==typeof n){var r=n(t());return function(){n(null),r&&"function"==typeof r&&r()}}if(n)return n.current=t(),function(){return n.current=null}},null==r?r:r.concat(n))}function T(n,r){var u=p(hooks_module_t++,7);return C(u.__H,r)&&(u.__=n(),u.__H=r,u.__h=n),u.__}function q(n,t){return hooks_module_o=8,T(function(){return n},t)}function x(n){var u=r.context[n.__c],i=p(hooks_module_t++,9);return i.c=n,u?(null==i.__&&(i.__=!0,u.sub(r)),u.props.value):n.__}function P(n,t){hooks_module_c.useDebugValue&&hooks_module_c.useDebugValue(t?t(n):n)}function b(n){var u=p(hooks_module_t++,10),i=d();return u.__=n,r.componentDidCatch||(r.componentDidCatch=function(n,t){u.__&&u.__(n,t),i[1](n)}),[i[0],function(){i[1](void 0)}]}function g(){var n=p(hooks_module_t++,11);if(!n.__){for(var u=r.__v;null!==u&&!u.__m&&null!==u.__;)u=u.__;var i=u.__m||(u.__m=[0,0]);n.__="P"+i[0]+"-"+i[1]++}return n.__}function j(){for(var n;n=hooks_module_f.shift();)if(n.__P&&n.__H)try{n.__H.__h.forEach(z),n.__H.__h.forEach(B),n.__H.__h=[]}catch(t){n.__H.__h=[],hooks_module_c.__e(t,n.__v)}}hooks_module_c.__b=function(n){r=null,e&&e(n)},hooks_module_c.__=function(n,t){n&&t.__k&&t.__k.__m&&(n.__m=t.__k.__m),s&&s(n,t)},hooks_module_c.__r=function(n){a&&a(n),hooks_module_t=0;var i=(r=n.__c).__H;i&&(hooks_module_u===r?(i.__h=[],r.__h=[],i.__.forEach(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(i.__h.forEach(z),i.__h.forEach(B),i.__h=[],hooks_module_t=0)),hooks_module_u=r},hooks_module_c.diffed=function(n){v&&v(n);var t=n.__c;t&&t.__H&&(t.__H.__h.length&&(1!==hooks_module_f.push(t)&&i===hooks_module_c.requestAnimationFrame||((i=hooks_module_c.requestAnimationFrame)||w)(j)),t.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0})),hooks_module_u=r=null},hooks_module_c.__c=function(n,t){t.some(function(n){try{n.__h.forEach(z),n.__h=n.__h.filter(function(n){return!n.__||B(n)})}catch(r){t.some(function(n){n.__h&&(n.__h=[])}),t=[],hooks_module_c.__e(r,n.__v)}}),l&&l(n,t)},hooks_module_c.unmount=function(n){m&&m(n);var t,r=n.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{z(n)}catch(n){t=n}}),r.__H=void 0,t&&hooks_module_c.__e(t,r.__v))};var k="function"==typeof requestAnimationFrame;function w(n){var t,r=function(){clearTimeout(u),k&&cancelAnimationFrame(t),setTimeout(n)},u=setTimeout(r,35);k&&(t=requestAnimationFrame(r))}function z(n){var t=r,u=n.__c;"function"==typeof u&&(n.__c=void 0,u()),r=t}function B(n){var t=r;n.__c=n.__(),r=t}function C(n,t){return!n||n.length!==t.length||t.some(function(t,r){return t!==n[r]})}function D(n,t){return"function"==typeof t?t(n):t}
33
34;// ./node_modules/@preact/signals-core/dist/signals-core.module.js
35var signals_core_module_i=Symbol.for("preact-signals");function signals_core_module_t(){if(!(signals_core_module_s>1)){var i,t=!1;while(void 0!==signals_core_module_h){var r=signals_core_module_h;signals_core_module_h=void 0;signals_core_module_f++;while(void 0!==r){var o=r.o;r.o=void 0;r.f&=-3;if(!(8&r.f)&&signals_core_module_c(r))try{r.c()}catch(r){if(!t){i=r;t=!0}}r=o}}signals_core_module_f=0;signals_core_module_s--;if(t)throw i}else signals_core_module_s--}function signals_core_module_r(i){if(signals_core_module_s>0)return i();signals_core_module_s++;try{return i()}finally{signals_core_module_t()}}var signals_core_module_o=void 0;function n(i){var t=signals_core_module_o;signals_core_module_o=void 0;try{return i()}finally{signals_core_module_o=t}}var signals_core_module_h=void 0,signals_core_module_s=0,signals_core_module_f=0,signals_core_module_v=0;function signals_core_module_e(i){if(void 0!==signals_core_module_o){var t=i.n;if(void 0===t||t.t!==signals_core_module_o){t={i:0,S:i,p:signals_core_module_o.s,n:void 0,t:signals_core_module_o,e:void 0,x:void 0,r:t};if(void 0!==signals_core_module_o.s)signals_core_module_o.s.n=t;signals_core_module_o.s=t;i.n=t;if(32&signals_core_module_o.f)i.S(t);return t}else if(-1===t.i){t.i=0;if(void 0!==t.n){t.n.p=t.p;if(void 0!==t.p)t.p.n=t.n;t.p=signals_core_module_o.s;t.n=void 0;signals_core_module_o.s.n=t;signals_core_module_o.s=t}return t}}}function signals_core_module_u(i,t){this.v=i;this.i=0;this.n=void 0;this.t=void 0;this.W=null==t?void 0:t.watched;this.Z=null==t?void 0:t.unwatched;this.name=null==t?void 0:t.name}signals_core_module_u.prototype.brand=signals_core_module_i;signals_core_module_u.prototype.h=function(){return!0};signals_core_module_u.prototype.S=function(i){var t=this,r=this.t;if(r!==i&&void 0===i.e){i.x=r;this.t=i;if(void 0!==r)r.e=i;else n(function(){var i;null==(i=t.W)||i.call(t)})}};signals_core_module_u.prototype.U=function(i){var t=this;if(void 0!==this.t){var r=i.e,o=i.x;if(void 0!==r){r.x=o;i.e=void 0}if(void 0!==o){o.e=r;i.x=void 0}if(i===this.t){this.t=o;if(void 0===o)n(function(){var i;null==(i=t.Z)||i.call(t)})}}};signals_core_module_u.prototype.subscribe=function(i){var t=this;return E(function(){var r=t.value,n=signals_core_module_o;signals_core_module_o=void 0;try{i(r)}finally{signals_core_module_o=n}},{name:"sub"})};signals_core_module_u.prototype.valueOf=function(){return this.value};signals_core_module_u.prototype.toString=function(){return this.value+""};signals_core_module_u.prototype.toJSON=function(){return this.value};signals_core_module_u.prototype.peek=function(){var i=signals_core_module_o;signals_core_module_o=void 0;try{return this.value}finally{signals_core_module_o=i}};Object.defineProperty(signals_core_module_u.prototype,"value",{get:function(){var i=signals_core_module_e(this);if(void 0!==i)i.i=this.i;return this.v},set:function(i){if(i!==this.v){if(signals_core_module_f>100)throw new Error("Cycle detected");this.v=i;this.i++;signals_core_module_v++;signals_core_module_s++;try{for(var r=this.t;void 0!==r;r=r.x)r.t.N()}finally{signals_core_module_t()}}}});function signals_core_module_d(i,t){return new signals_core_module_u(i,t)}function signals_core_module_c(i){for(var t=i.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 signals_core_module_a(i){for(var t=i.s;void 0!==t;t=t.n){var r=t.S.n;if(void 0!==r)t.r=r;t.S.n=t;t.i=-1;if(void 0===t.n){i.s=t;break}}}function signals_core_module_l(i){var t=i.s,r=void 0;while(void 0!==t){var o=t.p;if(-1===t.i){t.S.U(t);if(void 0!==o)o.n=t.n;if(void 0!==t.n)t.n.p=o}else r=t;t.S.n=t.r;if(void 0!==t.r)t.r=void 0;t=o}i.s=r}function signals_core_module_y(i,t){signals_core_module_u.call(this,void 0);this.x=i;this.s=void 0;this.g=signals_core_module_v-1;this.f=4;this.W=null==t?void 0:t.watched;this.Z=null==t?void 0:t.unwatched;this.name=null==t?void 0:t.name}signals_core_module_y.prototype=new signals_core_module_u;signals_core_module_y.prototype.h=function(){this.f&=-3;if(1&this.f)return!1;if(32==(36&this.f))return!0;this.f&=-5;if(this.g===signals_core_module_v)return!0;this.g=signals_core_module_v;this.f|=1;if(this.i>0&&!signals_core_module_c(this)){this.f&=-2;return!0}var i=signals_core_module_o;try{signals_core_module_a(this);signals_core_module_o=this;var t=this.x();if(16&this.f||this.v!==t||0===this.i){this.v=t;this.f&=-17;this.i++}}catch(i){this.v=i;this.f|=16;this.i++}signals_core_module_o=i;signals_core_module_l(this);this.f&=-2;return!0};signals_core_module_y.prototype.S=function(i){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}signals_core_module_u.prototype.S.call(this,i)};signals_core_module_y.prototype.U=function(i){if(void 0!==this.t){signals_core_module_u.prototype.U.call(this,i);if(void 0===this.t){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}}};signals_core_module_y.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var i=this.t;void 0!==i;i=i.x)i.t.N()}};Object.defineProperty(signals_core_module_y.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var i=signals_core_module_e(this);this.h();if(void 0!==i)i.i=this.i;if(16&this.f)throw this.v;return this.v}});function signals_core_module_w(i,t){return new signals_core_module_y(i,t)}function signals_core_module_(i){var r=i.u;i.u=void 0;if("function"==typeof r){signals_core_module_s++;var n=signals_core_module_o;signals_core_module_o=void 0;try{r()}catch(t){i.f&=-2;i.f|=8;signals_core_module_b(i);throw t}finally{signals_core_module_o=n;signals_core_module_t()}}}function signals_core_module_b(i){for(var t=i.s;void 0!==t;t=t.n)t.S.U(t);i.x=void 0;i.s=void 0;signals_core_module_(i)}function signals_core_module_g(i){if(signals_core_module_o!==this)throw new Error("Out-of-order effect");signals_core_module_l(this);signals_core_module_o=i;this.f&=-2;if(8&this.f)signals_core_module_b(this);signals_core_module_t()}function signals_core_module_p(i,t){this.x=i;this.u=void 0;this.s=void 0;this.o=void 0;this.f=32;this.name=null==t?void 0:t.name}signals_core_module_p.prototype.c=function(){var i=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var t=this.x();if("function"==typeof t)this.u=t}finally{i()}};signals_core_module_p.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1;this.f&=-9;signals_core_module_(this);signals_core_module_a(this);signals_core_module_s++;var i=signals_core_module_o;signals_core_module_o=this;return signals_core_module_g.bind(this,i)};signals_core_module_p.prototype.N=function(){if(!(2&this.f)){this.f|=2;this.o=signals_core_module_h;signals_core_module_h=this}};signals_core_module_p.prototype.d=function(){this.f|=8;if(!(1&this.f))signals_core_module_b(this)};signals_core_module_p.prototype.dispose=function(){this.d()};function E(i,t){var r=new signals_core_module_p(i,t);try{r.c()}catch(i){r.d();throw i}var o=r.d.bind(r);o[Symbol.dispose]=o;return o}
36;// ./node_modules/@preact/signals/dist/signals.module.js
37var signals_module_v,signals_module_s;function signals_module_l(i,n){preact_module/* options */.fF[i]=n.bind(null,preact_module/* options */.fF[i]||function(){})}function signals_module_d(i){if(signals_module_s)signals_module_s();signals_module_s=i&&i.S()}function signals_module_h(i){var r=this,f=i.data,o=useSignal(f);o.value=f;var e=T(function(){var i=r.__v;while(i=i.__)if(i.__c){i.__c.__$f|=4;break}r.__$u.c=function(){var i,t=r.__$u.S(),f=e.value;t();if((0,preact_module/* isValidElement */.zO)(f)||3!==(null==(i=r.base)?void 0:i.nodeType)){r.__$f|=1;r.setState({})}else r.base.data=f};return signals_core_module_w(function(){var i=o.value.value;return 0===i?0:!0===i?"":i||""})},[]);return e.value}signals_module_h.displayName="_st";Object.defineProperties(signals_core_module_u.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:signals_module_h},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});signals_module_l("__b",function(i,r){if("string"==typeof r.type){var n,t=r.props;for(var f in t)if("children"!==f){var o=t[f];if(o instanceof signals_core_module_u){if(!n)r.__np=n={};n[f]=o;t[f]=o.peek()}}}i(r)});signals_module_l("__r",function(i,r){signals_module_d();var n,t=r.__c;if(t){t.__$f&=-2;if(void 0===(n=t.__$u))t.__$u=n=function(i){var r;E(function(){r=this});r.c=function(){t.__$f|=1;t.setState({})};return r}()}signals_module_v=t;signals_module_d(n);i(r)});signals_module_l("__e",function(i,r,n,t){signals_module_d();signals_module_v=void 0;i(r,n,t)});signals_module_l("diffed",function(i,r){signals_module_d();signals_module_v=void 0;var n;if("string"==typeof r.type&&(n=r.__e)){var t=r.__np,f=r.props;if(t){var o=n.U;if(o)for(var e in o){var u=o[e];if(void 0!==u&&!(e in t)){u.d();o[e]=void 0}}else n.U=o={};for(var a in t){var c=o[a],s=t[a];if(void 0===c){c=signals_module_p(n,a,s,f);o[a]=c}else c.o(s,f)}}}i(r)});function signals_module_p(i,r,n,t){var f=r in i&&void 0===i.ownerSVGElement,o=signals_core_module_d(n);return{o:function(i,r){o.value=i;t=r},d:E(function(){var n=o.value.value;if(t[r]!==n){t[r]=n;if(f)i[r]=n;else if(n)i.setAttribute(r,n);else i.removeAttribute(r)}})}}signals_module_l("unmount",function(i,r){if("string"==typeof r.type){var n=r.__e;if(n){var t=n.U;if(t){n.U=void 0;for(var f in t){var o=t[f];if(o)o.d()}}}}else{var e=r.__c;if(e){var u=e.__$u;if(u){e.__$u=void 0;u.d()}}}i(r)});signals_module_l("__h",function(i,r,n,t){if(t<3||9===t)r.__$f|=2;i(r,n,t)});preact_module/* Component */.uA.prototype.shouldComponentUpdate=function(i,r){if(this.__R)return!0;var n=this.__$u,t=n&&void 0!==n.s;for(var f in r)return!0;if(this.__f||"boolean"==typeof this.u&&!0===this.u){if(!(t||2&this.__$f||4&this.__$f))return!0;if(1&this.__$f)return!0}else{if(!(t||4&this.__$f))return!0;if(3&this.__$f)return!0}for(var o in i)if("__source"!==o&&i[o]!==this.props[o])return!0;for(var e in this.props)if(!(e in i))return!0;return!1};function useSignal(i){return T(function(){return signals_core_module_d(i)},[])}function useComputed(i){var r=f(i);r.current=i;signals_module_v.__$f|=4;return t(function(){return u(function(){return r.current()})},[])}function useSignalEffect(i){var r=f(i);r.current=i;o(function(){return c(function(){return r.current()})},[])}
38;// ./node_modules/@wordpress/interactivity/build-module/namespaces.js
39const namespaceStack = [];
40const getNamespace = () => namespaceStack.slice(-1)[0];
41const setNamespace = (namespace) => {
42 namespaceStack.push(namespace);
43};
44const resetNamespace = () => {
45 namespaceStack.pop();
46};
47
48
49;// ./node_modules/@wordpress/interactivity/build-module/scopes.js
50
51
52
53const scopeStack = [];
54const getScope = () => scopeStack.slice(-1)[0];
55const setScope = (scope) => {
56 scopeStack.push(scope);
57};
58const resetScope = () => {
59 scopeStack.pop();
60};
61const throwNotInScope = (method) => {
62 throw Error(
63 `Cannot call \`${method}()\` when there is no scope. If you are using an async function, please consider using a generator instead. If you are using some sort of async callbacks, like \`setTimeout\`, please wrap the callback with \`withScope(callback)\`.`
64 );
65};
66const getContext = (namespace) => {
67 const scope = getScope();
68 if (true) {
69 if (!scope) {
70 throwNotInScope("getContext");
71 }
72 }
73 return scope.context[namespace || getNamespace()];
74};
75const getElement = () => {
76 const scope = getScope();
77 let deepReadOnlyOptions = {};
78 if (true) {
79 if (!scope) {
80 throwNotInScope("getElement");
81 }
82 deepReadOnlyOptions = {
83 errorMessage: "Don't mutate the attributes from `getElement`, use `data-wp-bind` to modify the attributes of an element instead."
84 };
85 }
86 const { ref, attributes } = scope;
87 return Object.freeze({
88 ref: ref.current,
89 attributes: deepReadOnly(attributes, deepReadOnlyOptions)
90 });
91};
92const navigationContextSignal = signals_core_module_d(0);
93function getServerContext(namespace) {
94 const scope = getScope();
95 if (true) {
96 if (!scope) {
97 throwNotInScope("getServerContext");
98 }
99 }
100 getServerContext.subscribe = navigationContextSignal.value;
101 return deepClone(scope.serverContext[namespace || getNamespace()]);
102}
103getServerContext.subscribe = 0;
104
105
106;// ./node_modules/@wordpress/interactivity/build-module/utils.js
107
108
109
110
111const afterNextFrame = (callback) => {
112 return new Promise((resolve) => {
113 const done = () => {
114 clearTimeout(timeout);
115 window.cancelAnimationFrame(raf);
116 setTimeout(() => {
117 callback();
118 resolve();
119 });
120 };
121 const timeout = setTimeout(done, 100);
122 const raf = window.requestAnimationFrame(done);
123 });
124};
125const splitTask = typeof window.scheduler?.yield === "function" ? window.scheduler.yield.bind(window.scheduler) : () => {
126 return new Promise((resolve) => {
127 setTimeout(resolve, 0);
128 });
129};
130const onDOMReady = (callback) => {
131 const [navigation] = performance.getEntriesByType("navigation");
132 if (navigation.domContentLoadedEventStart > 0) {
133 callback();
134 } else {
135 document.addEventListener("DOMContentLoaded", callback);
136 }
137};
138function createFlusher(compute, notify) {
139 let flush = () => void 0;
140 const dispose = E(function() {
141 flush = this.c.bind(this);
142 this.x = compute;
143 this.c = notify;
144 return compute();
145 });
146 return { flush, dispose };
147}
148function utils_useSignalEffect(callback) {
149 y(() => {
150 let eff = null;
151 let isExecuting = false;
152 const notify = async () => {
153 if (eff && !isExecuting) {
154 isExecuting = true;
155 await afterNextFrame(eff.flush);
156 isExecuting = false;
157 }
158 };
159 eff = createFlusher(callback, notify);
160 return eff.dispose;
161 }, []);
162}
163function withScope(func) {
164 const scope = getScope();
165 const ns = getNamespace();
166 let wrapped;
167 if (func?.constructor?.name === "GeneratorFunction") {
168 wrapped = async (...args) => {
169 const gen = func(...args);
170 let value;
171 let it;
172 let error;
173 while (true) {
174 setNamespace(ns);
175 setScope(scope);
176 try {
177 it = error ? gen.throw(error) : gen.next(value);
178 error = void 0;
179 } catch (e) {
180 throw e;
181 } finally {
182 resetScope();
183 resetNamespace();
184 }
185 try {
186 value = await it.value;
187 } catch (e) {
188 error = e;
189 }
190 if (it.done) {
191 if (error) {
192 throw error;
193 } else {
194 break;
195 }
196 }
197 }
198 return value;
199 };
200 } else {
201 wrapped = (...args) => {
202 setNamespace(ns);
203 setScope(scope);
204 try {
205 return func(...args);
206 } finally {
207 resetNamespace();
208 resetScope();
209 }
210 };
211 }
212 const syncAware = func;
213 if (syncAware.sync) {
214 const syncAwareWrapped = wrapped;
215 syncAwareWrapped.sync = true;
216 return syncAwareWrapped;
217 }
218 return wrapped;
219}
220function useWatch(callback) {
221 utils_useSignalEffect(withScope(callback));
222}
223function useInit(callback) {
224 y(withScope(callback), []);
225}
226function useEffect(callback, inputs) {
227 y(withScope(callback), inputs);
228}
229function useLayoutEffect(callback, inputs) {
230 _(withScope(callback), inputs);
231}
232function useCallback(callback, inputs) {
233 return q(withScope(callback), inputs);
234}
235function useMemo(factory, inputs) {
236 return T(withScope(factory), inputs);
237}
238const createRootFragment = (parent, replaceNode) => {
239 replaceNode = [].concat(replaceNode);
240 const sibling = replaceNode[replaceNode.length - 1].nextSibling;
241 function insert(child, root) {
242 parent.insertBefore(child, root || sibling);
243 }
244 return parent.__k = {
245 nodeType: 1,
246 parentNode: parent,
247 firstChild: replaceNode[0],
248 childNodes: replaceNode,
249 insertBefore: insert,
250 appendChild: insert,
251 removeChild(c) {
252 parent.removeChild(c);
253 },
254 contains(c) {
255 parent.contains(c);
256 }
257 };
258};
259function kebabToCamelCase(str) {
260 return str.replace(/^-+|-+$/g, "").toLowerCase().replace(/-([a-z])/g, function(_match, group1) {
261 return group1.toUpperCase();
262 });
263}
264const logged = /* @__PURE__ */ new Set();
265const warn = (message) => {
266 if (true) {
267 if (logged.has(message)) {
268 return;
269 }
270 console.warn(message);
271 try {
272 throw Error(message);
273 } catch (e) {
274 }
275 logged.add(message);
276 }
277};
278const isPlainObject = (candidate) => Boolean(
279 candidate && typeof candidate === "object" && candidate.constructor === Object
280);
281function withSyncEvent(callback) {
282 const syncAware = callback;
283 syncAware.sync = true;
284 return syncAware;
285}
286const readOnlyMap = /* @__PURE__ */ new WeakMap();
287const createDeepReadOnlyHandlers = (errorMessage) => {
288 const handleError = () => {
289 if (true) {
290 warn(errorMessage);
291 }
292 return false;
293 };
294 return {
295 get(target, prop) {
296 const value = target[prop];
297 if (value && typeof value === "object") {
298 return deepReadOnly(value, { errorMessage });
299 }
300 return value;
301 },
302 set: handleError,
303 deleteProperty: handleError,
304 defineProperty: handleError
305 };
306};
307function deepReadOnly(obj, options) {
308 const errorMessage = options?.errorMessage ?? "Cannot modify read-only object";
309 if (!readOnlyMap.has(obj)) {
310 const handlers = createDeepReadOnlyHandlers(errorMessage);
311 readOnlyMap.set(obj, new Proxy(obj, handlers));
312 }
313 return readOnlyMap.get(obj);
314}
315const navigationSignal = signals_core_module_d(0);
316function deepClone(source) {
317 if (isPlainObject(source)) {
318 return Object.fromEntries(
319 Object.entries(source).map(([key, value]) => [
320 key,
321 deepClone(value)
322 ])
323 );
324 }
325 if (Array.isArray(source)) {
326 return source.map((i) => deepClone(i));
327 }
328 return source;
329}
330
331
332;// ./node_modules/@wordpress/interactivity/build-module/proxies/registry.js
333const objToProxy = /* @__PURE__ */ new WeakMap();
334const proxyToObj = /* @__PURE__ */ new WeakMap();
335const proxyToNs = /* @__PURE__ */ new WeakMap();
336const supported = /* @__PURE__ */ new Set([Object, Array]);
337const createProxy = (namespace, obj, handlers) => {
338 if (!shouldProxy(obj)) {
339 throw Error("This object cannot be proxified.");
340 }
341 if (!objToProxy.has(obj)) {
342 const proxy = new Proxy(obj, handlers);
343 objToProxy.set(obj, proxy);
344 proxyToObj.set(proxy, obj);
345 proxyToNs.set(proxy, namespace);
346 }
347 return objToProxy.get(obj);
348};
349const getProxyFromObject = (obj) => objToProxy.get(obj);
350const getNamespaceFromProxy = (proxy) => proxyToNs.get(proxy);
351const shouldProxy = (candidate) => {
352 if (typeof candidate !== "object" || candidate === null) {
353 return false;
354 }
355 return !proxyToNs.has(candidate) && supported.has(candidate.constructor);
356};
357const getObjectFromProxy = (proxy) => proxyToObj.get(proxy);
358
359
360;// ./node_modules/@wordpress/interactivity/build-module/proxies/signals.js
361
362
363
364
365
366const NO_SCOPE = {};
367class PropSignal {
368 /**
369 * Proxy that holds the property this PropSignal is associated with.
370 */
371 owner;
372 /**
373 * Relation of computeds by scope. These computeds are read-only signals
374 * that depend on whether the property is a value or a getter and,
375 * therefore, can return different values depending on the scope in which
376 * the getter is accessed.
377 */
378 computedsByScope;
379 /**
380 * Signal with the value assigned to the related property.
381 */
382 valueSignal;
383 /**
384 * Signal with the getter assigned to the related property.
385 */
386 getterSignal;
387 /**
388 * Pending getter to be consolidated.
389 */
390 pendingGetter;
391 /**
392 * Structure that manages reactivity for a property in a state object, using
393 * signals to keep track of property value or getter modifications.
394 *
395 * @param owner Proxy that holds the property this instance is associated
396 * with.
397 */
398 constructor(owner) {
399 this.owner = owner;
400 this.computedsByScope = /* @__PURE__ */ new WeakMap();
401 }
402 /**
403 * Changes the internal value. If a getter was set before, it is set to
404 * `undefined`.
405 *
406 * @param value New value.
407 */
408 setValue(value) {
409 this.update({ value });
410 }
411 /**
412 * Changes the internal getter. If a value was set before, it is set to
413 * `undefined`.
414 *
415 * @param getter New getter.
416 */
417 setGetter(getter) {
418 this.update({ get: getter });
419 }
420 /**
421 * Changes the internal getter asynchronously.
422 *
423 * The update is made in a microtask, which prevents issues with getters
424 * accessing the state, and ensures the update occurs before any render.
425 *
426 * @param getter New getter.
427 */
428 setPendingGetter(getter) {
429 this.pendingGetter = getter;
430 queueMicrotask(() => this.consolidateGetter());
431 }
432 /**
433 * Consolidate the pending value of the getter.
434 */
435 consolidateGetter() {
436 const getter = this.pendingGetter;
437 if (getter) {
438 this.pendingGetter = void 0;
439 this.update({ get: getter });
440 }
441 }
442 /**
443 * Returns the computed that holds the result of evaluating the prop in the
444 * current scope.
445 *
446 * These computeds are read-only signals that depend on whether the property
447 * is a value or a getter and, therefore, can return different values
448 * depending on the scope in which the getter is accessed.
449 *
450 * @return Computed that depends on the scope.
451 */
452 getComputed() {
453 const scope = getScope() || NO_SCOPE;
454 if (!this.valueSignal && !this.getterSignal) {
455 this.update({});
456 }
457 if (this.pendingGetter) {
458 this.consolidateGetter();
459 }
460 if (!this.computedsByScope.has(scope)) {
461 const callback = () => {
462 const getter = this.getterSignal?.value;
463 return getter ? getter.call(this.owner) : this.valueSignal?.value;
464 };
465 setNamespace(getNamespaceFromProxy(this.owner));
466 this.computedsByScope.set(
467 scope,
468 signals_core_module_w(withScope(callback))
469 );
470 resetNamespace();
471 }
472 return this.computedsByScope.get(scope);
473 }
474 /**
475 * Updates the internal signals for the value and the getter of the
476 * corresponding prop.
477 *
478 * @param param0
479 * @param param0.get New getter.
480 * @param param0.value New value.
481 */
482 update({ get, value }) {
483 if (!this.valueSignal) {
484 this.valueSignal = signals_core_module_d(value);
485 this.getterSignal = signals_core_module_d(get);
486 } else if (value !== this.valueSignal.peek() || get !== this.getterSignal.peek()) {
487 signals_core_module_r(() => {
488 this.valueSignal.value = value;
489 this.getterSignal.value = get;
490 });
491 }
492 }
493}
494
495
496;// ./node_modules/@wordpress/interactivity/build-module/proxies/state.js
497
498
499
500
501
502const wellKnownSymbols = new Set(
503 Object.getOwnPropertyNames(Symbol).map((key) => Symbol[key]).filter((value) => typeof value === "symbol")
504);
505const proxyToProps = /* @__PURE__ */ new WeakMap();
506const hasPropSignal = (proxy, key) => proxyToProps.has(proxy) && proxyToProps.get(proxy).has(key);
507const getPropSignal = (proxy, key, initial) => {
508 if (!proxyToProps.has(proxy)) {
509 proxyToProps.set(proxy, /* @__PURE__ */ new Map());
510 }
511 key = typeof key === "number" ? `${key}` : key;
512 const props = proxyToProps.get(proxy);
513 if (!props.has(key)) {
514 const ns = getNamespaceFromProxy(proxy);
515 const prop = new PropSignal(proxy);
516 props.set(key, prop);
517 if (initial) {
518 const { get, value } = initial;
519 if (get) {
520 prop.setGetter(get);
521 } else {
522 prop.setValue(
523 shouldProxy(value) ? proxifyState(ns, value) : value
524 );
525 }
526 }
527 }
528 return props.get(key);
529};
530const objToIterable = /* @__PURE__ */ new WeakMap();
531let peeking = false;
532const PENDING_GETTER = Symbol("PENDING_GETTER");
533const stateHandlers = {
534 get(target, key, receiver) {
535 if (peeking || !target.hasOwnProperty(key) && key in target || typeof key === "symbol" && wellKnownSymbols.has(key)) {
536 return Reflect.get(target, key, receiver);
537 }
538 const desc = Object.getOwnPropertyDescriptor(target, key);
539 const prop = getPropSignal(receiver, key, desc);
540 const result = prop.getComputed().value;
541 if (result === PENDING_GETTER) {
542 throw PENDING_GETTER;
543 }
544 if (typeof result === "function") {
545 const ns = getNamespaceFromProxy(receiver);
546 return (...args) => {
547 setNamespace(ns);
548 try {
549 return result.call(receiver, ...args);
550 } finally {
551 resetNamespace();
552 }
553 };
554 }
555 return result;
556 },
557 set(target, key, value, receiver) {
558 setNamespace(getNamespaceFromProxy(receiver));
559 try {
560 return Reflect.set(target, key, value, receiver);
561 } finally {
562 resetNamespace();
563 }
564 },
565 defineProperty(target, key, desc) {
566 const isNew = !(key in target);
567 const result = Reflect.defineProperty(target, key, desc);
568 if (result) {
569 const receiver = getProxyFromObject(target);
570 const prop = getPropSignal(receiver, key);
571 const { get, value } = desc;
572 if (get) {
573 prop.setGetter(get);
574 } else {
575 const ns = getNamespaceFromProxy(receiver);
576 prop.setValue(
577 shouldProxy(value) ? proxifyState(ns, value) : value
578 );
579 }
580 if (isNew && objToIterable.has(target)) {
581 objToIterable.get(target).value++;
582 }
583 if (Array.isArray(target) && proxyToProps.get(receiver)?.has("length")) {
584 const length = getPropSignal(receiver, "length");
585 length.setValue(target.length);
586 }
587 }
588 return result;
589 },
590 deleteProperty(target, key) {
591 const result = Reflect.deleteProperty(target, key);
592 if (result) {
593 const prop = getPropSignal(getProxyFromObject(target), key);
594 prop.setValue(void 0);
595 if (objToIterable.has(target)) {
596 objToIterable.get(target).value++;
597 }
598 }
599 return result;
600 },
601 ownKeys(target) {
602 if (!objToIterable.has(target)) {
603 objToIterable.set(target, signals_core_module_d(0));
604 }
605 objToIterable._ = objToIterable.get(target).value;
606 return Reflect.ownKeys(target);
607 }
608};
609const proxifyState = (namespace, obj) => {
610 return createProxy(namespace, obj, stateHandlers);
611};
612const peek = (obj, key) => {
613 peeking = true;
614 try {
615 return obj[key];
616 } finally {
617 peeking = false;
618 }
619};
620const deepMergeRecursive = (target, source, override = true) => {
621 if (!(isPlainObject(target) && isPlainObject(source))) {
622 return;
623 }
624 let hasNewKeys = false;
625 for (const key in source) {
626 const isNew = !(key in target);
627 hasNewKeys = hasNewKeys || isNew;
628 const desc = Object.getOwnPropertyDescriptor(source, key);
629 const proxy = getProxyFromObject(target);
630 const propSignal = !!proxy && hasPropSignal(proxy, key) && getPropSignal(proxy, key);
631 if (typeof desc.get === "function" || typeof desc.set === "function") {
632 if (override || isNew) {
633 Object.defineProperty(target, key, {
634 ...desc,
635 configurable: true,
636 enumerable: true
637 });
638 if (desc.get && propSignal) {
639 propSignal.setPendingGetter(desc.get);
640 }
641 }
642 } else if (isPlainObject(source[key])) {
643 const targetValue = Object.getOwnPropertyDescriptor(target, key)?.value;
644 if (isNew || override && !isPlainObject(targetValue)) {
645 target[key] = {};
646 if (propSignal) {
647 const ns = getNamespaceFromProxy(proxy);
648 propSignal.setValue(
649 proxifyState(ns, target[key])
650 );
651 }
652 deepMergeRecursive(target[key], source[key], override);
653 } else if (isPlainObject(targetValue)) {
654 deepMergeRecursive(target[key], source[key], override);
655 }
656 } else if (override || isNew) {
657 Object.defineProperty(target, key, desc);
658 if (propSignal) {
659 const { value } = desc;
660 const ns = getNamespaceFromProxy(proxy);
661 propSignal.setValue(
662 shouldProxy(value) ? proxifyState(ns, value) : value
663 );
664 }
665 }
666 }
667 if (hasNewKeys && objToIterable.has(target)) {
668 objToIterable.get(target).value++;
669 }
670};
671const deepMerge = (target, source, override = true) => signals_core_module_r(
672 () => deepMergeRecursive(
673 getObjectFromProxy(target) || target,
674 source,
675 override
676 )
677);
678
679
680;// ./node_modules/@wordpress/interactivity/build-module/proxies/store.js
681
682
683
684const storeRoots = /* @__PURE__ */ new WeakSet();
685const storeHandlers = {
686 get: (target, key, receiver) => {
687 const result = Reflect.get(target, key);
688 const ns = getNamespaceFromProxy(receiver);
689 if (typeof result === "undefined" && storeRoots.has(receiver)) {
690 const obj = {};
691 Reflect.set(target, key, obj);
692 return proxifyStore(ns, obj, false);
693 }
694 if (typeof result === "function") {
695 setNamespace(ns);
696 const scoped = withScope(result);
697 resetNamespace();
698 return scoped;
699 }
700 if (isPlainObject(result) && shouldProxy(result)) {
701 return proxifyStore(ns, result, false);
702 }
703 return result;
704 }
705};
706const proxifyStore = (namespace, obj, isRoot = true) => {
707 const proxy = createProxy(namespace, obj, storeHandlers);
708 if (proxy && isRoot) {
709 storeRoots.add(proxy);
710 }
711 return proxy;
712};
713
714
715;// ./node_modules/@wordpress/interactivity/build-module/proxies/context.js
716const contextObjectToProxy = /* @__PURE__ */ new WeakMap();
717const contextObjectToFallback = /* @__PURE__ */ new WeakMap();
718const contextProxies = /* @__PURE__ */ new WeakSet();
719const descriptor = Reflect.getOwnPropertyDescriptor;
720const contextHandlers = {
721 get: (target, key) => {
722 const fallback = contextObjectToFallback.get(target);
723 const currentProp = target[key];
724 return key in target ? currentProp : fallback[key];
725 },
726 set: (target, key, value) => {
727 const fallback = contextObjectToFallback.get(target);
728 const obj = key in target || !(key in fallback) ? target : fallback;
729 obj[key] = value;
730 return true;
731 },
732 ownKeys: (target) => [
733 .../* @__PURE__ */ new Set([
734 ...Object.keys(contextObjectToFallback.get(target)),
735 ...Object.keys(target)
736 ])
737 ],
738 getOwnPropertyDescriptor: (target, key) => descriptor(target, key) || descriptor(contextObjectToFallback.get(target), key),
739 has: (target, key) => Reflect.has(target, key) || Reflect.has(contextObjectToFallback.get(target), key)
740};
741const proxifyContext = (current, inherited = {}) => {
742 if (contextProxies.has(current)) {
743 throw Error("This object cannot be proxified.");
744 }
745 contextObjectToFallback.set(current, inherited);
746 if (!contextObjectToProxy.has(current)) {
747 const proxy = new Proxy(current, contextHandlers);
748 contextObjectToProxy.set(current, proxy);
749 contextProxies.add(proxy);
750 }
751 return contextObjectToProxy.get(current);
752};
753
754
755;// ./node_modules/@wordpress/interactivity/build-module/proxies/index.js
756
757
758
759
760
761;// ./node_modules/@wordpress/interactivity/build-module/store.js
762
763
764
765
766const stores = /* @__PURE__ */ new Map();
767const rawStores = /* @__PURE__ */ new Map();
768const storeLocks = /* @__PURE__ */ new Map();
769const storeConfigs = /* @__PURE__ */ new Map();
770const serverStates = /* @__PURE__ */ new Map();
771const getConfig = (namespace) => storeConfigs.get(namespace || getNamespace()) || {};
772function getServerState(namespace) {
773 const ns = namespace || getNamespace();
774 if (!serverStates.has(ns)) {
775 serverStates.set(ns, {});
776 }
777 getServerState.subscribe = navigationSignal.value;
778 return deepClone(serverStates.get(ns));
779}
780getServerState.subscribe = 0;
781const universalUnlock = "I acknowledge that using a private store means my plugin will inevitably break on the next store release.";
782function store(namespace, { state = {}, ...block } = {}, { lock = false } = {}) {
783 if (!stores.has(namespace)) {
784 if (lock !== universalUnlock) {
785 storeLocks.set(namespace, lock);
786 }
787 const rawStore = {
788 state: proxifyState(
789 namespace,
790 isPlainObject(state) ? state : {}
791 ),
792 ...block
793 };
794 const proxifiedStore = proxifyStore(namespace, rawStore);
795 rawStores.set(namespace, rawStore);
796 stores.set(namespace, proxifiedStore);
797 } else {
798 if (lock !== universalUnlock && !storeLocks.has(namespace)) {
799 storeLocks.set(namespace, lock);
800 } else {
801 const storeLock = storeLocks.get(namespace);
802 const isLockValid = lock === universalUnlock || lock !== true && lock === storeLock;
803 if (!isLockValid) {
804 if (!storeLock) {
805 throw Error("Cannot lock a public store");
806 } else {
807 throw Error(
808 "Cannot unlock a private store with an invalid lock code"
809 );
810 }
811 }
812 }
813 const target = rawStores.get(namespace);
814 deepMerge(target, block);
815 deepMerge(target.state, state);
816 }
817 return stores.get(namespace);
818}
819const parseServerData = (dom = document) => {
820 const jsonDataScriptTag = (
821 // Preferred Script Module data passing form
822 dom.getElementById(
823 "wp-script-module-data-@wordpress/interactivity"
824 ) ?? // Legacy form
825 dom.getElementById("wp-interactivity-data")
826 );
827 if (jsonDataScriptTag?.textContent) {
828 try {
829 return JSON.parse(jsonDataScriptTag.textContent);
830 } catch {
831 }
832 }
833 return {};
834};
835const populateServerData = (data) => {
836 serverStates.clear();
837 storeConfigs.clear();
838 if (isPlainObject(data?.state)) {
839 Object.entries(data.state).forEach(([namespace, state]) => {
840 const st = store(namespace, {}, { lock: universalUnlock });
841 deepMerge(st.state, state, false);
842 serverStates.set(namespace, state);
843 });
844 }
845 if (isPlainObject(data?.config)) {
846 Object.entries(data.config).forEach(([namespace, config]) => {
847 storeConfigs.set(namespace, config);
848 });
849 }
850 if (isPlainObject(data?.derivedStateClosures)) {
851 Object.entries(data.derivedStateClosures).forEach(
852 ([namespace, paths]) => {
853 const st = store(
854 namespace,
855 {},
856 { lock: universalUnlock }
857 );
858 paths.forEach((path) => {
859 const pathParts = path.split(".");
860 const prop = pathParts.splice(-1, 1)[0];
861 const parent = pathParts.reduce(
862 (prev, key) => peek(prev, key),
863 st
864 );
865 const desc = Object.getOwnPropertyDescriptor(
866 parent,
867 prop
868 );
869 if (isPlainObject(desc?.value)) {
870 parent[prop] = PENDING_GETTER;
871 }
872 });
873 }
874 );
875 }
876};
877
878
879;// ./node_modules/@wordpress/interactivity/build-module/hooks.js
880
881
882
883
884
885
886function isNonDefaultDirectiveSuffix(entry) {
887 return entry.suffix !== null;
888}
889function isDefaultDirectiveSuffix(entry) {
890 return entry.suffix === null;
891}
892const context = (0,preact_module/* createContext */.q6)({ client: {}, server: {} });
893const directiveCallbacks = {};
894const directivePriorities = {};
895const directive = (name, callback, { priority = 10 } = {}) => {
896 directiveCallbacks[name] = callback;
897 directivePriorities[name] = priority;
898};
899const resolve = (path, namespace) => {
900 if (!namespace) {
901 warn(
902 `Namespace missing for "${path}". The value for that path won't be resolved.`
903 );
904 return;
905 }
906 let resolvedStore = stores.get(namespace);
907 if (typeof resolvedStore === "undefined") {
908 resolvedStore = store(
909 namespace,
910 {},
911 {
912 lock: universalUnlock
913 }
914 );
915 }
916 const current = {
917 ...resolvedStore,
918 context: getScope().context[namespace]
919 };
920 try {
921 const pathParts = path.split(".");
922 return pathParts.reduce((acc, key) => acc[key], current);
923 } catch (e) {
924 if (e === PENDING_GETTER) {
925 return PENDING_GETTER;
926 }
927 }
928};
929const getEvaluate = ({ scope }) => (
930 // TODO: When removing the temporarily remaining `value( ...args )` call below, remove the `...args` parameter too.
931 (entry, ...args) => {
932 let { value: path, namespace } = entry;
933 if (typeof path !== "string") {
934 throw new Error("The `value` prop should be a string path");
935 }
936 const hasNegationOperator = path[0] === "!" && !!(path = path.slice(1));
937 setScope(scope);
938 const value = resolve(path, namespace);
939 if (typeof value === "function") {
940 if (hasNegationOperator) {
941 warn(
942 "Using a function with a negation operator is deprecated and will stop working in WordPress 6.9. Please use derived state instead."
943 );
944 const functionResult = !value(...args);
945 resetScope();
946 return functionResult;
947 }
948 resetScope();
949 const wrappedFunction = (...functionArgs) => {
950 setScope(scope);
951 const functionResult = value(...functionArgs);
952 resetScope();
953 return functionResult;
954 };
955 if (value.sync) {
956 const syncAwareFunction = wrappedFunction;
957 syncAwareFunction.sync = true;
958 }
959 return wrappedFunction;
960 }
961 const result = value;
962 resetScope();
963 return hasNegationOperator && value !== PENDING_GETTER ? !result : result;
964 }
965);
966const getPriorityLevels = (directives) => {
967 const byPriority = Object.keys(directives).reduce((obj, name) => {
968 if (directiveCallbacks[name]) {
969 const priority = directivePriorities[name];
970 (obj[priority] = obj[priority] || []).push(name);
971 }
972 return obj;
973 }, {});
974 return Object.entries(byPriority).sort(([p1], [p2]) => parseInt(p1) - parseInt(p2)).map(([, arr]) => arr);
975};
976const Directives = ({
977 directives,
978 priorityLevels: [currentPriorityLevel, ...nextPriorityLevels],
979 element,
980 originalProps,
981 previousScope
982}) => {
983 const scope = A({}).current;
984 scope.evaluate = q(getEvaluate({ scope }), []);
985 const { client, server } = x(context);
986 scope.context = client;
987 scope.serverContext = server;
988 scope.ref = previousScope?.ref || A(null);
989 element = (0,preact_module/* cloneElement */.Ob)(element, { ref: scope.ref });
990 scope.attributes = element.props;
991 const children = nextPriorityLevels.length > 0 ? (0,preact_module.h)(Directives, {
992 directives,
993 priorityLevels: nextPriorityLevels,
994 element,
995 originalProps,
996 previousScope: scope
997 }) : element;
998 const props = { ...originalProps, children };
999 const directiveArgs = {
1000 directives,
1001 props,
1002 element,
1003 context,
1004 evaluate: scope.evaluate
1005 };
1006 setScope(scope);
1007 for (const directiveName of currentPriorityLevel) {
1008 const wrapper = directiveCallbacks[directiveName]?.(directiveArgs);
1009 if (wrapper !== void 0) {
1010 props.children = wrapper;
1011 }
1012 }
1013 resetScope();
1014 return props.children;
1015};
1016const old = preact_module/* options */.fF.vnode;
1017preact_module/* options */.fF.vnode = (vnode) => {
1018 if (vnode.props.__directives) {
1019 const props = vnode.props;
1020 const directives = props.__directives;
1021 if (directives.key) {
1022 vnode.key = directives.key.find(isDefaultDirectiveSuffix).value;
1023 }
1024 delete props.__directives;
1025 const priorityLevels = getPriorityLevels(directives);
1026 if (priorityLevels.length > 0) {
1027 vnode.props = {
1028 directives,
1029 priorityLevels,
1030 originalProps: props,
1031 type: vnode.type,
1032 element: (0,preact_module.h)(vnode.type, props),
1033 top: true
1034 };
1035 vnode.type = Directives;
1036 }
1037 }
1038 if (old) {
1039 old(vnode);
1040 }
1041};
1042
1043
1044;// ./node_modules/@wordpress/interactivity/build-module/directives.js
1045
1046
1047
1048
1049
1050
1051
1052
1053const warnUniqueIdWithTwoHyphens = (prefix, suffix, uniqueId) => {
1054 if (true) {
1055 warn(
1056 `The usage of data-wp-${prefix}--${suffix}${uniqueId ? `--${uniqueId}` : ""} (two hyphens for unique ID) is deprecated and will stop working in WordPress 7.1. Please use data-wp-${prefix}${uniqueId ? `--${suffix}---${uniqueId}` : `---${suffix}`} (three hyphens for unique ID) from now on.`
1057 );
1058 }
1059};
1060const warnUniqueIdNotSupported = (prefix, uniqueId) => {
1061 if (true) {
1062 warn(
1063 `Unique IDs are not supported for the data-wp-${prefix} directive. Ignoring the directive with unique ID "${uniqueId}".`
1064 );
1065 }
1066};
1067const warnWithSyncEvent = (wrongPrefix, rightPrefix) => {
1068 if (true) {
1069 warn(
1070 `The usage of data-wp-${wrongPrefix} is deprecated and will stop working in WordPress 7.0. Please, use data-wp-${rightPrefix} with the withSyncEvent() helper from now on.`
1071 );
1072 }
1073};
1074function wrapEventAsync(event) {
1075 const handler = {
1076 get(target, prop, receiver) {
1077 const value = target[prop];
1078 switch (prop) {
1079 case "currentTarget":
1080 if (true) {
1081 warn(
1082 `Accessing the synchronous event.${prop} property in a store action without wrapping it in withSyncEvent() is deprecated and will stop working in WordPress 7.0. Please wrap the store action in withSyncEvent().`
1083 );
1084 }
1085 break;
1086 case "preventDefault":
1087 case "stopImmediatePropagation":
1088 case "stopPropagation":
1089 if (true) {
1090 warn(
1091 `Using the synchronous event.${prop}() function in a store action without wrapping it in withSyncEvent() is deprecated and will stop working in WordPress 7.0. Please wrap the store action in withSyncEvent().`
1092 );
1093 }
1094 break;
1095 }
1096 if (value instanceof Function) {
1097 return function(...args) {
1098 return value.apply(
1099 this === receiver ? target : this,
1100 args
1101 );
1102 };
1103 }
1104 return value;
1105 }
1106 };
1107 return new Proxy(event, handler);
1108}
1109const newRule = /(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g;
1110const ruleClean = /\/\*[^]*?\*\/| +/g;
1111const ruleNewline = /\n+/g;
1112const empty = " ";
1113const cssStringToObject = (val) => {
1114 const tree = [{}];
1115 let block, left;
1116 while (block = newRule.exec(val.replace(ruleClean, ""))) {
1117 if (block[4]) {
1118 tree.shift();
1119 } else if (block[3]) {
1120 left = block[3].replace(ruleNewline, empty).trim();
1121 tree.unshift(tree[0][left] = tree[0][left] || {});
1122 } else {
1123 tree[0][block[1]] = block[2].replace(ruleNewline, empty).trim();
1124 }
1125 }
1126 return tree[0];
1127};
1128const getGlobalEventDirective = (type) => {
1129 return ({ directives, evaluate }) => {
1130 directives[`on-${type}`].filter(isNonDefaultDirectiveSuffix).forEach((entry) => {
1131 const suffixParts = entry.suffix.split("--", 2);
1132 const eventName = suffixParts[0];
1133 if (true) {
1134 if (suffixParts[1]) {
1135 warnUniqueIdWithTwoHyphens(
1136 `on-${type}`,
1137 suffixParts[0],
1138 suffixParts[1]
1139 );
1140 }
1141 }
1142 useInit(() => {
1143 const cb = (event) => {
1144 const result = evaluate(entry);
1145 if (typeof result === "function") {
1146 if (!result?.sync) {
1147 event = wrapEventAsync(event);
1148 }
1149 result(event);
1150 }
1151 };
1152 const globalVar = type === "window" ? window : document;
1153 globalVar.addEventListener(eventName, cb);
1154 return () => globalVar.removeEventListener(eventName, cb);
1155 });
1156 });
1157 };
1158};
1159const evaluateItemKey = (inheritedValue, namespace, item, itemProp, eachKey) => {
1160 const clientContextWithItem = {
1161 ...inheritedValue.client,
1162 [namespace]: {
1163 ...inheritedValue.client[namespace],
1164 [itemProp]: item
1165 }
1166 };
1167 const scope = {
1168 ...getScope(),
1169 context: clientContextWithItem,
1170 serverContext: inheritedValue.server
1171 };
1172 return eachKey ? getEvaluate({ scope })(eachKey) : item;
1173};
1174const useItemContexts = function* (inheritedValue, namespace, items, itemProp, eachKey) {
1175 const { current: itemContexts } = A(/* @__PURE__ */ new Map());
1176 for (const item of items) {
1177 const key = evaluateItemKey(
1178 inheritedValue,
1179 namespace,
1180 item,
1181 itemProp,
1182 eachKey
1183 );
1184 if (!itemContexts.has(key)) {
1185 itemContexts.set(
1186 key,
1187 proxifyContext(
1188 proxifyState(namespace, {
1189 // Inits the item prop in the context to shadow it in case
1190 // it was inherited from the parent context. The actual
1191 // value is set in the `wp-each` directive later on.
1192 [itemProp]: void 0
1193 }),
1194 inheritedValue.client[namespace]
1195 )
1196 );
1197 }
1198 yield [item, itemContexts.get(key), key];
1199 }
1200};
1201const getGlobalAsyncEventDirective = (type) => {
1202 return ({ directives, evaluate }) => {
1203 directives[`on-async-${type}`].filter(isNonDefaultDirectiveSuffix).forEach((entry) => {
1204 if (true) {
1205 warnWithSyncEvent(`on-async-${type}`, `on-${type}`);
1206 }
1207 const eventName = entry.suffix.split("--", 1)[0];
1208 useInit(() => {
1209 const cb = async (event) => {
1210 await splitTask();
1211 const result = evaluate(entry);
1212 if (typeof result === "function") {
1213 result(event);
1214 }
1215 };
1216 const globalVar = type === "window" ? window : document;
1217 globalVar.addEventListener(eventName, cb, {
1218 passive: true
1219 });
1220 return () => globalVar.removeEventListener(eventName, cb);
1221 });
1222 });
1223 };
1224};
1225const routerRegions = /* @__PURE__ */ new Map();
1226var directives_default = () => {
1227 directive(
1228 "context",
1229 ({
1230 directives: { context },
1231 props: { children },
1232 context: inheritedContext
1233 }) => {
1234 const entries = context.filter(isDefaultDirectiveSuffix).reverse();
1235 if (!entries.length) {
1236 if (true) {
1237 warn(
1238 "The usage of data-wp-context--unique-id (two hyphens) is not supported. To add a unique ID to the directive, please use data-wp-context---unique-id (three hyphens) instead."
1239 );
1240 }
1241 return;
1242 }
1243 const { Provider } = inheritedContext;
1244 const { client: inheritedClient, server: inheritedServer } = x(inheritedContext);
1245 const client = A({});
1246 const server = {};
1247 const result = {
1248 client: { ...inheritedClient },
1249 server: { ...inheritedServer }
1250 };
1251 const namespaces = /* @__PURE__ */ new Set();
1252 entries.forEach(({ value, namespace, uniqueId }) => {
1253 if (!isPlainObject(value)) {
1254 if (true) {
1255 warn(
1256 `The value of data-wp-context${uniqueId ? `---${uniqueId}` : ""} on the ${namespace} namespace must be a valid stringified JSON object.`
1257 );
1258 }
1259 return;
1260 }
1261 if (!client.current[namespace]) {
1262 client.current[namespace] = proxifyState(namespace, {});
1263 }
1264 deepMerge(
1265 client.current[namespace],
1266 deepClone(value),
1267 false
1268 );
1269 server[namespace] = value;
1270 namespaces.add(namespace);
1271 });
1272 namespaces.forEach((namespace) => {
1273 result.client[namespace] = proxifyContext(
1274 client.current[namespace],
1275 inheritedClient[namespace]
1276 );
1277 result.server[namespace] = proxifyContext(
1278 server[namespace],
1279 inheritedServer[namespace]
1280 );
1281 });
1282 return (0,preact_module.h)(Provider, { value: result }, children);
1283 },
1284 { priority: 5 }
1285 );
1286 directive("watch", ({ directives: { watch }, evaluate }) => {
1287 watch.forEach((entry) => {
1288 if (true) {
1289 if (entry.suffix) {
1290 warnUniqueIdWithTwoHyphens("watch", entry.suffix);
1291 }
1292 }
1293 useWatch(() => {
1294 let start;
1295 if (false) {}
1296 let result = evaluate(entry);
1297 if (typeof result === "function") {
1298 result = result();
1299 }
1300 if (false) {}
1301 return result;
1302 });
1303 });
1304 });
1305 directive("init", ({ directives: { init }, evaluate }) => {
1306 init.forEach((entry) => {
1307 if (true) {
1308 if (entry.suffix) {
1309 warnUniqueIdWithTwoHyphens("init", entry.suffix);
1310 }
1311 }
1312 useInit(() => {
1313 let start;
1314 if (false) {}
1315 let result = evaluate(entry);
1316 if (typeof result === "function") {
1317 result = result();
1318 }
1319 if (false) {}
1320 return result;
1321 });
1322 });
1323 });
1324 directive("on", ({ directives: { on }, element, evaluate }) => {
1325 const events = /* @__PURE__ */ new Map();
1326 on.filter(isNonDefaultDirectiveSuffix).forEach((entry) => {
1327 const suffixParts = entry.suffix.split("--", 2);
1328 if (true) {
1329 if (suffixParts[1]) {
1330 warnUniqueIdWithTwoHyphens(
1331 "on",
1332 suffixParts[0],
1333 suffixParts[1]
1334 );
1335 }
1336 }
1337 if (!events.has(suffixParts[0])) {
1338 events.set(suffixParts[0], /* @__PURE__ */ new Set());
1339 }
1340 events.get(suffixParts[0]).add(entry);
1341 });
1342 events.forEach((entries, eventType) => {
1343 const existingHandler = element.props[`on${eventType}`];
1344 element.props[`on${eventType}`] = (event) => {
1345 if (existingHandler) {
1346 existingHandler(event);
1347 }
1348 entries.forEach((entry) => {
1349 let start;
1350 if (false) {}
1351 const result = evaluate(entry);
1352 if (typeof result === "function") {
1353 if (!result?.sync) {
1354 event = wrapEventAsync(event);
1355 }
1356 result(event);
1357 }
1358 if (false) {}
1359 });
1360 };
1361 });
1362 });
1363 directive(
1364 "on-async",
1365 ({ directives: { "on-async": onAsync }, element, evaluate }) => {
1366 if (true) {
1367 warnWithSyncEvent("on-async", "on");
1368 }
1369 const events = /* @__PURE__ */ new Map();
1370 onAsync.filter(isNonDefaultDirectiveSuffix).forEach((entry) => {
1371 const event = entry.suffix.split("--", 1)[0];
1372 if (!events.has(event)) {
1373 events.set(event, /* @__PURE__ */ new Set());
1374 }
1375 events.get(event).add(entry);
1376 });
1377 events.forEach((entries, eventType) => {
1378 const existingHandler = element.props[`on${eventType}`];
1379 element.props[`on${eventType}`] = (event) => {
1380 if (existingHandler) {
1381 existingHandler(event);
1382 }
1383 entries.forEach(async (entry) => {
1384 await splitTask();
1385 const result = evaluate(entry);
1386 if (typeof result === "function") {
1387 result(event);
1388 }
1389 });
1390 };
1391 });
1392 }
1393 );
1394 directive("on-window", getGlobalEventDirective("window"));
1395 directive("on-document", getGlobalEventDirective("document"));
1396 directive("on-async-window", getGlobalAsyncEventDirective("window"));
1397 directive(
1398 "on-async-document",
1399 getGlobalAsyncEventDirective("document")
1400 );
1401 directive(
1402 "class",
1403 ({ directives: { class: classNames }, element, evaluate }) => {
1404 classNames.filter(isNonDefaultDirectiveSuffix).forEach((entry) => {
1405 const className = entry.uniqueId ? `${entry.suffix}---${entry.uniqueId}` : entry.suffix;
1406 let result = evaluate(entry);
1407 if (result === PENDING_GETTER) {
1408 return;
1409 }
1410 if (typeof result === "function") {
1411 result = result();
1412 }
1413 const currentClass = element.props.class || "";
1414 const classFinder = new RegExp(
1415 `(^|\\s)${className}(\\s|$)`,
1416 "g"
1417 );
1418 if (!result) {
1419 element.props.class = currentClass.replace(classFinder, " ").trim();
1420 } else if (!classFinder.test(currentClass)) {
1421 element.props.class = currentClass ? `${currentClass} ${className}` : className;
1422 }
1423 useInit(() => {
1424 if (!result) {
1425 element.ref.current.classList.remove(className);
1426 } else {
1427 element.ref.current.classList.add(className);
1428 }
1429 });
1430 });
1431 }
1432 );
1433 directive("style", ({ directives: { style }, element, evaluate }) => {
1434 style.filter(isNonDefaultDirectiveSuffix).forEach((entry) => {
1435 if (entry.uniqueId) {
1436 if (true) {
1437 warnUniqueIdNotSupported("style", entry.uniqueId);
1438 }
1439 return;
1440 }
1441 const styleProp = entry.suffix;
1442 let result = evaluate(entry);
1443 if (result === PENDING_GETTER) {
1444 return;
1445 }
1446 if (typeof result === "function") {
1447 result = result();
1448 }
1449 element.props.style = element.props.style || {};
1450 if (typeof element.props.style === "string") {
1451 element.props.style = cssStringToObject(element.props.style);
1452 }
1453 if (!result) {
1454 delete element.props.style[styleProp];
1455 } else {
1456 element.props.style[styleProp] = result;
1457 }
1458 useInit(() => {
1459 if (!result) {
1460 element.ref.current.style.removeProperty(styleProp);
1461 } else {
1462 element.ref.current.style.setProperty(styleProp, result);
1463 }
1464 });
1465 });
1466 });
1467 directive("bind", ({ directives: { bind }, element, evaluate }) => {
1468 bind.filter(isNonDefaultDirectiveSuffix).forEach((entry) => {
1469 if (entry.uniqueId) {
1470 if (true) {
1471 warnUniqueIdNotSupported("bind", entry.uniqueId);
1472 }
1473 return;
1474 }
1475 const attribute = entry.suffix;
1476 let result = evaluate(entry);
1477 if (result === PENDING_GETTER) {
1478 return;
1479 }
1480 if (typeof result === "function") {
1481 result = result();
1482 }
1483 element.props[attribute] = result;
1484 useInit(() => {
1485 const el = element.ref.current;
1486 if (attribute === "style") {
1487 if (typeof result === "string") {
1488 el.style.cssText = result;
1489 }
1490 return;
1491 } else if (attribute !== "width" && attribute !== "height" && attribute !== "href" && attribute !== "list" && attribute !== "form" && /*
1492 * The value for `tabindex` follows the parsing rules for an
1493 * integer. If that fails, or if the attribute isn't present, then
1494 * the browsers should "follow platform conventions to determine if
1495 * the element should be considered as a focusable area",
1496 * practically meaning that most elements get a default of `-1` (not
1497 * focusable), but several also get a default of `0` (focusable in
1498 * order after all elements with a positive `tabindex` value).
1499 *
1500 * @see https://html.spec.whatwg.org/#tabindex-value
1501 */
1502 attribute !== "tabIndex" && attribute !== "download" && attribute !== "rowSpan" && attribute !== "colSpan" && attribute !== "role" && attribute in el) {
1503 try {
1504 el[attribute] = result === null || result === void 0 ? "" : result;
1505 return;
1506 } catch (err) {
1507 }
1508 }
1509 if (result !== null && result !== void 0 && (result !== false || attribute[4] === "-")) {
1510 el.setAttribute(attribute, result);
1511 } else {
1512 el.removeAttribute(attribute);
1513 }
1514 });
1515 });
1516 });
1517 directive(
1518 "ignore",
1519 ({
1520 element: {
1521 type: Type,
1522 props: { innerHTML, ...rest }
1523 }
1524 }) => {
1525 if (true) {
1526 warn(
1527 "The data-wp-ignore directive is deprecated and will be removed in version 7.0."
1528 );
1529 }
1530 const cached = T(() => innerHTML, []);
1531 return (0,preact_module.h)(Type, {
1532 dangerouslySetInnerHTML: { __html: cached },
1533 ...rest
1534 });
1535 }
1536 );
1537 directive("text", ({ directives: { text }, element, evaluate }) => {
1538 const entries = text.filter(isDefaultDirectiveSuffix);
1539 if (!entries.length) {
1540 if (true) {
1541 warn(
1542 "The usage of data-wp-text--suffix is not supported. Please use data-wp-text instead."
1543 );
1544 }
1545 return;
1546 }
1547 entries.forEach((entry) => {
1548 if (entry.uniqueId) {
1549 if (true) {
1550 warnUniqueIdNotSupported("text", entry.uniqueId);
1551 }
1552 return;
1553 }
1554 try {
1555 let result = evaluate(entry);
1556 if (result === PENDING_GETTER) {
1557 return;
1558 }
1559 if (typeof result === "function") {
1560 result = result();
1561 }
1562 element.props.children = typeof result === "object" ? null : result.toString();
1563 } catch (e) {
1564 element.props.children = null;
1565 }
1566 });
1567 });
1568 directive("run", ({ directives: { run }, evaluate }) => {
1569 run.forEach((entry) => {
1570 if (true) {
1571 if (entry.suffix) {
1572 warnUniqueIdWithTwoHyphens("run", entry.suffix);
1573 }
1574 }
1575 let result = evaluate(entry);
1576 if (typeof result === "function") {
1577 result = result();
1578 }
1579 return result;
1580 });
1581 });
1582 directive(
1583 "each",
1584 ({
1585 directives: { each, "each-key": eachKey },
1586 context: inheritedContext,
1587 element,
1588 evaluate
1589 }) => {
1590 if (element.type !== "template") {
1591 if (true) {
1592 warn(
1593 "The data-wp-each directive can only be used on <template> elements."
1594 );
1595 }
1596 return;
1597 }
1598 const { Provider } = inheritedContext;
1599 const inheritedValue = x(inheritedContext);
1600 const [entry] = each;
1601 const { namespace, suffix, uniqueId } = entry;
1602 if (each.length > 1) {
1603 if (true) {
1604 warn(
1605 "The usage of multiple data-wp-each directives on the same element is not supported. Please pick only one."
1606 );
1607 }
1608 return;
1609 }
1610 if (uniqueId) {
1611 if (true) {
1612 warnUniqueIdNotSupported("each", uniqueId);
1613 }
1614 return;
1615 }
1616 let iterable = evaluate(entry);
1617 if (iterable === PENDING_GETTER) {
1618 return;
1619 }
1620 if (typeof iterable === "function") {
1621 iterable = iterable();
1622 }
1623 if (typeof iterable?.[Symbol.iterator] !== "function") {
1624 return;
1625 }
1626 const itemProp = suffix ? kebabToCamelCase(suffix) : "item";
1627 const result = [];
1628 const itemContexts = useItemContexts(
1629 inheritedValue,
1630 namespace,
1631 iterable,
1632 itemProp,
1633 eachKey?.[0]
1634 );
1635 for (const [item, itemContext, key] of itemContexts) {
1636 const mergedContext = {
1637 client: {
1638 ...inheritedValue.client,
1639 [namespace]: itemContext
1640 },
1641 server: { ...inheritedValue.server }
1642 };
1643 mergedContext.client[namespace][itemProp] = item;
1644 result.push(
1645 (0,preact_module.h)(
1646 Provider,
1647 { value: mergedContext, key },
1648 element.props.content
1649 )
1650 );
1651 }
1652 return result;
1653 },
1654 { priority: 20 }
1655 );
1656 directive(
1657 "each-child",
1658 ({ directives: { "each-child": eachChild }, element, evaluate }) => {
1659 const entry = eachChild.find(isDefaultDirectiveSuffix);
1660 if (!entry) {
1661 return;
1662 }
1663 const iterable = evaluate(entry);
1664 return iterable === PENDING_GETTER ? element : null;
1665 },
1666 { priority: 1 }
1667 );
1668 directive(
1669 "router-region",
1670 ({ directives: { "router-region": routerRegion } }) => {
1671 const entry = routerRegion.find(isDefaultDirectiveSuffix);
1672 if (!entry) {
1673 return;
1674 }
1675 if (entry.suffix) {
1676 if (true) {
1677 warn(
1678 `Suffixes for the data-wp-router-region directive are not supported. Ignoring the directive with suffix "${entry.suffix}".`
1679 );
1680 }
1681 return;
1682 }
1683 if (entry.uniqueId) {
1684 if (true) {
1685 warnUniqueIdNotSupported("router-region", entry.uniqueId);
1686 }
1687 return;
1688 }
1689 const regionId = typeof entry.value === "string" ? entry.value : entry.value.id;
1690 if (!routerRegions.has(regionId)) {
1691 routerRegions.set(regionId, signals_core_module_d());
1692 }
1693 const vdom = routerRegions.get(regionId).value;
1694 _(() => {
1695 if (vdom && typeof vdom.type !== "string") {
1696 navigationContextSignal.value = navigationContextSignal.peek() + 1;
1697 }
1698 }, [vdom]);
1699 if (vdom && typeof vdom.type !== "string") {
1700 const previousScope = getScope();
1701 return (0,preact_module/* cloneElement */.Ob)(vdom, { previousScope });
1702 }
1703 return vdom;
1704 },
1705 { priority: 1 }
1706 );
1707};
1708
1709
1710;// ./node_modules/@wordpress/interactivity/build-module/vdom.js
1711
1712
1713const directivePrefix = `data-wp-`;
1714const namespaces = [];
1715const currentNamespace = () => namespaces[namespaces.length - 1] ?? null;
1716const isObject = (item) => Boolean(item && typeof item === "object" && item.constructor === Object);
1717const invalidCharsRegex = /[^a-z0-9-_]/i;
1718function parseDirectiveName(directiveName) {
1719 const name = directiveName.substring(8);
1720 if (invalidCharsRegex.test(name)) {
1721 return null;
1722 }
1723 const suffixIndex = name.indexOf("--");
1724 if (suffixIndex === -1) {
1725 return { prefix: name, suffix: null, uniqueId: null };
1726 }
1727 const prefix = name.substring(0, suffixIndex);
1728 const remaining = name.substring(suffixIndex);
1729 if (remaining.startsWith("---") && remaining[3] !== "-") {
1730 return {
1731 prefix,
1732 suffix: null,
1733 uniqueId: remaining.substring(3) || null
1734 };
1735 }
1736 let suffix = remaining.substring(2);
1737 const uniqueIdIndex = suffix.indexOf("---");
1738 if (uniqueIdIndex !== -1 && suffix.substring(uniqueIdIndex)[3] !== "-") {
1739 const uniqueId = suffix.substring(uniqueIdIndex + 3) || null;
1740 suffix = suffix.substring(0, uniqueIdIndex) || null;
1741 return { prefix, suffix, uniqueId };
1742 }
1743 return { prefix, suffix: suffix || null, uniqueId: null };
1744}
1745const nsPathRegExp = /^([\w_\/-]+)::(.+)$/;
1746const hydratedIslands = /* @__PURE__ */ new WeakSet();
1747function toVdom(root) {
1748 const nodesToRemove = /* @__PURE__ */ new Set();
1749 const nodesToReplace = /* @__PURE__ */ new Set();
1750 const treeWalker = document.createTreeWalker(
1751 root,
1752 205
1753 // TEXT + CDATA_SECTION + COMMENT + PROCESSING_INSTRUCTION + ELEMENT
1754 );
1755 function walk(node) {
1756 const { nodeType } = node;
1757 if (nodeType === 3) {
1758 return node.data;
1759 }
1760 if (nodeType === 4) {
1761 nodesToReplace.add(node);
1762 return node.nodeValue;
1763 }
1764 if (nodeType === 8 || nodeType === 7) {
1765 nodesToRemove.add(node);
1766 return null;
1767 }
1768 const elementNode = node;
1769 const { attributes } = elementNode;
1770 const localName = elementNode.localName;
1771 const props = {};
1772 const children = [];
1773 const directives = [];
1774 let ignore = false;
1775 let island = false;
1776 for (let i = 0; i < attributes.length; i++) {
1777 const attributeName = attributes[i].name;
1778 const attributeValue = attributes[i].value;
1779 if (attributeName[directivePrefix.length] && attributeName.slice(0, directivePrefix.length) === directivePrefix) {
1780 if (attributeName === "data-wp-ignore") {
1781 ignore = true;
1782 } else {
1783 const regexResult = nsPathRegExp.exec(attributeValue);
1784 const namespace = regexResult?.[1] ?? null;
1785 let value = regexResult?.[2] ?? attributeValue;
1786 try {
1787 const parsedValue = JSON.parse(value);
1788 value = isObject(parsedValue) ? parsedValue : value;
1789 } catch {
1790 }
1791 if (attributeName === "data-wp-interactive") {
1792 island = true;
1793 const islandNamespace = (
1794 // eslint-disable-next-line no-nested-ternary
1795 typeof value === "string" ? value : typeof value?.namespace === "string" ? value.namespace : null
1796 );
1797 namespaces.push(islandNamespace);
1798 } else {
1799 directives.push([attributeName, namespace, value]);
1800 }
1801 }
1802 } else if (attributeName === "ref") {
1803 continue;
1804 }
1805 props[attributeName] = attributeValue;
1806 }
1807 if (ignore && !island) {
1808 return [
1809 (0,preact_module.h)(localName, {
1810 ...props,
1811 innerHTML: elementNode.innerHTML,
1812 __directives: { ignore: true }
1813 })
1814 ];
1815 }
1816 if (island) {
1817 hydratedIslands.add(elementNode);
1818 }
1819 if (directives.length) {
1820 props.__directives = directives.reduce((obj, [name, ns, value]) => {
1821 const directiveParsed = parseDirectiveName(name);
1822 if (directiveParsed === null) {
1823 if (true) {
1824 warn(`Found malformed directive name: ${name}.`);
1825 }
1826 return obj;
1827 }
1828 const { prefix, suffix, uniqueId } = directiveParsed;
1829 obj[prefix] = obj[prefix] || [];
1830 obj[prefix].push({
1831 namespace: ns ?? currentNamespace(),
1832 value,
1833 suffix,
1834 uniqueId
1835 });
1836 return obj;
1837 }, {});
1838 for (const prefix in props.__directives) {
1839 props.__directives[prefix].sort(
1840 (a, b) => {
1841 const aSuffix = a.suffix ?? "";
1842 const bSuffix = b.suffix ?? "";
1843 if (aSuffix !== bSuffix) {
1844 return aSuffix < bSuffix ? -1 : 1;
1845 }
1846 const aId = a.uniqueId ?? "";
1847 const bId = b.uniqueId ?? "";
1848 return +(aId > bId) - +(aId < bId);
1849 }
1850 );
1851 }
1852 }
1853 if (props.__directives?.["each-child"]) {
1854 props.dangerouslySetInnerHTML = {
1855 __html: elementNode.innerHTML
1856 };
1857 } else if (localName === "template") {
1858 props.content = [
1859 ...elementNode.content.childNodes
1860 ].map((childNode) => toVdom(childNode));
1861 } else {
1862 let child = treeWalker.firstChild();
1863 if (child) {
1864 while (child) {
1865 const vnode = walk(child);
1866 if (vnode) {
1867 children.push(vnode);
1868 }
1869 child = treeWalker.nextSibling();
1870 }
1871 treeWalker.parentNode();
1872 }
1873 }
1874 if (island) {
1875 namespaces.pop();
1876 }
1877 return (0,preact_module.h)(localName, props, children);
1878 }
1879 const vdom = walk(treeWalker.currentNode);
1880 nodesToRemove.forEach(
1881 (node) => node.remove()
1882 );
1883 nodesToReplace.forEach(
1884 (node) => node.replaceWith(
1885 new window.Text(node.nodeValue ?? "")
1886 )
1887 );
1888 return vdom;
1889}
1890
1891
1892;// ./node_modules/@wordpress/interactivity/build-module/hydration.js
1893
1894
1895
1896const regionRootFragments = /* @__PURE__ */ new WeakMap();
1897const getRegionRootFragment = (regions) => {
1898 const region = Array.isArray(regions) ? regions[0] : regions;
1899 if (!region.parentElement) {
1900 throw Error("The passed region should be an element with a parent.");
1901 }
1902 if (!regionRootFragments.has(region)) {
1903 regionRootFragments.set(
1904 region,
1905 createRootFragment(region.parentElement, regions)
1906 );
1907 }
1908 return regionRootFragments.get(region);
1909};
1910const initialVdom = /* @__PURE__ */ new WeakMap();
1911const hydrateRegions = async () => {
1912 const nodes = document.querySelectorAll(`[data-wp-interactive]`);
1913 for (const node of nodes) {
1914 if (!hydratedIslands.has(node)) {
1915 await splitTask();
1916 const fragment = getRegionRootFragment(node);
1917 const vdom = toVdom(node);
1918 initialVdom.set(node, vdom);
1919 await splitTask();
1920 (0,preact_module/* hydrate */.Qv)(vdom, fragment);
1921 }
1922 }
1923};
1924
1925
1926;// ./node_modules/@wordpress/interactivity/build-module/index.js
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941const requiredConsent = "I acknowledge that using private APIs means my theme or plugin will inevitably break in the next version of WordPress.";
1942const privateApis = (lock) => {
1943 if (lock === requiredConsent) {
1944 return {
1945 getRegionRootFragment: getRegionRootFragment,
1946 initialVdom: initialVdom,
1947 toVdom: toVdom,
1948 directive: directive,
1949 getNamespace: getNamespace,
1950 h: preact_module.h,
1951 cloneElement: preact_module/* cloneElement */.Ob,
1952 render: preact_module/* render */.XX,
1953 proxifyState: proxifyState,
1954 parseServerData: parseServerData,
1955 populateServerData: populateServerData,
1956 batch: signals_core_module_r,
1957 routerRegions: routerRegions,
1958 deepReadOnly: deepReadOnly,
1959 navigationSignal: navigationSignal
1960 };
1961 }
1962 throw new Error("Forbidden access.");
1963};
1964populateServerData(parseServerData());
1965directives_default();
1966onDOMReady(hydrateRegions);
1967
1968
1969
1970/***/ }),
1971
1972/***/ 622:
1973/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1974
1975/* harmony export */ __webpack_require__.d(__webpack_exports__, {
1976/* harmony export */ FK: () => (/* binding */ k),
1977/* harmony export */ Ob: () => (/* binding */ K),
1978/* harmony export */ Qv: () => (/* binding */ J),
1979/* harmony export */ XX: () => (/* binding */ G),
1980/* harmony export */ fF: () => (/* binding */ l),
1981/* harmony export */ h: () => (/* binding */ _),
1982/* harmony export */ q6: () => (/* binding */ Q),
1983/* harmony export */ uA: () => (/* binding */ x),
1984/* harmony export */ zO: () => (/* binding */ t)
1985/* harmony export */ });
1986/* unused harmony exports createElement, createRef, toChildArray */
1987var n,l,u,t,i,o,r,e,f,c,s,a,h,p={},v=[],y=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,d=Array.isArray;function w(n,l){for(var u in l)n[u]=l[u];return n}function g(n){n&&n.parentNode&&n.parentNode.removeChild(n)}function _(l,u,t){var i,o,r,e={};for(r in u)"key"==r?i=u[r]:"ref"==r?o=u[r]:e[r]=u[r];if(arguments.length>2&&(e.children=arguments.length>3?n.call(arguments,2):t),"function"==typeof l&&null!=l.defaultProps)for(r in l.defaultProps)void 0===e[r]&&(e[r]=l.defaultProps[r]);return m(l,e,i,o,null)}function m(n,t,i,o,r){var e={type:n,props:t,key:i,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==r?++u:r,__i:-1,__u:0};return null==r&&null!=l.vnode&&l.vnode(e),e}function b(){return{current:null}}function k(n){return n.children}function x(n,l){this.props=n,this.context=l}function S(n,l){if(null==l)return n.__?S(n.__,n.__i+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return"function"==typeof n.type?S(n):null}function C(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return C(n)}}function M(n){(!n.__d&&(n.__d=!0)&&i.push(n)&&!$.__r++||o!=l.debounceRendering)&&((o=l.debounceRendering)||r)($)}function $(){for(var n,u,t,o,r,f,c,s=1;i.length;)i.length>s&&i.sort(e),n=i.shift(),s=i.length,n.__d&&(t=void 0,o=void 0,r=(o=(u=n).__v).__e,f=[],c=[],u.__P&&((t=w({},o)).__v=o.__v+1,l.vnode&&l.vnode(t),O(u.__P,t,o,u.__n,u.__P.namespaceURI,32&o.__u?[r]:null,f,null==r?S(o):r,!!(32&o.__u),c),t.__v=o.__v,t.__.__k[t.__i]=t,N(f,t,c),o.__e=o.__=null,t.__e!=r&&C(t)));$.__r=0}function I(n,l,u,t,i,o,r,e,f,c,s){var a,h,y,d,w,g,_,m=t&&t.__k||v,b=l.length;for(f=P(u,l,m,f,b),a=0;a<b;a++)null!=(y=u.__k[a])&&(h=-1==y.__i?p:m[y.__i]||p,y.__i=a,g=O(n,y,h,i,o,r,e,f,c,s),d=y.__e,y.ref&&h.ref!=y.ref&&(h.ref&&B(h.ref,null,y),s.push(y.ref,y.__c||d,y)),null==w&&null!=d&&(w=d),(_=!!(4&y.__u))||h.__k===y.__k?f=A(y,f,n,_):"function"==typeof y.type&&void 0!==g?f=g:d&&(f=d.nextSibling),y.__u&=-7);return u.__e=w,f}function P(n,l,u,t,i){var o,r,e,f,c,s=u.length,a=s,h=0;for(n.__k=new Array(i),o=0;o<i;o++)null!=(r=l[o])&&"boolean"!=typeof r&&"function"!=typeof r?("string"==typeof r||"number"==typeof r||"bigint"==typeof r||r.constructor==String?r=n.__k[o]=m(null,r,null,null,null):d(r)?r=n.__k[o]=m(k,{children:r},null,null,null):void 0===r.constructor&&r.__b>0?r=n.__k[o]=m(r.type,r.props,r.key,r.ref?r.ref:null,r.__v):n.__k[o]=r,f=o+h,r.__=n,r.__b=n.__b+1,e=null,-1!=(c=r.__i=L(r,u,f,a))&&(a--,(e=u[c])&&(e.__u|=2)),null==e||null==e.__v?(-1==c&&(i>s?h--:i<s&&h++),"function"!=typeof r.type&&(r.__u|=4)):c!=f&&(c==f-1?h--:c==f+1?h++:(c>f?h--:h++,r.__u|=4))):n.__k[o]=null;if(a)for(o=0;o<s;o++)null!=(e=u[o])&&0==(2&e.__u)&&(e.__e==t&&(t=S(e)),D(e,e));return t}function A(n,l,u,t){var i,o;if("function"==typeof n.type){for(i=n.__k,o=0;i&&o<i.length;o++)i[o]&&(i[o].__=n,l=A(i[o],l,u,t));return l}n.__e!=l&&(t&&(l&&n.type&&!l.parentNode&&(l=S(n)),u.insertBefore(n.__e,l||null)),l=n.__e);do{l=l&&l.nextSibling}while(null!=l&&8==l.nodeType);return l}function H(n,l){return l=l||[],null==n||"boolean"==typeof n||(d(n)?n.some(function(n){H(n,l)}):l.push(n)),l}function L(n,l,u,t){var i,o,r,e=n.key,f=n.type,c=l[u],s=null!=c&&0==(2&c.__u);if(null===c&&null==e||s&&e==c.key&&f==c.type)return u;if(t>(s?1:0))for(i=u-1,o=u+1;i>=0||o<l.length;)if(null!=(c=l[r=i>=0?i--:o++])&&0==(2&c.__u)&&e==c.key&&f==c.type)return r;return-1}function T(n,l,u){"-"==l[0]?n.setProperty(l,null==u?"":u):n[l]=null==u?"":"number"!=typeof u||y.test(l)?u:u+"px"}function j(n,l,u,t,i){var o,r;n:if("style"==l)if("string"==typeof u)n.style.cssText=u;else{if("string"==typeof t&&(n.style.cssText=t=""),t)for(l in t)u&&l in u||T(n.style,l,"");if(u)for(l in u)t&&u[l]==t[l]||T(n.style,l,u[l])}else if("o"==l[0]&&"n"==l[1])o=l!=(l=l.replace(f,"$1")),r=l.toLowerCase(),l=r in n||"onFocusOut"==l||"onFocusIn"==l?r.slice(2):l.slice(2),n.l||(n.l={}),n.l[l+o]=u,u?t?u.u=t.u:(u.u=c,n.addEventListener(l,o?a:s,o)):n.removeEventListener(l,o?a:s,o);else{if("http://www.w3.org/2000/svg"==i)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=l&&"height"!=l&&"href"!=l&&"list"!=l&&"form"!=l&&"tabIndex"!=l&&"download"!=l&&"rowSpan"!=l&&"colSpan"!=l&&"role"!=l&&"popover"!=l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||!1===u&&"-"!=l[4]?n.removeAttribute(l):n.setAttribute(l,"popover"==l&&1==u?"":u))}}function F(n){return function(u){if(this.l){var t=this.l[u.type+n];if(null==u.t)u.t=c++;else if(u.t<t.u)return;return t(l.event?l.event(u):u)}}}function O(n,u,t,i,o,r,e,f,c,s){var a,h,p,v,y,_,m,b,S,C,M,$,P,A,H,L,T,j=u.type;if(void 0!==u.constructor)return null;128&t.__u&&(c=!!(32&t.__u),r=[f=u.__e=t.__e]),(a=l.__b)&&a(u);n:if("function"==typeof j)try{if(b=u.props,S="prototype"in j&&j.prototype.render,C=(a=j.contextType)&&i[a.__c],M=a?C?C.props.value:a.__:i,t.__c?m=(h=u.__c=t.__c).__=h.__E:(S?u.__c=h=new j(b,M):(u.__c=h=new x(b,M),h.constructor=j,h.render=E),C&&C.sub(h),h.state||(h.state={}),h.__n=i,p=h.__d=!0,h.__h=[],h._sb=[]),S&&null==h.__s&&(h.__s=h.state),S&&null!=j.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=w({},h.__s)),w(h.__s,j.getDerivedStateFromProps(b,h.__s))),v=h.props,y=h.state,h.__v=u,p)S&&null==j.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),S&&null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(S&&null==j.getDerivedStateFromProps&&b!==v&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(b,M),u.__v==t.__v||!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(b,h.__s,M)){for(u.__v!=t.__v&&(h.props=b,h.state=h.__s,h.__d=!1),u.__e=t.__e,u.__k=t.__k,u.__k.some(function(n){n&&(n.__=u)}),$=0;$<h._sb.length;$++)h.__h.push(h._sb[$]);h._sb=[],h.__h.length&&e.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(b,h.__s,M),S&&null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(v,y,_)})}if(h.context=M,h.props=b,h.__P=n,h.__e=!1,P=l.__r,A=0,S){for(h.state=h.__s,h.__d=!1,P&&P(u),a=h.render(h.props,h.state,h.context),H=0;H<h._sb.length;H++)h.__h.push(h._sb[H]);h._sb=[]}else do{h.__d=!1,P&&P(u),a=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++A<25);h.state=h.__s,null!=h.getChildContext&&(i=w(w({},i),h.getChildContext())),S&&!p&&null!=h.getSnapshotBeforeUpdate&&(_=h.getSnapshotBeforeUpdate(v,y)),L=a,null!=a&&a.type===k&&null==a.key&&(L=V(a.props.children)),f=I(n,d(L)?L:[L],u,t,i,o,r,e,f,c,s),h.base=u.__e,u.__u&=-161,h.__h.length&&e.push(h),m&&(h.__E=h.__=null)}catch(n){if(u.__v=null,c||null!=r)if(n.then){for(u.__u|=c?160:128;f&&8==f.nodeType&&f.nextSibling;)f=f.nextSibling;r[r.indexOf(f)]=null,u.__e=f}else{for(T=r.length;T--;)g(r[T]);z(u)}else u.__e=t.__e,u.__k=t.__k,n.then||z(u);l.__e(n,u,t)}else null==r&&u.__v==t.__v?(u.__k=t.__k,u.__e=t.__e):f=u.__e=q(t.__e,u,t,i,o,r,e,c,s);return(a=l.diffed)&&a(u),128&u.__u?void 0:f}function z(n){n&&n.__c&&(n.__c.__e=!0),n&&n.__k&&n.__k.forEach(z)}function N(n,u,t){for(var i=0;i<t.length;i++)B(t[i],t[++i],t[++i]);l.__c&&l.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u)})}catch(n){l.__e(n,u.__v)}})}function V(n){return"object"!=typeof n||null==n||n.__b&&n.__b>0?n:d(n)?n.map(V):w({},n)}function q(u,t,i,o,r,e,f,c,s){var a,h,v,y,w,_,m,b=i.props||p,k=t.props,x=t.type;if("svg"==x?r="http://www.w3.org/2000/svg":"math"==x?r="http://www.w3.org/1998/Math/MathML":r||(r="http://www.w3.org/1999/xhtml"),null!=e)for(a=0;a<e.length;a++)if((w=e[a])&&"setAttribute"in w==!!x&&(x?w.localName==x:3==w.nodeType)){u=w,e[a]=null;break}if(null==u){if(null==x)return document.createTextNode(k);u=document.createElementNS(r,x,k.is&&k),c&&(l.__m&&l.__m(t,e),c=!1),e=null}if(null==x)b===k||c&&u.data==k||(u.data=k);else{if(e=e&&n.call(u.childNodes),!c&&null!=e)for(b={},a=0;a<u.attributes.length;a++)b[(w=u.attributes[a]).name]=w.value;for(a in b)if(w=b[a],"children"==a);else if("dangerouslySetInnerHTML"==a)v=w;else if(!(a in k)){if("value"==a&&"defaultValue"in k||"checked"==a&&"defaultChecked"in k)continue;j(u,a,null,w,r)}for(a in k)w=k[a],"children"==a?y=w:"dangerouslySetInnerHTML"==a?h=w:"value"==a?_=w:"checked"==a?m=w:c&&"function"!=typeof w||b[a]===w||j(u,a,w,b[a],r);if(h)c||v&&(h.__html==v.__html||h.__html==u.innerHTML)||(u.innerHTML=h.__html),t.__k=[];else if(v&&(u.innerHTML=""),I("template"==t.type?u.content:u,d(y)?y:[y],t,i,o,"foreignObject"==x?"http://www.w3.org/1999/xhtml":r,e,f,e?e[0]:i.__k&&S(i,0),c,s),null!=e)for(a=e.length;a--;)g(e[a]);c||(a="value","progress"==x&&null==_?u.removeAttribute("value"):null!=_&&(_!==u[a]||"progress"==x&&!_||"option"==x&&_!=b[a])&&j(u,a,_,b[a],r),a="checked",null!=m&&m!=u[a]&&j(u,a,m,b[a],r))}return u}function B(n,u,t){try{if("function"==typeof n){var i="function"==typeof n.__u;i&&n.__u(),i&&null==u||(n.__u=n(u))}else n.current=u}catch(n){l.__e(n,t)}}function D(n,u,t){var i,o;if(l.unmount&&l.unmount(n),(i=n.ref)&&(i.current&&i.current!=n.__e||B(i,null,u)),null!=(i=n.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(n){l.__e(n,u)}i.base=i.__P=null}if(i=n.__k)for(o=0;o<i.length;o++)i[o]&&D(i[o],u,t||"function"!=typeof n.type);t||g(n.__e),n.__c=n.__=n.__e=void 0}function E(n,l,u){return this.constructor(n,u)}function G(u,t,i){var o,r,e,f;t==document&&(t=document.documentElement),l.__&&l.__(u,t),r=(o="function"==typeof i)?null:i&&i.__k||t.__k,e=[],f=[],O(t,u=(!o&&i||t).__k=_(k,null,[u]),r||p,p,t.namespaceURI,!o&&i?[i]:r?null:t.firstChild?n.call(t.childNodes):null,e,!o&&i?i:r?r.__e:t.firstChild,o,f),N(e,u,f)}function J(n,l){G(n,l,J)}function K(l,u,t){var i,o,r,e,f=w({},l.props);for(r in l.type&&l.type.defaultProps&&(e=l.type.defaultProps),u)"key"==r?i=u[r]:"ref"==r?o=u[r]:f[r]=void 0===u[r]&&null!=e?e[r]:u[r];return arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):t),m(l.type,f,i||l.key,o||l.ref,null)}function Q(n){function l(n){var u,t;return this.getChildContext||(u=new Set,(t={})[l.__c]=this,this.getChildContext=function(){return t},this.componentWillUnmount=function(){u=null},this.shouldComponentUpdate=function(n){this.props.value!=n.value&&u.forEach(function(n){n.__e=!0,M(n)})},this.sub=function(n){u.add(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){u&&u.delete(n),l&&l.call(n)}}),n.children}return l.__c="__cC"+h++,l.__=n,l.Provider=l.__l=(l.Consumer=function(n,l){return n.children(l)}).contextType=l,l}n=v.slice,l={__e:function(n,l,u,t){for(var i,o,r;l=l.__;)if((i=l.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(n)),r=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(n,t||{}),r=i.__d),r)return i.__E=i}catch(l){n=l}throw n}},u=0,t=function(n){return null!=n&&void 0===n.constructor},x.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=w({},this.state),"function"==typeof n&&(n=n(w({},u),this.props)),n&&w(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),M(this))},x.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),M(this))},x.prototype.render=k,i=[],r="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,e=function(n,l){return n.__v.__b-l.__v.__b},$.__r=0,f=/(PointerCapture)$|Capture$/i,c=0,s=F(!1),a=F(!0),h=0;
1988
1989
1990/***/ })
1991
1992/******/ });
1993/************************************************************************/
1994/******/ // The module cache
1995/******/ var __webpack_module_cache__ = {};
1996/******/
1997/******/ // The require function
1998/******/ function __webpack_require__(moduleId) {
1999/******/ // Check if module is in cache
2000/******/ var cachedModule = __webpack_module_cache__[moduleId];
2001/******/ if (cachedModule !== undefined) {
2002/******/ return cachedModule.exports;
2003/******/ }
2004/******/ // Create a new module (and put it into the cache)
2005/******/ var module = __webpack_module_cache__[moduleId] = {
2006/******/ // no module.id needed
2007/******/ // no module.loaded needed
2008/******/ exports: {}
2009/******/ };
2010/******/
2011/******/ // Execute the module function
2012/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
2013/******/
2014/******/ // Return the exports of the module
2015/******/ return module.exports;
2016/******/ }
2017/******/
2018/************************************************************************/
2019/******/ /* webpack/runtime/define property getters */
2020/******/ (() => {
2021/******/ // define getter functions for harmony exports
2022/******/ __webpack_require__.d = (exports, definition) => {
2023/******/ for(var key in definition) {
2024/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
2025/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
2026/******/ }
2027/******/ }
2028/******/ };
2029/******/ })();
2030/******/
2031/******/ /* webpack/runtime/hasOwnProperty shorthand */
2032/******/ (() => {
2033/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
2034/******/ })();
2035/******/
2036/************************************************************************/
2037var __webpack_exports__ = {};
2038
2039// EXPORTS
2040__webpack_require__.d(__webpack_exports__, {
2041 zj: () => (/* reexport */ debug_build_module/* getConfig */.zj),
2042 SD: () => (/* reexport */ debug_build_module/* getContext */.SD),
2043 V6: () => (/* reexport */ debug_build_module/* getElement */.V6),
2044 $K: () => (/* reexport */ debug_build_module/* getServerContext */.$K),
2045 vT: () => (/* reexport */ debug_build_module/* getServerState */.vT),
2046 jb: () => (/* reexport */ debug_build_module/* privateApis */.jb),
2047 yT: () => (/* reexport */ debug_build_module/* splitTask */.yT),
2048 M_: () => (/* reexport */ debug_build_module/* store */.M_),
2049 hb: () => (/* reexport */ debug_build_module/* useCallback */.hb),
2050 vJ: () => (/* reexport */ debug_build_module/* useEffect */.vJ),
2051 ip: () => (/* reexport */ debug_build_module/* useInit */.ip),
2052 Nf: () => (/* reexport */ debug_build_module/* useLayoutEffect */.Nf),
2053 Kr: () => (/* reexport */ debug_build_module/* useMemo */.Kr),
2054 li: () => (/* reexport */ debug_build_module/* useRef */.li),
2055 J0: () => (/* reexport */ debug_build_module/* useState */.J0),
2056 FH: () => (/* reexport */ debug_build_module/* useWatch */.FH),
2057 v4: () => (/* reexport */ debug_build_module/* withScope */.v4),
2058 mh: () => (/* reexport */ debug_build_module/* withSyncEvent */.mh)
2059});
2060
2061// EXTERNAL MODULE: ./node_modules/preact/dist/preact.module.js
2062var debug_preact_module = __webpack_require__(622);
2063;// ./node_modules/preact/devtools/dist/devtools.module.js
2064var debug_i;function debug_t(o,e){return n.__a&&n.__a(e),o}null!=(debug_i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0)&&debug_i.__PREACT_DEVTOOLS__&&debug_i.__PREACT_DEVTOOLS__.attachPreact("10.28.2",debug_preact_module/* options */.fF,{Fragment:debug_preact_module/* Fragment */.FK,Component:debug_preact_module/* Component */.uA});
2065
2066;// ./node_modules/preact/debug/dist/debug.module.js
2067var debug_debug_module_t={};function debug_r(){debug_debug_module_t={}}function debug_a(e){return e.type===debug_preact_module/* Fragment */.FK?"Fragment":"function"==typeof e.type?e.type.displayName||e.type.name:"string"==typeof e.type?e.type:"#text"}var debug_debug_module_i=[],debug_s=[];function debug_c(){return debug_debug_module_i.length>0?debug_debug_module_i[debug_debug_module_i.length-1]:null}var debug_l=!0;function debug_u(e){return"function"==typeof e.type&&e.type!=debug_preact_module/* Fragment */.FK}function debug_f(n){for(var e=[n],o=n;null!=o.__o;)e.push(o.__o),o=o.__o;return e.reduce(function(n,e){n+=" in "+debug_a(e);var o=e.__source;return o?n+=" (at "+o.fileName+":"+o.lineNumber+")":debug_l&&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."),debug_l=!1,n+"\n"},"")}var debug_d="function"==typeof WeakMap;function debug_p(n){var e=[];return n.__k?(n.__k.forEach(function(n){n&&"function"==typeof n.type?e.push.apply(e,debug_p(n)):n&&"string"==typeof n.type&&e.push(n.type)}),e):e}function debug_h(n){return n?"function"==typeof n.type?null==n.__?null!=n.__e&&null!=n.__e.parentNode?n.__e.parentNode.localName:"":debug_h(n.__):n.type:""}var debug_v=debug_preact_module/* Component */.uA.prototype.setState;function debug_y(n){return"table"===n||"tfoot"===n||"tbody"===n||"thead"===n||"td"===n||"tr"===n||"th"===n}debug_preact_module/* Component */.uA.prototype.setState=function(n,e){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'+debug_f(debug_c())),debug_v.call(this,n,e)};var debug_m=/^(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)$/,debug_b=debug_preact_module/* Component */.uA.prototype.forceUpdate;function debug_w(n){var e=n.props,o=debug_a(n),t="";for(var r in e)if(e.hasOwnProperty(r)&&"children"!==r){var i=e[r];"function"==typeof i&&(i="function "+(i.displayName||i.name)+"() {}"),i=Object(i)!==i||i.toString?i+"":Object.prototype.toString.call(i),t+=" "+r+"="+JSON.stringify(i)}var s=e.children;return"<"+o+t+(s&&s.length?">..</"+o+">":" />")}debug_preact_module/* Component */.uA.prototype.forceUpdate=function(n){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'+debug_f(debug_c())):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'+debug_f(this.__v)),debug_b.call(this,n)},debug_preact_module/* options */.fF.__m=function(n,e){var o=n.type,t=e.map(function(n){return n&&n.localName}).filter(Boolean);console.error('Expected a DOM node of type "'+o+'" but found "'+t.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"+debug_f(n))},function(){!function(){var n=debug_preact_module/* options */.fF.__b,o=debug_preact_module/* options */.fF.diffed,t=debug_preact_module/* options */.fF.__,r=debug_preact_module/* options */.fF.vnode,a=debug_preact_module/* options */.fF.__r;debug_preact_module/* options */.fF.diffed=function(n){debug_u(n)&&debug_s.pop(),debug_debug_module_i.pop(),o&&o(n)},debug_preact_module/* options */.fF.__b=function(e){debug_u(e)&&debug_debug_module_i.push(e),n&&n(e)},debug_preact_module/* options */.fF.__=function(n,e){debug_s=[],t&&t(n,e)},debug_preact_module/* options */.fF.vnode=function(n){n.__o=debug_s.length>0?debug_s[debug_s.length-1]:null,r&&r(n)},debug_preact_module/* options */.fF.__r=function(n){debug_u(n)&&debug_s.push(n),a&&a(n)}}();var n=!1,o=debug_preact_module/* options */.fF.__b,r=debug_preact_module/* options */.fF.diffed,c=debug_preact_module/* options */.fF.vnode,l=debug_preact_module/* options */.fF.__r,v=debug_preact_module/* options */.fF.__e,b=debug_preact_module/* options */.fF.__,g=debug_preact_module/* options */.fF.__h,E=debug_d?{useEffect:new WeakMap,useLayoutEffect:new WeakMap,lazyPropTypes:new WeakMap}:null,k=[];debug_preact_module/* options */.fF.__e=function(n,e,o,t){if(e&&e.__c&&"function"==typeof n.then){var r=n;n=new Error("Missing Suspense. The throwing component was: "+debug_a(e));for(var i=e;i;i=i.__)if(i.__c&&i.__c.__c){n=r;break}if(n instanceof Error)throw n}try{(t=t||{}).componentStack=debug_f(e),v(n,e,o,t),"function"!=typeof n.then&&setTimeout(function(){throw n})}catch(n){throw n}},debug_preact_module/* options */.fF.__=function(n,e){if(!e)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 o;switch(e.nodeType){case 1:case 11:case 9:o=!0;break;default:o=!1}if(!o){var t=debug_a(n);throw new Error("Expected a valid HTML node as a second argument to render.\tReceived "+e+" instead: render(<"+t+" />, "+e+");")}b&&b(n,e)},debug_preact_module/* options */.fF.__b=function(e){var r=e.type;if(n=!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"+debug_w(e)+"\n\n"+debug_f(e));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"+debug_a(e)+" = "+debug_w(r)+";\n let vnode = <My"+debug_a(e)+" />;\n\nThis usually happens when you export a JSX literal and not the component.\n\n"+debug_f(e));throw new Error("Invalid type passed to createElement(): "+(Array.isArray(r)?"array":r))}if(void 0!==e.ref&&"function"!=typeof e.ref&&"object"!=typeof e.ref&&!("$$typeof"in e))throw new Error('Component\'s "ref" property should be a function, or an object created by createRef(), but got ['+typeof e.ref+"] instead\n"+debug_w(e)+"\n\n"+debug_f(e));if("string"==typeof e.type)for(var i in e.props)if("o"===i[0]&&"n"===i[1]&&"function"!=typeof e.props[i]&&null!=e.props[i])throw new Error("Component's \""+i+'" property should be a function, but got ['+typeof e.props[i]+"] instead\n"+debug_w(e)+"\n\n"+debug_f(e));if("function"==typeof e.type&&e.type.propTypes){if("Lazy"===e.type.displayName&&E&&!E.lazyPropTypes.has(e.type)){var s="PropTypes are not supported on lazy(). Use propTypes on the wrapped component itself. ";try{var c=e.type();E.lazyPropTypes.set(e.type,!0),console.warn(s+"Component wrapped in lazy() is "+debug_a(c))}catch(n){console.warn(s+"We will log the wrapped component's name once it is loaded.")}}var l=e.props;e.type.__f&&delete(l=function(n,e){for(var o in e)n[o]=e[o];return n}({},l)).ref,function(n,e,o,r,a){Object.keys(n).forEach(function(o){var i;try{i=n[o](e,o,r,"prop",null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(n){i=n}i&&!(i.message in debug_debug_module_t)&&(debug_debug_module_t[i.message]=!0,console.error("Failed prop type: "+i.message+(a&&"\n"+a()||"")))})}(e.type.propTypes,l,0,debug_a(e),function(){return debug_f(e)})}o&&o(e)};var T,_=0;debug_preact_module/* options */.fF.__r=function(e){l&&l(e),n=!0;var o=e.__c;if(o===T?_++:_=1,_>=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: "+debug_a(e));T=o},debug_preact_module/* options */.fF.__h=function(e,o,t){if(!e||!n)throw new Error("Hook can only be invoked from render methods.");g&&g(e,o,t)};var O=function(n,e){return{get:function(){var o="get"+n+e;k&&k.indexOf(o)<0&&(k.push(o),console.warn("getting vnode."+n+" is deprecated, "+e))},set:function(){var o="set"+n+e;k&&k.indexOf(o)<0&&(k.push(o),console.warn("setting vnode."+n+" is not allowed, "+e))}}},I={nodeName:O("nodeName","use vnode.type"),attributes:O("attributes","use vnode.props"),children:O("children","use vnode.props.children")},M=Object.create({},I);debug_preact_module/* options */.fF.vnode=function(n){var e=n.props;if(null!==n.type&&null!=e&&("__source"in e||"__self"in e)){var o=n.props={};for(var t in e){var r=e[t];"__source"===t?n.__source=r:"__self"===t?n.__self=r:o[t]=r}}n.__proto__=M,c&&c(n)},debug_preact_module/* options */.fF.diffed=function(e){var o,t=e.type,i=e.__;if(e.__k&&e.__k.forEach(function(n){if("object"==typeof n&&n&&void 0===n.type){var o=Object.keys(n).join(",");throw new Error("Objects are not valid as a child. Encountered an object with the keys {"+o+"}.\n\n"+debug_f(e))}}),e.__c===T&&(_=0),"string"==typeof t&&(debug_y(t)||"p"===t||"a"===t||"button"===t)){var s=debug_h(i);if(""!==s&&debug_y(t))"table"===t&&"td"!==s&&debug_y(s)?console.error("Improper nesting of table. Your <table> should not have a table-node parent."+debug_w(e)+"\n\n"+debug_f(e)):"thead"!==t&&"tfoot"!==t&&"tbody"!==t||"table"===s?"tr"===t&&"thead"!==s&&"tfoot"!==s&&"tbody"!==s?console.error("Improper nesting of table. Your <tr> should have a <thead/tbody/tfoot> parent."+debug_w(e)+"\n\n"+debug_f(e)):"td"===t&&"tr"!==s?console.error("Improper nesting of table. Your <td> should have a <tr> parent."+debug_w(e)+"\n\n"+debug_f(e)):"th"===t&&"tr"!==s&&console.error("Improper nesting of table. Your <th> should have a <tr>."+debug_w(e)+"\n\n"+debug_f(e)):console.error("Improper nesting of table. Your <thead/tbody/tfoot> should have a <table> 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 <p> 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<e.__k.length;u++){var d=e.__k[u];if(d&&null!=d.key){var v=d.key;if(-1!==l.indexOf(v)){console.error('Following component has two or more children with the same key attribute: "'+v+'". This may cause glitches and misbehavior in rendering process. Component: \n\n'+debug_w(e)+"\n\n"+debug_f(e));break}l.push(v)}}if(null!=e.__c&&null!=e.__c.__H){var b=e.__c.__H.__;if(b)for(var g=0;g<b.length;g+=1){var E=b[g];if(E.__H)for(var k=0;k<E.__H.length;k++)if((o=E.__H[k])!=o){var O=debug_a(e);console.warn("Invalid argument passed to hook. Hooks should not be called with NaN in the dependency array. Hook index "+g+" in component "+O+" was called with NaN.")}}}}}();
2068
2069// EXTERNAL MODULE: ./node_modules/@wordpress/interactivity/build-module/index.js + 17 modules
2070var debug_build_module = __webpack_require__(434);
2071;// ./node_modules/@wordpress/interactivity/build-module/debug.js
2072
2073
2074
2075var __webpack_exports__getConfig = __webpack_exports__.zj;
2076var __webpack_exports__getContext = __webpack_exports__.SD;
2077var __webpack_exports__getElement = __webpack_exports__.V6;
2078var __webpack_exports__getServerContext = __webpack_exports__.$K;
2079var __webpack_exports__getServerState = __webpack_exports__.vT;
2080var __webpack_exports__privateApis = __webpack_exports__.jb;
2081var __webpack_exports__splitTask = __webpack_exports__.yT;
2082var __webpack_exports__store = __webpack_exports__.M_;
2083var __webpack_exports__useCallback = __webpack_exports__.hb;
2084var __webpack_exports__useEffect = __webpack_exports__.vJ;
2085var __webpack_exports__useInit = __webpack_exports__.ip;
2086var __webpack_exports__useLayoutEffect = __webpack_exports__.Nf;
2087var __webpack_exports__useMemo = __webpack_exports__.Kr;
2088var __webpack_exports__useRef = __webpack_exports__.li;
2089var __webpack_exports__useState = __webpack_exports__.J0;
2090var __webpack_exports__useWatch = __webpack_exports__.FH;
2091var __webpack_exports__withScope = __webpack_exports__.v4;
2092var __webpack_exports__withSyncEvent = __webpack_exports__.mh;
2093export { __webpack_exports__getConfig as getConfig, __webpack_exports__getContext as getContext, __webpack_exports__getElement as getElement, __webpack_exports__getServerContext as getServerContext, __webpack_exports__getServerState as getServerState, __webpack_exports__privateApis as privateApis, __webpack_exports__splitTask as splitTask, __webpack_exports__store as store, __webpack_exports__useCallback as useCallback, __webpack_exports__useEffect as useEffect, __webpack_exports__useInit as useInit, __webpack_exports__useLayoutEffect as useLayoutEffect, __webpack_exports__useMemo as useMemo, __webpack_exports__useRef as useRef, __webpack_exports__useState as useState, __webpack_exports__useWatch as useWatch, __webpack_exports__withScope as withScope, __webpack_exports__withSyncEvent as withSyncEvent };
2094
Ui Ux Design – Teachers Night Out https://cardgames4educators.com Wed, 16 Oct 2024 22:24:18 +0000 en-US hourly 1 https://wordpress.org/?v=6.9.4 https://cardgames4educators.com/wp-content/uploads/2024/06/cropped-Card-4-Educators-logo-32x32.png Ui Ux Design – Teachers Night Out https://cardgames4educators.com 32 32 Masters In English How English Speaker https://cardgames4educators.com/masters-in-english-how-english-speaker/ https://cardgames4educators.com/masters-in-english-how-english-speaker/#comments Mon, 27 May 2024 08:54:45 +0000 https://themexriver.com/wp/kadu/?p=1

Erat himenaeos neque id sagittis massa. Hac suscipit pulvinar dignissim platea magnis eu. Don tellus a pharetra inceptos efficitur dui pulvinar. Feugiat facilisis penatibus pulvinar nunc dictumst donec odio platea habitasse. Lacus porta dolor purus elit ante bibendum tortor netus taciti nullam cubilia. Erat per suspendisse placerat morbi egestas pulvinar bibendum sollicitudin nec. Euismod cubilia eleifend velit himenaeos sodales lectus. Leo maximus cras ac porttitor aliquam torquent pulvinar odio volutpat parturient. Quisque risus finibus suspendisse mus purus magnis facilisi condimentum consectetur dui. Curae elit suspendisse cursus vehicula.

Turpis taciti class non vel pretium quis pulvinar tempor lobortis nunc. Libero phasellus parturient sapien volutpat malesuada ornare. Cubilia dignissim sollicitudin rhoncus lacinia maximus. Cras lorem fermentum bibendum pellentesque nisl etiam ligula enim cubilia. Vulputate pede sapien torquent montes tempus malesuada in mattis dis turpis vitae. Porta est tempor ex eget feugiat vulputate ipsum. Justo nec iaculis habitant diam arcu fermentum.

We offer comprehen sive emplo ment services such as assistance wit employer compliance.Our company is your strategic HR partner as instead of HR. john smithson

Cubilia dignissim sollicitudin rhoncus lacinia maximus. Cras lorem fermentum bibendum pellentesque nisl etiam ligula enim cubilia. Vulputate pede sapien torquent montes tempus malesuada in mattis dis turpis vitae.

Exploring Learning Landscapes in Academic

Feugiat facilisis penatibus pulvinar nunc dictumst donec odio platea habitasse. Lacus porta dolor purus elit ante bibendum tortor netus taciti nullam cubilia. Erat per suspendisse placerat morbi egestas pulvinar bibendum sollicitudin nec. Euismod cubilia eleifend velit himenaeos sodales lectus. Leo maximus cras ac porttitor aliquam torquent.

]]>
https://cardgames4educators.com/masters-in-english-how-english-speaker/feed/ 1