[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/js/dist/script-modules/interactivity/ -> debug.js (source)

   1  /******/ var __webpack_modules__ = ({
   2  
   3  /***/ 380:
   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 */ h),
  24    FH: () => (/* reexport */ useWatch),
  25    v4: () => (/* reexport */ withScope)
  26  });
  27  
  28  // EXTERNAL MODULE: ./node_modules/preact/dist/preact.module.js
  29  var preact_module = __webpack_require__(622);
  30  ;// CONCATENATED MODULE: ./node_modules/preact/hooks/dist/hooks.module.js
  31  var 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 d(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 h(n){return hooks_module_o=1,p(D,n)}function p(n,u,i){var o=d(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.u)){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=!1;return u.forEach(function(n){if(n.__N){var t=n.__[0];n.__=n.__N,n.__N=void 0,t!==n.__[0]&&(i=!0)}}),!(!i&&o.__c.props===n)&&(!c||c.call(this,n,t,r))};r.u=!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=d(hooks_module_t++,3);!hooks_module_c.__s&&C(i.__H,u)&&(i.__=n,i.i=u,r.__H.__h.push(i))}function _(n,u){var i=d(hooks_module_t++,4);!hooks_module_c.__s&&C(i.__H,u)&&(i.__=n,i.i=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(){return"function"==typeof n?(n(t()),function(){return n(null)}):n?(n.current=t(),function(){return n.current=null}):void 0},null==r?r:r.concat(n))}function T(n,r){var u=d(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=d(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=d(hooks_module_t++,10),i=h();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=d(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.i=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.i&&(n.__H=n.i),n.i=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,100);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}
  32  
  33  ;// CONCATENATED MODULE: ./node_modules/@preact/signals-core/dist/signals-core.module.js
  34  var 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){this.v=i;this.i=0;this.n=void 0;this.t=void 0}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){if(this.t!==i&&void 0===i.e){i.x=this.t;if(void 0!==this.t)this.t.e=i;this.t=i}};signals_core_module_u.prototype.U=function(i){if(void 0!==this.t){var t=i.e,r=i.x;if(void 0!==t){t.x=r;i.e=void 0}if(void 0!==r){r.e=t;i.x=void 0}if(i===this.t)this.t=r}};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}})};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){return new signals_core_module_u(i)}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){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}(signals_core_module_y.prototype=new signals_core_module_u).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){return new signals_core_module_y(i)}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_g(i);throw t}finally{signals_core_module_o=n;signals_core_module_t()}}}function signals_core_module_g(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_p(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_g(this);signals_core_module_t()}function signals_core_module_b(i){this.x=i;this.u=void 0;this.s=void 0;this.o=void 0;this.f=32}signals_core_module_b.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_b.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_p.bind(this,i)};signals_core_module_b.prototype.N=function(){if(!(2&this.f)){this.f|=2;this.o=signals_core_module_h;signals_core_module_h=this}};signals_core_module_b.prototype.d=function(){this.f|=8;if(!(1&this.f))signals_core_module_g(this)};function E(i){var t=new signals_core_module_b(i);try{t.c()}catch(i){t.d();throw i}return t.d.bind(t)}
  35  ;// CONCATENATED MODULE: ./node_modules/@preact/signals/dist/signals.module.js
  36  var signals_module_v,signals_module_s;function signals_module_l(n,i){preact_module/* options */.fF[n]=i.bind(null,preact_module/* options */.fF[n]||function(){})}function signals_module_d(n){if(signals_module_s)signals_module_s();signals_module_s=n&&n.S()}function signals_module_p(n){var r=this,f=n.data,o=useSignal(f);o.value=f;var e=T(function(){var n=r.__v;while(n=n.__)if(n.__c){n.__c.__$f|=4;break}r.__$u.c=function(){var n;if(!(0,preact_module/* isValidElement */.zO)(e.peek())&&3===(null==(n=r.base)?void 0:n.nodeType))r.base.data=e.peek();else{r.__$f|=1;r.setState({})}};return signals_core_module_w(function(){var n=o.value.value;return 0===n?0:!0===n?"":n||""})},[]);return e.value}signals_module_p.displayName="_st";Object.defineProperties(signals_core_module_u.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:signals_module_p},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});signals_module_l("__b",function(n,r){if("string"==typeof r.type){var i,t=r.props;for(var f in t)if("children"!==f){var o=t[f];if(o instanceof signals_core_module_u){if(!i)r.__np=i={};i[f]=o;t[f]=o.peek()}}}n(r)});signals_module_l("__r",function(n,r){signals_module_d();var i,t=r.__c;if(t){t.__$f&=-2;if(void 0===(i=t.__$u))t.__$u=i=function(n){var r;E(function(){r=this});r.c=function(){t.__$f|=1;t.setState({})};return r}()}signals_module_v=t;signals_module_d(i);n(r)});signals_module_l("__e",function(n,r,i,t){signals_module_d();signals_module_v=void 0;n(r,i,t)});signals_module_l("diffed",function(n,r){signals_module_d();signals_module_v=void 0;var i;if("string"==typeof r.type&&(i=r.__e)){var t=r.__np,f=r.props;if(t){var o=i.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 i.U=o={};for(var a in t){var c=o[a],s=t[a];if(void 0===c){c=signals_module_(i,a,s,f);o[a]=c}else c.o(s,f)}}}n(r)});function signals_module_(n,r,i,t){var f=r in n&&void 0===n.ownerSVGElement,o=signals_core_module_d(i);return{o:function(n,r){o.value=n;t=r},d:E(function(){var i=o.value.value;if(t[r]!==i){t[r]=i;if(f)n[r]=i;else if(i)n.setAttribute(r,i);else n.removeAttribute(r)}})}}signals_module_l("unmount",function(n,r){if("string"==typeof r.type){var i=r.__e;if(i){var t=i.U;if(t){i.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()}}}n(r)});signals_module_l("__h",function(n,r,i,t){if(t<3||9===t)r.__$f|=2;n(r,i,t)});preact_module/* Component */.uA.prototype.shouldComponentUpdate=function(n,r){var i=this.__$u;if(!(i&&void 0!==i.s||4&this.__$f))return!0;if(3&this.__$f)return!0;for(var t in r)return!0;for(var f in n)if("__source"!==f&&n[f]!==this.props[f])return!0;for(var o in this.props)if(!(o in n))return!0;return!1};function useSignal(n){return T(function(){return signals_core_module_d(n)},[])}function useComputed(n){var r=f(n);r.current=n;signals_module_v.__$f|=4;return t(function(){return u(function(){return r.current()})},[])}function useSignalEffect(n){var r=f(n);r.current=n;o(function(){return c(function(){return r.current()})},[])}
  37  ;// CONCATENATED MODULE: ./node_modules/@wordpress/interactivity/build-module/namespaces.js
  38  const namespaceStack = [];
  39  const getNamespace = () => namespaceStack.slice(-1)[0];
  40  const setNamespace = namespace => {
  41    namespaceStack.push(namespace);
  42  };
  43  const resetNamespace = () => {
  44    namespaceStack.pop();
  45  };
  46  
  47  ;// CONCATENATED MODULE: ./node_modules/@wordpress/interactivity/build-module/scopes.js
  48  /**
  49   * External dependencies
  50   */
  51  
  52  /**
  53   * Internal dependencies
  54   */
  55  
  56  // Store stacks for the current scope and the default namespaces and export APIs
  57  // to interact with them.
  58  const scopeStack = [];
  59  const getScope = () => scopeStack.slice(-1)[0];
  60  const setScope = scope => {
  61    scopeStack.push(scope);
  62  };
  63  const resetScope = () => {
  64    scopeStack.pop();
  65  };
  66  
  67  // Wrap the element props to prevent modifications.
  68  const immutableMap = new WeakMap();
  69  const immutableError = () => {
  70    throw new Error('Please use `data-wp-bind` to modify the attributes of an element.');
  71  };
  72  const immutableHandlers = {
  73    get(target, key, receiver) {
  74      const value = Reflect.get(target, key, receiver);
  75      return !!value && typeof value === 'object' ? deepImmutable(value) : value;
  76    },
  77    set: immutableError,
  78    deleteProperty: immutableError
  79  };
  80  const deepImmutable = target => {
  81    if (!immutableMap.has(target)) {
  82      immutableMap.set(target, new Proxy(target, immutableHandlers));
  83    }
  84    return immutableMap.get(target);
  85  };
  86  
  87  /**
  88   * Retrieves the context inherited by the element evaluating a function from the
  89   * store. The returned value depends on the element and the namespace where the
  90   * function calling `getContext()` exists.
  91   *
  92   * @param namespace Store namespace. By default, the namespace where the calling
  93   *                  function exists is used.
  94   * @return The context content.
  95   */
  96  const getContext = namespace => {
  97    const scope = getScope();
  98    if (true) {
  99      if (!scope) {
 100        throw Error('Cannot call `getContext()` 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)`.');
 101      }
 102    }
 103    return scope.context[namespace || getNamespace()];
 104  };
 105  
 106  /**
 107   * Retrieves a representation of the element where a function from the store
 108   * is being evalutated. Such representation is read-only, and contains a
 109   * reference to the DOM element, its props and a local reactive state.
 110   *
 111   * @return Element representation.
 112   */
 113  const getElement = () => {
 114    const scope = getScope();
 115    if (true) {
 116      if (!scope) {
 117        throw Error('Cannot call `getElement()` 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)`.');
 118      }
 119    }
 120    const {
 121      ref,
 122      attributes
 123    } = scope;
 124    return Object.freeze({
 125      ref: ref.current,
 126      attributes: deepImmutable(attributes)
 127    });
 128  };
 129  
 130  /**
 131   * Retrieves the part of the inherited context defined and updated from the
 132   * server.
 133   *
 134   * The object returned is read-only, and includes the context defined in PHP
 135   * with `wp_interactivity_data_wp_context()`, including the corresponding
 136   * inherited properties. When `actions.navigate()` is called, this object is
 137   * updated to reflect the changes in the new visited page, without affecting the
 138   * context returned by `getContext()`. Directives can subscribe to those changes
 139   * to update the context if needed.
 140   *
 141   * @example
 142   * ```js
 143   *  store('...', {
 144   *    callbacks: {
 145   *      updateServerContext() {
 146   *        const context = getContext();
 147   *        const serverContext = getServerContext();
 148   *        // Override some property with the new value that came from the server.
 149   *        context.overridableProp = serverContext.overridableProp;
 150   *      },
 151   *    },
 152   *  });
 153   * ```
 154   *
 155   * @param namespace Store namespace. By default, the namespace where the calling
 156   *                  function exists is used.
 157   * @return The server context content.
 158   */
 159  const getServerContext = namespace => {
 160    const scope = getScope();
 161    if (true) {
 162      if (!scope) {
 163        throw Error('Cannot call `getServerContext()` 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)`.');
 164      }
 165    }
 166    return scope.serverContext[namespace || getNamespace()];
 167  };
 168  
 169  ;// CONCATENATED MODULE: ./node_modules/@wordpress/interactivity/build-module/utils.js
 170  /**
 171   * External dependencies
 172   */
 173  
 174  
 175  
 176  /**
 177   * Internal dependencies
 178   */
 179  
 180  
 181  /**
 182   * Executes a callback function after the next frame is rendered.
 183   *
 184   * @param callback The callback function to be executed.
 185   * @return A promise that resolves after the callback function is executed.
 186   */
 187  const afterNextFrame = callback => {
 188    return new Promise(resolve => {
 189      const done = () => {
 190        clearTimeout(timeout);
 191        window.cancelAnimationFrame(raf);
 192        setTimeout(() => {
 193          callback();
 194          resolve();
 195        });
 196      };
 197      const timeout = setTimeout(done, 100);
 198      const raf = window.requestAnimationFrame(done);
 199    });
 200  };
 201  
 202  /**
 203   * Returns a promise that resolves after yielding to main.
 204   *
 205   * @return Promise
 206   */
 207  const splitTask = () => {
 208    return new Promise(resolve => {
 209      // TODO: Use scheduler.yield() when available.
 210      setTimeout(resolve, 0);
 211    });
 212  };
 213  
 214  /**
 215   * Creates a Flusher object that can be used to flush computed values and notify listeners.
 216   *
 217   * Using the mangled properties:
 218   * this.c: this._callback
 219   * this.x: this._compute
 220   * https://github.com/preactjs/signals/blob/main/mangle.json
 221   *
 222   * @param compute The function that computes the value to be flushed.
 223   * @param notify  The function that notifies listeners when the value is flushed.
 224   * @return The Flusher object with `flush` and `dispose` properties.
 225   */
 226  function createFlusher(compute, notify) {
 227    let flush = () => undefined;
 228    const dispose = E(function () {
 229      flush = this.c.bind(this);
 230      this.x = compute;
 231      this.c = notify;
 232      return compute();
 233    });
 234    return {
 235      flush,
 236      dispose
 237    };
 238  }
 239  
 240  /**
 241   * Custom hook that executes a callback function whenever a signal is triggered.
 242   * Version of `useSignalEffect` with a `useEffect`-like execution. This hook
 243   * implementation comes from this PR, but we added short-cirtuiting to avoid
 244   * infinite loops: https://github.com/preactjs/signals/pull/290
 245   *
 246   * @param callback The callback function to be executed.
 247   */
 248  function utils_useSignalEffect(callback) {
 249    y(() => {
 250      let eff = null;
 251      let isExecuting = false;
 252      const notify = async () => {
 253        if (eff && !isExecuting) {
 254          isExecuting = true;
 255          await afterNextFrame(eff.flush);
 256          isExecuting = false;
 257        }
 258      };
 259      eff = createFlusher(callback, notify);
 260      return eff.dispose;
 261    }, []);
 262  }
 263  
 264  /**
 265   * Returns the passed function wrapped with the current scope so it is
 266   * accessible whenever the function runs. This is primarily to make the scope
 267   * available inside hook callbacks.
 268   *
 269   * Asyncronous functions should use generators that yield promises instead of awaiting them.
 270   * See the documentation for details: https://developer.wordpress.org/block-editor/reference-guides/packages/packages-interactivity/packages-interactivity-api-reference/#the-store
 271   *
 272   * @param func The passed function.
 273   * @return The wrapped function.
 274   */
 275  
 276  function withScope(func) {
 277    const scope = getScope();
 278    const ns = getNamespace();
 279    if (func?.constructor?.name === 'GeneratorFunction') {
 280      return async (...args) => {
 281        const gen = func(...args);
 282        let value;
 283        let it;
 284        while (true) {
 285          setNamespace(ns);
 286          setScope(scope);
 287          try {
 288            it = gen.next(value);
 289          } finally {
 290            resetScope();
 291            resetNamespace();
 292          }
 293          try {
 294            value = await it.value;
 295          } catch (e) {
 296            setNamespace(ns);
 297            setScope(scope);
 298            gen.throw(e);
 299          } finally {
 300            resetScope();
 301            resetNamespace();
 302          }
 303          if (it.done) {
 304            break;
 305          }
 306        }
 307        return value;
 308      };
 309    }
 310    return (...args) => {
 311      setNamespace(ns);
 312      setScope(scope);
 313      try {
 314        return func(...args);
 315      } finally {
 316        resetNamespace();
 317        resetScope();
 318      }
 319    };
 320  }
 321  
 322  /**
 323   * Accepts a function that contains imperative code which runs whenever any of
 324   * the accessed _reactive_ properties (e.g., values from the global state or the
 325   * context) is modified.
 326   *
 327   * This hook makes the element's scope available so functions like
 328   * `getElement()` and `getContext()` can be used inside the passed callback.
 329   *
 330   * @param callback The hook callback.
 331   */
 332  function useWatch(callback) {
 333    utils_useSignalEffect(withScope(callback));
 334  }
 335  
 336  /**
 337   * Accepts a function that contains imperative code which runs only after the
 338   * element's first render, mainly useful for intialization logic.
 339   *
 340   * This hook makes the element's scope available so functions like
 341   * `getElement()` and `getContext()` can be used inside the passed callback.
 342   *
 343   * @param callback The hook callback.
 344   */
 345  function useInit(callback) {
 346    y(withScope(callback), []);
 347  }
 348  
 349  /**
 350   * Accepts a function that contains imperative, possibly effectful code. The
 351   * effects run after browser paint, without blocking it.
 352   *
 353   * This hook is equivalent to Preact's `useEffect` and makes the element's scope
 354   * available so functions like `getElement()` and `getContext()` can be used
 355   * inside the passed callback.
 356   *
 357   * @param callback Imperative function that can return a cleanup
 358   *                 function.
 359   * @param inputs   If present, effect will only activate if the
 360   *                 values in the list change (using `===`).
 361   */
 362  function useEffect(callback, inputs) {
 363    y(withScope(callback), inputs);
 364  }
 365  
 366  /**
 367   * Accepts a function that contains imperative, possibly effectful code. Use
 368   * this to read layout from the DOM and synchronously re-render.
 369   *
 370   * This hook is equivalent to Preact's `useLayoutEffect` and makes the element's
 371   * scope available so functions like `getElement()` and `getContext()` can be
 372   * used inside the passed callback.
 373   *
 374   * @param callback Imperative function that can return a cleanup
 375   *                 function.
 376   * @param inputs   If present, effect will only activate if the
 377   *                 values in the list change (using `===`).
 378   */
 379  function useLayoutEffect(callback, inputs) {
 380    _(withScope(callback), inputs);
 381  }
 382  
 383  /**
 384   * Returns a memoized version of the callback that only changes if one of the
 385   * inputs has changed (using `===`).
 386   *
 387   * This hook is equivalent to Preact's `useCallback` and makes the element's
 388   * scope available so functions like `getElement()` and `getContext()` can be
 389   * used inside the passed callback.
 390   *
 391   * @param callback Callback function.
 392   * @param inputs   If present, the callback will only be updated if the
 393   *                 values in the list change (using `===`).
 394   *
 395   * @return The callback function.
 396   */
 397  function useCallback(callback, inputs) {
 398    return q(withScope(callback), inputs);
 399  }
 400  
 401  /**
 402   * Pass a factory function and an array of inputs. `useMemo` will only recompute
 403   * the memoized value when one of the inputs has changed.
 404   *
 405   * This hook is equivalent to Preact's `useMemo` and makes the element's scope
 406   * available so functions like `getElement()` and `getContext()` can be used
 407   * inside the passed factory function.
 408   *
 409   * @param factory Factory function that returns that value for memoization.
 410   * @param inputs  If present, the factory will only be run to recompute if
 411   *                the values in the list change (using `===`).
 412   *
 413   * @return The memoized value.
 414   */
 415  function useMemo(factory, inputs) {
 416    return T(withScope(factory), inputs);
 417  }
 418  
 419  /**
 420   * Creates a root fragment by replacing a node or an array of nodes in a parent element.
 421   * For wrapperless hydration.
 422   * See https://gist.github.com/developit/f4c67a2ede71dc2fab7f357f39cff28c
 423   *
 424   * @param parent      The parent element where the nodes will be replaced.
 425   * @param replaceNode The node or array of nodes to replace in the parent element.
 426   * @return The created root fragment.
 427   */
 428  const createRootFragment = (parent, replaceNode) => {
 429    replaceNode = [].concat(replaceNode);
 430    const sibling = replaceNode[replaceNode.length - 1].nextSibling;
 431    function insert(child, root) {
 432      parent.insertBefore(child, root || sibling);
 433    }
 434    return parent.__k = {
 435      nodeType: 1,
 436      parentNode: parent,
 437      firstChild: replaceNode[0],
 438      childNodes: replaceNode,
 439      insertBefore: insert,
 440      appendChild: insert,
 441      removeChild(c) {
 442        parent.removeChild(c);
 443      }
 444    };
 445  };
 446  
 447  /**
 448   * Transforms a kebab-case string to camelCase.
 449   *
 450   * @param str The kebab-case string to transform to camelCase.
 451   * @return The transformed camelCase string.
 452   */
 453  function kebabToCamelCase(str) {
 454    return str.replace(/^-+|-+$/g, '').toLowerCase().replace(/-([a-z])/g, function (_match, group1) {
 455      return group1.toUpperCase();
 456    });
 457  }
 458  const logged = new Set();
 459  
 460  /**
 461   * Shows a warning with `message` if environment is not `production`.
 462   *
 463   * Based on the `@wordpress/warning` package.
 464   *
 465   * @param message Message to show in the warning.
 466   */
 467  const warn = message => {
 468    if (true) {
 469      if (logged.has(message)) {
 470        return;
 471      }
 472  
 473      // eslint-disable-next-line no-console
 474      console.warn(message);
 475  
 476      // Throwing an error and catching it immediately to improve debugging
 477      // A consumer can use 'pause on caught exceptions'
 478      try {
 479        throw Error(message);
 480      } catch (e) {
 481        // Do nothing.
 482      }
 483      logged.add(message);
 484    }
 485  };
 486  
 487  /**
 488   * Checks if the passed `candidate` is a plain object with just the `Object`
 489   * prototype.
 490   *
 491   * @param candidate The item to check.
 492   * @return Whether `candidate` is a plain object.
 493   */
 494  const isPlainObject = candidate => Boolean(candidate && typeof candidate === 'object' && candidate.constructor === Object);
 495  
 496  ;// CONCATENATED MODULE: ./node_modules/@wordpress/interactivity/build-module/proxies/registry.js
 497  /**
 498   * Proxies for each object.
 499   */
 500  const objToProxy = new WeakMap();
 501  const proxyToObj = new WeakMap();
 502  
 503  /**
 504   * Namespaces for each created proxy.
 505   */
 506  const proxyToNs = new WeakMap();
 507  
 508  /**
 509   * Object types that can be proxied.
 510   */
 511  const supported = new Set([Object, Array]);
 512  
 513  /**
 514   * Returns a proxy to the passed object with the given handlers, assigning the
 515   * specified namespace to it. If a proxy for the passed object was created
 516   * before, that proxy is returned.
 517   *
 518   * @param namespace The namespace that will be associated to this proxy.
 519   * @param obj       The object to proxify.
 520   * @param handlers  Handlers that the proxy will use.
 521   *
 522   * @throws Error if the object cannot be proxified. Use {@link shouldProxy} to
 523   *         check if a proxy can be created for a specific object.
 524   *
 525   * @return The created proxy.
 526   */
 527  const createProxy = (namespace, obj, handlers) => {
 528    if (!shouldProxy(obj)) {
 529      throw Error('This object cannot be proxified.');
 530    }
 531    if (!objToProxy.has(obj)) {
 532      const proxy = new Proxy(obj, handlers);
 533      objToProxy.set(obj, proxy);
 534      proxyToObj.set(proxy, obj);
 535      proxyToNs.set(proxy, namespace);
 536    }
 537    return objToProxy.get(obj);
 538  };
 539  
 540  /**
 541   * Returns the proxy for the given object. If there is no associated proxy, the
 542   * function returns `undefined`.
 543   *
 544   * @param obj Object from which to know the proxy.
 545   * @return Associated proxy or `undefined`.
 546   */
 547  const getProxyFromObject = obj => objToProxy.get(obj);
 548  
 549  /**
 550   * Gets the namespace associated with the given proxy.
 551   *
 552   * Proxies have a namespace assigned upon creation. See {@link createProxy}.
 553   *
 554   * @param proxy Proxy.
 555   * @return Namespace.
 556   */
 557  const getNamespaceFromProxy = proxy => proxyToNs.get(proxy);
 558  
 559  /**
 560   * Checks if a given object can be proxied.
 561   *
 562   * @param candidate Object to know whether it can be proxied.
 563   * @return True if the passed instance can be proxied.
 564   */
 565  const shouldProxy = candidate => {
 566    if (typeof candidate !== 'object' || candidate === null) {
 567      return false;
 568    }
 569    return !proxyToNs.has(candidate) && supported.has(candidate.constructor);
 570  };
 571  
 572  /**
 573   * Returns the target object for the passed proxy. If the passed object is not a registered proxy, the
 574   * function returns `undefined`.
 575   *
 576   * @param proxy Proxy from which to know the target.
 577   * @return The target object or `undefined`.
 578   */
 579  const getObjectFromProxy = proxy => proxyToObj.get(proxy);
 580  
 581  ;// CONCATENATED MODULE: ./node_modules/@wordpress/interactivity/build-module/proxies/signals.js
 582  /**
 583   * External dependencies
 584   */
 585  
 586  
 587  /**
 588   * Internal dependencies
 589   */
 590  
 591  
 592  
 593  
 594  
 595  /**
 596   * Identifier for property computeds not associated to any scope.
 597   */
 598  const NO_SCOPE = {};
 599  
 600  /**
 601   * Structure that manages reactivity for a property in a state object. It uses
 602   * signals to keep track of property value or getter modifications.
 603   */
 604  class PropSignal {
 605    /**
 606     * Proxy that holds the property this PropSignal is associated with.
 607     */
 608  
 609    /**
 610     * Relation of computeds by scope. These computeds are read-only signals
 611     * that depend on whether the property is a value or a getter and,
 612     * therefore, can return different values depending on the scope in which
 613     * the getter is accessed.
 614     */
 615  
 616    /**
 617     * Signal with the value assigned to the related property.
 618     */
 619  
 620    /**
 621     * Signal with the getter assigned to the related property.
 622     */
 623  
 624    /**
 625     * Structure that manages reactivity for a property in a state object, using
 626     * signals to keep track of property value or getter modifications.
 627     *
 628     * @param owner Proxy that holds the property this instance is associated
 629     *              with.
 630     */
 631    constructor(owner) {
 632      this.owner = owner;
 633      this.computedsByScope = new WeakMap();
 634    }
 635  
 636    /**
 637     * Changes the internal value. If a getter was set before, it is set to
 638     * `undefined`.
 639     *
 640     * @param value New value.
 641     */
 642    setValue(value) {
 643      this.update({
 644        value
 645      });
 646    }
 647  
 648    /**
 649     * Changes the internal getter. If a value was set before, it is set to
 650     * `undefined`.
 651     *
 652     * @param getter New getter.
 653     */
 654    setGetter(getter) {
 655      this.update({
 656        get: getter
 657      });
 658    }
 659  
 660    /**
 661     * Returns the computed that holds the result of evaluating the prop in the
 662     * current scope.
 663     *
 664     * These computeds are read-only signals that depend on whether the property
 665     * is a value or a getter and, therefore, can return different values
 666     * depending on the scope in which the getter is accessed.
 667     *
 668     * @return Computed that depends on the scope.
 669     */
 670    getComputed() {
 671      const scope = getScope() || NO_SCOPE;
 672      if (!this.valueSignal && !this.getterSignal) {
 673        this.update({});
 674      }
 675      if (!this.computedsByScope.has(scope)) {
 676        const callback = () => {
 677          const getter = this.getterSignal?.value;
 678          return getter ? getter.call(this.owner) : this.valueSignal?.value;
 679        };
 680        setNamespace(getNamespaceFromProxy(this.owner));
 681        this.computedsByScope.set(scope, signals_core_module_w(withScope(callback)));
 682        resetNamespace();
 683      }
 684      return this.computedsByScope.get(scope);
 685    }
 686  
 687    /**
 688     *  Update the internal signals for the value and the getter of the
 689     *  corresponding prop.
 690     *
 691     * @param param0
 692     * @param param0.get   New getter.
 693     * @param param0.value New value.
 694     */
 695    update({
 696      get,
 697      value
 698    }) {
 699      if (!this.valueSignal) {
 700        this.valueSignal = signals_core_module_d(value);
 701        this.getterSignal = signals_core_module_d(get);
 702      } else if (value !== this.valueSignal.peek() || get !== this.getterSignal.peek()) {
 703        signals_core_module_r(() => {
 704          this.valueSignal.value = value;
 705          this.getterSignal.value = get;
 706        });
 707      }
 708    }
 709  }
 710  
 711  ;// CONCATENATED MODULE: ./node_modules/@wordpress/interactivity/build-module/proxies/state.js
 712  /**
 713   * External dependencies
 714   */
 715  
 716  
 717  /**
 718   * Internal dependencies
 719   */
 720  
 721  
 722  
 723  
 724  
 725  /**
 726   * Set of built-in symbols.
 727   */
 728  const wellKnownSymbols = new Set(Object.getOwnPropertyNames(Symbol).map(key => Symbol[key]).filter(value => typeof value === 'symbol'));
 729  
 730  /**
 731   * Relates each proxy with a map of {@link PropSignal} instances, representing
 732   * the proxy's accessed properties.
 733   */
 734  const proxyToProps = new WeakMap();
 735  
 736  /**
 737   *  Checks wether a {@link PropSignal | `PropSignal`} instance exists for the
 738   *  given property in the passed proxy.
 739   *
 740   * @param proxy Proxy of a state object or array.
 741   * @param key   The property key.
 742   * @return `true` when it exists; false otherwise.
 743   */
 744  const hasPropSignal = (proxy, key) => proxyToProps.has(proxy) && proxyToProps.get(proxy).has(key);
 745  const readOnlyProxies = new WeakSet();
 746  
 747  /**
 748   * Returns the {@link PropSignal | `PropSignal`} instance associated with the
 749   * specified prop in the passed proxy.
 750   *
 751   * The `PropSignal` instance is generated if it doesn't exist yet, using the
 752   * `initial` parameter to initialize the internal signals.
 753   *
 754   * @param proxy   Proxy of a state object or array.
 755   * @param key     The property key.
 756   * @param initial Initial data for the `PropSignal` instance.
 757   * @return The `PropSignal` instance.
 758   */
 759  const getPropSignal = (proxy, key, initial) => {
 760    if (!proxyToProps.has(proxy)) {
 761      proxyToProps.set(proxy, new Map());
 762    }
 763    key = typeof key === 'number' ? `$key}` : key;
 764    const props = proxyToProps.get(proxy);
 765    if (!props.has(key)) {
 766      const ns = getNamespaceFromProxy(proxy);
 767      const prop = new PropSignal(proxy);
 768      props.set(key, prop);
 769      if (initial) {
 770        const {
 771          get,
 772          value
 773        } = initial;
 774        if (get) {
 775          prop.setGetter(get);
 776        } else {
 777          const readOnly = readOnlyProxies.has(proxy);
 778          prop.setValue(shouldProxy(value) ? proxifyState(ns, value, {
 779            readOnly
 780          }) : value);
 781        }
 782      }
 783    }
 784    return props.get(key);
 785  };
 786  
 787  /**
 788   * Relates each proxied object (i.e., the original object) with a signal that
 789   * tracks changes in the number of properties.
 790   */
 791  const objToIterable = new WeakMap();
 792  
 793  /**
 794   * When this flag is `true`, it avoids any signal subscription, overriding state
 795   * props' "reactive" behavior.
 796   */
 797  let peeking = false;
 798  
 799  /**
 800   * Handlers for reactive objects and arrays in the state.
 801   */
 802  const stateHandlers = {
 803    get(target, key, receiver) {
 804      /*
 805       * The property should not be reactive for the following cases:
 806       * 1. While using the `peek` function to read the property.
 807       * 2. The property exists but comes from the Object or Array prototypes.
 808       * 3. The property key is a known symbol.
 809       */
 810      if (peeking || !target.hasOwnProperty(key) && key in target || typeof key === 'symbol' && wellKnownSymbols.has(key)) {
 811        return Reflect.get(target, key, receiver);
 812      }
 813  
 814      // At this point, the property should be reactive.
 815      const desc = Object.getOwnPropertyDescriptor(target, key);
 816      const prop = getPropSignal(receiver, key, desc);
 817      const result = prop.getComputed().value;
 818  
 819      /*
 820       * Check if the property is a synchronous function. If it is, set the
 821       * default namespace. Synchronous functions always run in the proper scope,
 822       * which is set by the Directives component.
 823       */
 824      if (typeof result === 'function') {
 825        const ns = getNamespaceFromProxy(receiver);
 826        return (...args) => {
 827          setNamespace(ns);
 828          try {
 829            return result.call(receiver, ...args);
 830          } finally {
 831            resetNamespace();
 832          }
 833        };
 834      }
 835      return result;
 836    },
 837    set(target, key, value, receiver) {
 838      if (readOnlyProxies.has(receiver)) {
 839        return false;
 840      }
 841      setNamespace(getNamespaceFromProxy(receiver));
 842      try {
 843        return Reflect.set(target, key, value, receiver);
 844      } finally {
 845        resetNamespace();
 846      }
 847    },
 848    defineProperty(target, key, desc) {
 849      if (readOnlyProxies.has(getProxyFromObject(target))) {
 850        return false;
 851      }
 852      const isNew = !(key in target);
 853      const result = Reflect.defineProperty(target, key, desc);
 854      if (result) {
 855        const receiver = getProxyFromObject(target);
 856        const prop = getPropSignal(receiver, key);
 857        const {
 858          get,
 859          value
 860        } = desc;
 861        if (get) {
 862          prop.setGetter(get);
 863        } else {
 864          const ns = getNamespaceFromProxy(receiver);
 865          prop.setValue(shouldProxy(value) ? proxifyState(ns, value) : value);
 866        }
 867        if (isNew && objToIterable.has(target)) {
 868          objToIterable.get(target).value++;
 869        }
 870  
 871        /*
 872         * Modify the `length` property value only if the related
 873         * `PropSignal` exists, which means that there are subscriptions to
 874         * this property.
 875         */
 876        if (Array.isArray(target) && proxyToProps.get(receiver)?.has('length')) {
 877          const length = getPropSignal(receiver, 'length');
 878          length.setValue(target.length);
 879        }
 880      }
 881      return result;
 882    },
 883    deleteProperty(target, key) {
 884      if (readOnlyProxies.has(getProxyFromObject(target))) {
 885        return false;
 886      }
 887      const result = Reflect.deleteProperty(target, key);
 888      if (result) {
 889        const prop = getPropSignal(getProxyFromObject(target), key);
 890        prop.setValue(undefined);
 891        if (objToIterable.has(target)) {
 892          objToIterable.get(target).value++;
 893        }
 894      }
 895      return result;
 896    },
 897    ownKeys(target) {
 898      if (!objToIterable.has(target)) {
 899        objToIterable.set(target, signals_core_module_d(0));
 900      }
 901      /*
 902       *This subscribes to the signal while preventing the minifier from
 903       * deleting this line in production.
 904       */
 905      objToIterable._ = objToIterable.get(target).value;
 906      return Reflect.ownKeys(target);
 907    }
 908  };
 909  
 910  /**
 911   * Returns the proxy associated with the given state object, creating it if it
 912   * does not exist.
 913   *
 914   * @param namespace        The namespace that will be associated to this proxy.
 915   * @param obj              The object to proxify.
 916   * @param options          Options.
 917   * @param options.readOnly Read-only.
 918   *
 919   * @throws Error if the object cannot be proxified. Use {@link shouldProxy} to
 920   *         check if a proxy can be created for a specific object.
 921   *
 922   * @return The associated proxy.
 923   */
 924  const proxifyState = (namespace, obj, options) => {
 925    const proxy = createProxy(namespace, obj, stateHandlers);
 926    if (options?.readOnly) {
 927      readOnlyProxies.add(proxy);
 928    }
 929    return proxy;
 930  };
 931  
 932  /**
 933   * Reads the value of the specified property without subscribing to it.
 934   *
 935   * @param obj The object to read the property from.
 936   * @param key The property key.
 937   * @return The property value.
 938   */
 939  const peek = (obj, key) => {
 940    peeking = true;
 941    try {
 942      return obj[key];
 943    } finally {
 944      peeking = false;
 945    }
 946  };
 947  
 948  /**
 949   * Internal recursive implementation for {@link deepMerge | `deepMerge`}.
 950   *
 951   * @param target   The target object.
 952   * @param source   The source object containing new values and props.
 953   * @param override Whether existing props should be overwritten or not (`true`
 954   *                 by default).
 955   */
 956  const deepMergeRecursive = (target, source, override = true) => {
 957    if (!(isPlainObject(target) && isPlainObject(source))) {
 958      return;
 959    }
 960    let hasNewKeys = false;
 961    for (const key in source) {
 962      const isNew = !(key in target);
 963      hasNewKeys = hasNewKeys || isNew;
 964      const desc = Object.getOwnPropertyDescriptor(source, key);
 965      const proxy = getProxyFromObject(target);
 966      const propSignal = !!proxy && hasPropSignal(proxy, key) && getPropSignal(proxy, key);
 967      if (typeof desc.get === 'function' || typeof desc.set === 'function') {
 968        if (override || isNew) {
 969          Object.defineProperty(target, key, {
 970            ...desc,
 971            configurable: true,
 972            enumerable: true
 973          });
 974          if (desc.get && propSignal) {
 975            propSignal.setGetter(desc.get);
 976          }
 977        }
 978      } else if (isPlainObject(source[key])) {
 979        if (isNew || override && !isPlainObject(target[key])) {
 980          target[key] = {};
 981          if (propSignal) {
 982            const ns = getNamespaceFromProxy(proxy);
 983            propSignal.setValue(proxifyState(ns, target[key]));
 984          }
 985        }
 986        if (isPlainObject(target[key])) {
 987          deepMergeRecursive(target[key], source[key], override);
 988        }
 989      } else if (override || isNew) {
 990        Object.defineProperty(target, key, desc);
 991        if (propSignal) {
 992          const {
 993            value
 994          } = desc;
 995          const ns = getNamespaceFromProxy(proxy);
 996          propSignal.setValue(shouldProxy(value) ? proxifyState(ns, value) : value);
 997        }
 998      }
 999    }
1000    if (hasNewKeys && objToIterable.has(target)) {
1001      objToIterable.get(target).value++;
1002    }
1003  };
1004  
1005  /**
1006   * Recursively update prop values inside the passed `target` and nested plain
1007   * objects, using the values present in `source`. References to plain objects
1008   * are kept, only updating props containing primitives or arrays. Arrays are
1009   * replaced instead of merged or concatenated.
1010   *
1011   * If the `override` parameter is set to `false`, then all values in `target`
1012   * are preserved, and only new properties from `source` are added.
1013   *
1014   * @param target   The target object.
1015   * @param source   The source object containing new values and props.
1016   * @param override Whether existing props should be overwritten or not (`true`
1017   *                 by default).
1018   */
1019  const deepMerge = (target, source, override = true) => signals_core_module_r(() => deepMergeRecursive(getObjectFromProxy(target) || target, source, override));
1020  
1021  ;// CONCATENATED MODULE: ./node_modules/@wordpress/interactivity/build-module/proxies/store.js
1022  /**
1023   * Internal dependencies
1024   */
1025  
1026  /**
1027   * External dependencies
1028   */
1029  
1030  
1031  
1032  /**
1033   * Identifies the store proxies handling the root objects of each store.
1034   */
1035  const storeRoots = new WeakSet();
1036  
1037  /**
1038   * Handlers for store proxies.
1039   */
1040  const storeHandlers = {
1041    get: (target, key, receiver) => {
1042      const result = Reflect.get(target, key);
1043      const ns = getNamespaceFromProxy(receiver);
1044  
1045      /*
1046       * Check if the proxy is the store root and no key with that name exist. In
1047       * that case, return an empty object for the requested key.
1048       */
1049      if (typeof result === 'undefined' && storeRoots.has(receiver)) {
1050        const obj = {};
1051        Reflect.set(target, key, obj);
1052        return proxifyStore(ns, obj, false);
1053      }
1054  
1055      /*
1056       * Check if the property is a function. If it is, add the store
1057       * namespace to the stack and wrap the function with the current scope.
1058       * The `withScope` util handles both synchronous functions and generator
1059       * functions.
1060       */
1061      if (typeof result === 'function') {
1062        setNamespace(ns);
1063        const scoped = withScope(result);
1064        resetNamespace();
1065        return scoped;
1066      }
1067  
1068      // Check if the property is an object. If it is, proxyify it.
1069      if (isPlainObject(result) && shouldProxy(result)) {
1070        return proxifyStore(ns, result, false);
1071      }
1072      return result;
1073    }
1074  };
1075  
1076  /**
1077   * Returns the proxy associated with the given store object, creating it if it
1078   * does not exist.
1079   *
1080   * @param namespace The namespace that will be associated to this proxy.
1081   * @param obj       The object to proxify.
1082   *
1083   * @param isRoot    Whether the passed object is the store root object.
1084   * @throws Error if the object cannot be proxified. Use {@link shouldProxy} to
1085   *         check if a proxy can be created for a specific object.
1086   *
1087   * @return The associated proxy.
1088   */
1089  const proxifyStore = (namespace, obj, isRoot = true) => {
1090    const proxy = createProxy(namespace, obj, storeHandlers);
1091    if (proxy && isRoot) {
1092      storeRoots.add(proxy);
1093    }
1094    return proxy;
1095  };
1096  
1097  ;// CONCATENATED MODULE: ./node_modules/@wordpress/interactivity/build-module/proxies/context.js
1098  const contextObjectToProxy = new WeakMap();
1099  const contextObjectToFallback = new WeakMap();
1100  const contextProxies = new WeakSet();
1101  const descriptor = Reflect.getOwnPropertyDescriptor;
1102  
1103  // TODO: Use the proxy registry to avoid multiple proxies on the same object.
1104  const contextHandlers = {
1105    get: (target, key) => {
1106      const fallback = contextObjectToFallback.get(target);
1107      // Always subscribe to prop changes in the current context.
1108      const currentProp = target[key];
1109  
1110      /*
1111       * Return the value from `target` if it exists, or from `fallback`
1112       * otherwise. This way, in the case the property doesn't exist either in
1113       * `target` or `fallback`, it also subscribes to changes in the parent
1114       * context.
1115       */
1116      return key in target ? currentProp : fallback[key];
1117    },
1118    set: (target, key, value) => {
1119      const fallback = contextObjectToFallback.get(target);
1120  
1121      // If the property exists in the current context, modify it. Otherwise,
1122      // add it to the current context.
1123      const obj = key in target || !(key in fallback) ? target : fallback;
1124      obj[key] = value;
1125      return true;
1126    },
1127    ownKeys: target => [...new Set([...Object.keys(contextObjectToFallback.get(target)), ...Object.keys(target)])],
1128    getOwnPropertyDescriptor: (target, key) => descriptor(target, key) || descriptor(contextObjectToFallback.get(target), key)
1129  };
1130  
1131  /**
1132   * Wrap a context object with a proxy to reproduce the context stack. The proxy
1133   * uses the passed `inherited` context as a fallback to look up for properties
1134   * that don't exist in the given context. Also, updated properties are modified
1135   * where they are defined, or added to the main context when they don't exist.
1136   *
1137   * @param current   Current context.
1138   * @param inherited Inherited context, used as fallback.
1139   *
1140   * @return The wrapped context object.
1141   */
1142  const proxifyContext = (current, inherited = {}) => {
1143    if (contextProxies.has(current)) {
1144      throw Error('This object cannot be proxified.');
1145    }
1146    // Update the fallback object reference when it changes.
1147    contextObjectToFallback.set(current, inherited);
1148    if (!contextObjectToProxy.has(current)) {
1149      const proxy = new Proxy(current, contextHandlers);
1150      contextObjectToProxy.set(current, proxy);
1151      contextProxies.add(proxy);
1152    }
1153    return contextObjectToProxy.get(current);
1154  };
1155  
1156  ;// CONCATENATED MODULE: ./node_modules/@wordpress/interactivity/build-module/proxies/index.js
1157  /**
1158   * Internal dependencies
1159   */
1160  
1161  
1162  
1163  
1164  ;// CONCATENATED MODULE: ./node_modules/@wordpress/interactivity/build-module/store.js
1165  /**
1166   * Internal dependencies
1167   */
1168  
1169  /**
1170   * External dependencies
1171   */
1172  
1173  
1174  const stores = new Map();
1175  const rawStores = new Map();
1176  const storeLocks = new Map();
1177  const storeConfigs = new Map();
1178  const serverStates = new Map();
1179  
1180  /**
1181   * Get the defined config for the store with the passed namespace.
1182   *
1183   * @param namespace Store's namespace from which to retrieve the config.
1184   * @return Defined config for the given namespace.
1185   */
1186  const getConfig = namespace => storeConfigs.get(namespace || getNamespace()) || {};
1187  
1188  /**
1189   * Get the part of the state defined and updated from the server.
1190   *
1191   * The object returned is read-only, and includes the state defined in PHP with
1192   * `wp_interactivity_state()`. When using `actions.navigate()`, this object is
1193   * updated to reflect the changes in its properites, without affecting the state
1194   * returned by `store()`. Directives can subscribe to those changes to update
1195   * the state if needed.
1196   *
1197   * @example
1198   * ```js
1199   *  const { state } = store('myStore', {
1200   *    callbacks: {
1201   *      updateServerState() {
1202   *        const serverState = getServerState();
1203   *        // Override some property with the new value that came from the server.
1204   *        state.overridableProp = serverState.overridableProp;
1205   *      },
1206   *    },
1207   *  });
1208   * ```
1209   *
1210   * @param namespace Store's namespace from which to retrieve the server state.
1211   * @return The server state for the given namespace.
1212   */
1213  const getServerState = namespace => {
1214    const ns = namespace || getNamespace();
1215    if (!serverStates.has(ns)) {
1216      serverStates.set(ns, proxifyState(ns, {}, {
1217        readOnly: true
1218      }));
1219    }
1220    return serverStates.get(ns);
1221  };
1222  const universalUnlock = 'I acknowledge that using a private store means my plugin will inevitably break on the next store release.';
1223  
1224  /**
1225   * Extends the Interactivity API global store adding the passed properties to
1226   * the given namespace. It also returns stable references to the namespace
1227   * content.
1228   *
1229   * These props typically consist of `state`, which is the reactive part of the
1230   * store ― which means that any directive referencing a state property will be
1231   * re-rendered anytime it changes ― and function properties like `actions` and
1232   * `callbacks`, mostly used for event handlers. These props can then be
1233   * referenced by any directive to make the HTML interactive.
1234   *
1235   * @example
1236   * ```js
1237   *  const { state } = store( 'counter', {
1238   *    state: {
1239   *      value: 0,
1240   *      get double() { return state.value * 2; },
1241   *    },
1242   *    actions: {
1243   *      increment() {
1244   *        state.value += 1;
1245   *      },
1246   *    },
1247   *  } );
1248   * ```
1249   *
1250   * The code from the example above allows blocks to subscribe and interact with
1251   * the store by using directives in the HTML, e.g.:
1252   *
1253   * ```html
1254   * <div data-wp-interactive="counter">
1255   *   <button
1256   *     data-wp-text="state.double"
1257   *     data-wp-on--click="actions.increment"
1258   *   >
1259   *     0
1260   *   </button>
1261   * </div>
1262   * ```
1263   * @param namespace The store namespace to interact with.
1264   * @param storePart Properties to add to the store namespace.
1265   * @param options   Options for the given namespace.
1266   *
1267   * @return A reference to the namespace content.
1268   */
1269  
1270  function store(namespace, {
1271    state = {},
1272    ...block
1273  } = {}, {
1274    lock = false
1275  } = {}) {
1276    if (!stores.has(namespace)) {
1277      // Lock the store if the passed lock is different from the universal
1278      // unlock. Once the lock is set (either false, true, or a given string),
1279      // it cannot change.
1280      if (lock !== universalUnlock) {
1281        storeLocks.set(namespace, lock);
1282      }
1283      const rawStore = {
1284        state: proxifyState(namespace, isPlainObject(state) ? state : {}),
1285        ...block
1286      };
1287      const proxifiedStore = proxifyStore(namespace, rawStore);
1288      rawStores.set(namespace, rawStore);
1289      stores.set(namespace, proxifiedStore);
1290    } else {
1291      // Lock the store if it wasn't locked yet and the passed lock is
1292      // different from the universal unlock. If no lock is given, the store
1293      // will be public and won't accept any lock from now on.
1294      if (lock !== universalUnlock && !storeLocks.has(namespace)) {
1295        storeLocks.set(namespace, lock);
1296      } else {
1297        const storeLock = storeLocks.get(namespace);
1298        const isLockValid = lock === universalUnlock || lock !== true && lock === storeLock;
1299        if (!isLockValid) {
1300          if (!storeLock) {
1301            throw Error('Cannot lock a public store');
1302          } else {
1303            throw Error('Cannot unlock a private store with an invalid lock code');
1304          }
1305        }
1306      }
1307      const target = rawStores.get(namespace);
1308      deepMerge(target, block);
1309      deepMerge(target.state, state);
1310    }
1311    return stores.get(namespace);
1312  }
1313  const parseServerData = (dom = document) => {
1314    var _dom$getElementById;
1315    const jsonDataScriptTag = // Preferred Script Module data passing form
1316    (_dom$getElementById = dom.getElementById('wp-script-module-data-@wordpress/interactivity')) !== null && _dom$getElementById !== void 0 ? _dom$getElementById :
1317    // Legacy form
1318    dom.getElementById('wp-interactivity-data');
1319    if (jsonDataScriptTag?.textContent) {
1320      try {
1321        return JSON.parse(jsonDataScriptTag.textContent);
1322      } catch {}
1323    }
1324    return {};
1325  };
1326  const populateServerData = data => {
1327    if (isPlainObject(data?.state)) {
1328      Object.entries(data.state).forEach(([namespace, state]) => {
1329        const st = store(namespace, {}, {
1330          lock: universalUnlock
1331        });
1332        deepMerge(st.state, state, false);
1333        deepMerge(getServerState(namespace), state);
1334      });
1335    }
1336    if (isPlainObject(data?.config)) {
1337      Object.entries(data.config).forEach(([namespace, config]) => {
1338        storeConfigs.set(namespace, config);
1339      });
1340    }
1341  };
1342  
1343  // Parse and populate the initial state and config.
1344  const data = parseServerData();
1345  populateServerData(data);
1346  
1347  ;// CONCATENATED MODULE: ./node_modules/@wordpress/interactivity/build-module/hooks.js
1348  // eslint-disable-next-line eslint-comments/disable-enable-pair
1349  /* eslint-disable react-hooks/exhaustive-deps */
1350  
1351  /**
1352   * External dependencies
1353   */
1354  
1355  
1356  /**
1357   * Internal dependencies
1358   */
1359  
1360  
1361  
1362  function isNonDefaultDirectiveSuffix(entry) {
1363    return entry.suffix !== null;
1364  }
1365  function isDefaultDirectiveSuffix(entry) {
1366    return entry.suffix === null;
1367  }
1368  // Main context.
1369  const context = (0,preact_module/* createContext */.q6)({
1370    client: {},
1371    server: {}
1372  });
1373  
1374  // WordPress Directives.
1375  const directiveCallbacks = {};
1376  const directivePriorities = {};
1377  
1378  /**
1379   * Register a new directive type in the Interactivity API runtime.
1380   *
1381   * @example
1382   * ```js
1383   * directive(
1384   *   'alert', // Name without the `data-wp-` prefix.
1385   *   ( { directives: { alert }, element, evaluate } ) => {
1386   *     const defaultEntry = alert.find( isDefaultDirectiveSuffix );
1387   *     element.props.onclick = () => { alert( evaluate( defaultEntry ) ); }
1388   *   }
1389   * )
1390   * ```
1391   *
1392   * The previous code registers a custom directive type for displaying an alert
1393   * message whenever an element using it is clicked. The message text is obtained
1394   * from the store under the inherited namespace, using `evaluate`.
1395   *
1396   * When the HTML is processed by the Interactivity API, any element containing
1397   * the `data-wp-alert` directive will have the `onclick` event handler, e.g.,
1398   *
1399   * ```html
1400   * <div data-wp-interactive="messages">
1401   *   <button data-wp-alert="state.alert">Click me!</button>
1402   * </div>
1403   * ```
1404   * Note that, in the previous example, the directive callback gets the path
1405   * value (`state.alert`) from the directive entry with suffix `null`. A
1406   * custom suffix can also be specified by appending `--` to the directive
1407   * attribute, followed by the suffix, like in the following HTML snippet:
1408   *
1409   * ```html
1410   * <div data-wp-interactive="myblock">
1411   *   <button
1412   *     data-wp-color--text="state.text"
1413   *     data-wp-color--background="state.background"
1414   *   >Click me!</button>
1415   * </div>
1416   * ```
1417   *
1418   * This could be an hypothetical implementation of the custom directive used in
1419   * the snippet above.
1420   *
1421   * @example
1422   * ```js
1423   * directive(
1424   *   'color', // Name without prefix and suffix.
1425   *   ( { directives: { color: colors }, ref, evaluate } ) =>
1426   *     colors.forEach( ( color ) => {
1427   *       if ( color.suffix = 'text' ) {
1428   *         ref.style.setProperty(
1429   *           'color',
1430   *           evaluate( color.text )
1431   *         );
1432   *       }
1433   *       if ( color.suffix = 'background' ) {
1434   *         ref.style.setProperty(
1435   *           'background-color',
1436   *           evaluate( color.background )
1437   *         );
1438   *       }
1439   *     } );
1440   *   }
1441   * )
1442   * ```
1443   *
1444   * @param name             Directive name, without the `data-wp-` prefix.
1445   * @param callback         Function that runs the directive logic.
1446   * @param options          Options object.
1447   * @param options.priority Option to control the directive execution order. The
1448   *                         lesser, the highest priority. Default is `10`.
1449   */
1450  const directive = (name, callback, {
1451    priority = 10
1452  } = {}) => {
1453    directiveCallbacks[name] = callback;
1454    directivePriorities[name] = priority;
1455  };
1456  
1457  // Resolve the path to some property of the store object.
1458  const resolve = (path, namespace) => {
1459    if (!namespace) {
1460      warn(`Namespace missing for "$path}". The value for that path won't be resolved.`);
1461      return;
1462    }
1463    let resolvedStore = stores.get(namespace);
1464    if (typeof resolvedStore === 'undefined') {
1465      resolvedStore = store(namespace, undefined, {
1466        lock: universalUnlock
1467      });
1468    }
1469    const current = {
1470      ...resolvedStore,
1471      context: getScope().context[namespace]
1472    };
1473    try {
1474      // TODO: Support lazy/dynamically initialized stores
1475      return path.split('.').reduce((acc, key) => acc[key], current);
1476    } catch (e) {}
1477  };
1478  
1479  // Generate the evaluate function.
1480  const getEvaluate = ({
1481    scope
1482  }) => (entry, ...args) => {
1483    let {
1484      value: path,
1485      namespace
1486    } = entry;
1487    if (typeof path !== 'string') {
1488      throw new Error('The `value` prop should be a string path');
1489    }
1490    // If path starts with !, remove it and save a flag.
1491    const hasNegationOperator = path[0] === '!' && !!(path = path.slice(1));
1492    setScope(scope);
1493    const value = resolve(path, namespace);
1494    const result = typeof value === 'function' ? value(...args) : value;
1495    resetScope();
1496    return hasNegationOperator ? !result : result;
1497  };
1498  
1499  // Separate directives by priority. The resulting array contains objects
1500  // of directives grouped by same priority, and sorted in ascending order.
1501  const getPriorityLevels = directives => {
1502    const byPriority = Object.keys(directives).reduce((obj, name) => {
1503      if (directiveCallbacks[name]) {
1504        const priority = directivePriorities[name];
1505        (obj[priority] = obj[priority] || []).push(name);
1506      }
1507      return obj;
1508    }, {});
1509    return Object.entries(byPriority).sort(([p1], [p2]) => parseInt(p1) - parseInt(p2)).map(([, arr]) => arr);
1510  };
1511  
1512  // Component that wraps each priority level of directives of an element.
1513  const Directives = ({
1514    directives,
1515    priorityLevels: [currentPriorityLevel, ...nextPriorityLevels],
1516    element,
1517    originalProps,
1518    previousScope
1519  }) => {
1520    // Initialize the scope of this element. These scopes are different per each
1521    // level because each level has a different context, but they share the same
1522    // element ref, state and props.
1523    const scope = A({}).current;
1524    scope.evaluate = q(getEvaluate({
1525      scope
1526    }), []);
1527    const {
1528      client,
1529      server
1530    } = x(context);
1531    scope.context = client;
1532    scope.serverContext = server;
1533    /* eslint-disable react-hooks/rules-of-hooks */
1534    scope.ref = previousScope?.ref || A(null);
1535    /* eslint-enable react-hooks/rules-of-hooks */
1536  
1537    // Create a fresh copy of the vnode element and add the props to the scope,
1538    // named as attributes (HTML Attributes).
1539    element = (0,preact_module/* cloneElement */.Ob)(element, {
1540      ref: scope.ref
1541    });
1542    scope.attributes = element.props;
1543  
1544    // Recursively render the wrapper for the next priority level.
1545    const children = nextPriorityLevels.length > 0 ? (0,preact_module.h)(Directives, {
1546      directives,
1547      priorityLevels: nextPriorityLevels,
1548      element,
1549      originalProps,
1550      previousScope: scope
1551    }) : element;
1552    const props = {
1553      ...originalProps,
1554      children
1555    };
1556    const directiveArgs = {
1557      directives,
1558      props,
1559      element,
1560      context,
1561      evaluate: scope.evaluate
1562    };
1563    setScope(scope);
1564    for (const directiveName of currentPriorityLevel) {
1565      const wrapper = directiveCallbacks[directiveName]?.(directiveArgs);
1566      if (wrapper !== undefined) {
1567        props.children = wrapper;
1568      }
1569    }
1570    resetScope();
1571    return props.children;
1572  };
1573  
1574  // Preact Options Hook called each time a vnode is created.
1575  const old = preact_module/* options */.fF.vnode;
1576  preact_module/* options */.fF.vnode = vnode => {
1577    if (vnode.props.__directives) {
1578      const props = vnode.props;
1579      const directives = props.__directives;
1580      if (directives.key) {
1581        vnode.key = directives.key.find(isDefaultDirectiveSuffix).value;
1582      }
1583      delete props.__directives;
1584      const priorityLevels = getPriorityLevels(directives);
1585      if (priorityLevels.length > 0) {
1586        vnode.props = {
1587          directives,
1588          priorityLevels,
1589          originalProps: props,
1590          type: vnode.type,
1591          element: (0,preact_module.h)(vnode.type, props),
1592          top: true
1593        };
1594        vnode.type = Directives;
1595      }
1596    }
1597    if (old) {
1598      old(vnode);
1599    }
1600  };
1601  
1602  ;// CONCATENATED MODULE: ./node_modules/@wordpress/interactivity/build-module/directives.js
1603  // eslint-disable-next-line eslint-comments/disable-enable-pair
1604  /* eslint-disable react-hooks/exhaustive-deps */
1605  
1606  /**
1607   * External dependencies
1608   */
1609  
1610  
1611  
1612  /**
1613   * Internal dependencies
1614   */
1615  
1616  
1617  
1618  
1619  
1620  /**
1621   * Recursively clone the passed object.
1622   *
1623   * @param source Source object.
1624   * @return Cloned object.
1625   */
1626  function deepClone(source) {
1627    if (isPlainObject(source)) {
1628      return Object.fromEntries(Object.entries(source).map(([key, value]) => [key, deepClone(value)]));
1629    }
1630    if (Array.isArray(source)) {
1631      return source.map(i => deepClone(i));
1632    }
1633    return source;
1634  }
1635  const newRule = /(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g;
1636  const ruleClean = /\/\*[^]*?\*\/|  +/g;
1637  const ruleNewline = /\n+/g;
1638  const empty = ' ';
1639  
1640  /**
1641   * Convert a css style string into a object.
1642   *
1643   * Made by Cristian Bote (@cristianbote) for Goober.
1644   * https://unpkg.com/browse/goober@2.1.13/src/core/astish.js
1645   *
1646   * @param val CSS string.
1647   * @return CSS object.
1648   */
1649  const cssStringToObject = val => {
1650    const tree = [{}];
1651    let block, left;
1652    while (block = newRule.exec(val.replace(ruleClean, ''))) {
1653      if (block[4]) {
1654        tree.shift();
1655      } else if (block[3]) {
1656        left = block[3].replace(ruleNewline, empty).trim();
1657        tree.unshift(tree[0][left] = tree[0][left] || {});
1658      } else {
1659        tree[0][block[1]] = block[2].replace(ruleNewline, empty).trim();
1660      }
1661    }
1662    return tree[0];
1663  };
1664  
1665  /**
1666   * Creates a directive that adds an event listener to the global window or
1667   * document object.
1668   *
1669   * @param type 'window' or 'document'
1670   */
1671  const getGlobalEventDirective = type => {
1672    return ({
1673      directives,
1674      evaluate
1675    }) => {
1676      directives[`on-$type}`].filter(isNonDefaultDirectiveSuffix).forEach(entry => {
1677        const eventName = entry.suffix.split('--', 1)[0];
1678        useInit(() => {
1679          const cb = event => evaluate(entry, event);
1680          const globalVar = type === 'window' ? window : document;
1681          globalVar.addEventListener(eventName, cb);
1682          return () => globalVar.removeEventListener(eventName, cb);
1683        });
1684      });
1685    };
1686  };
1687  
1688  /**
1689   * Creates a directive that adds an async event listener to the global window or
1690   * document object.
1691   *
1692   * @param type 'window' or 'document'
1693   */
1694  const getGlobalAsyncEventDirective = type => {
1695    return ({
1696      directives,
1697      evaluate
1698    }) => {
1699      directives[`on-async-$type}`].filter(isNonDefaultDirectiveSuffix).forEach(entry => {
1700        const eventName = entry.suffix.split('--', 1)[0];
1701        useInit(() => {
1702          const cb = async event => {
1703            await splitTask();
1704            evaluate(entry, event);
1705          };
1706          const globalVar = type === 'window' ? window : document;
1707          globalVar.addEventListener(eventName, cb, {
1708            passive: true
1709          });
1710          return () => globalVar.removeEventListener(eventName, cb);
1711        });
1712      });
1713    };
1714  };
1715  /* harmony default export */ const directives = (() => {
1716    // data-wp-context
1717    directive('context', ({
1718      directives: {
1719        context
1720      },
1721      props: {
1722        children
1723      },
1724      context: inheritedContext
1725    }) => {
1726      const {
1727        Provider
1728      } = inheritedContext;
1729      const defaultEntry = context.find(isDefaultDirectiveSuffix);
1730      const {
1731        client: inheritedClient,
1732        server: inheritedServer
1733      } = x(inheritedContext);
1734      const ns = defaultEntry.namespace;
1735      const client = A(proxifyState(ns, {}));
1736      const server = A(proxifyState(ns, {}, {
1737        readOnly: true
1738      }));
1739  
1740      // No change should be made if `defaultEntry` does not exist.
1741      const contextStack = T(() => {
1742        const result = {
1743          client: {
1744            ...inheritedClient
1745          },
1746          server: {
1747            ...inheritedServer
1748          }
1749        };
1750        if (defaultEntry) {
1751          const {
1752            namespace,
1753            value
1754          } = defaultEntry;
1755          // Check that the value is a JSON object. Send a console warning if not.
1756          if (!isPlainObject(value)) {
1757            warn(`The value of data-wp-context in "$namespace}" store must be a valid stringified JSON object.`);
1758          }
1759          deepMerge(client.current, deepClone(value), false);
1760          deepMerge(server.current, deepClone(value));
1761          result.client[namespace] = proxifyContext(client.current, inheritedClient[namespace]);
1762          result.server[namespace] = proxifyContext(server.current, inheritedServer[namespace]);
1763        }
1764        return result;
1765      }, [defaultEntry, inheritedClient, inheritedServer]);
1766      return (0,preact_module.h)(Provider, {
1767        value: contextStack
1768      }, children);
1769    }, {
1770      priority: 5
1771    });
1772  
1773    // data-wp-watch--[name]
1774    directive('watch', ({
1775      directives: {
1776        watch
1777      },
1778      evaluate
1779    }) => {
1780      watch.forEach(entry => {
1781        useWatch(() => {
1782          let start;
1783          if (false) {}
1784          const result = evaluate(entry);
1785          if (false) {}
1786          return result;
1787        });
1788      });
1789    });
1790  
1791    // data-wp-init--[name]
1792    directive('init', ({
1793      directives: {
1794        init
1795      },
1796      evaluate
1797    }) => {
1798      init.forEach(entry => {
1799        // TODO: Replace with useEffect to prevent unneeded scopes.
1800        useInit(() => {
1801          let start;
1802          if (false) {}
1803          const result = evaluate(entry);
1804          if (false) {}
1805          return result;
1806        });
1807      });
1808    });
1809  
1810    // data-wp-on--[event]
1811    directive('on', ({
1812      directives: {
1813        on
1814      },
1815      element,
1816      evaluate
1817    }) => {
1818      const events = new Map();
1819      on.filter(isNonDefaultDirectiveSuffix).forEach(entry => {
1820        const event = entry.suffix.split('--')[0];
1821        if (!events.has(event)) {
1822          events.set(event, new Set());
1823        }
1824        events.get(event).add(entry);
1825      });
1826      events.forEach((entries, eventType) => {
1827        const existingHandler = element.props[`on$eventType}`];
1828        element.props[`on$eventType}`] = event => {
1829          entries.forEach(entry => {
1830            if (existingHandler) {
1831              existingHandler(event);
1832            }
1833            let start;
1834            if (false) {}
1835            evaluate(entry, event);
1836            if (false) {}
1837          });
1838        };
1839      });
1840    });
1841  
1842    // data-wp-on-async--[event]
1843    directive('on-async', ({
1844      directives: {
1845        'on-async': onAsync
1846      },
1847      element,
1848      evaluate
1849    }) => {
1850      const events = new Map();
1851      onAsync.filter(isNonDefaultDirectiveSuffix).forEach(entry => {
1852        const event = entry.suffix.split('--')[0];
1853        if (!events.has(event)) {
1854          events.set(event, new Set());
1855        }
1856        events.get(event).add(entry);
1857      });
1858      events.forEach((entries, eventType) => {
1859        const existingHandler = element.props[`on$eventType}`];
1860        element.props[`on$eventType}`] = event => {
1861          if (existingHandler) {
1862            existingHandler(event);
1863          }
1864          entries.forEach(async entry => {
1865            await splitTask();
1866            evaluate(entry, event);
1867          });
1868        };
1869      });
1870    });
1871  
1872    // data-wp-on-window--[event]
1873    directive('on-window', getGlobalEventDirective('window'));
1874    // data-wp-on-document--[event]
1875    directive('on-document', getGlobalEventDirective('document'));
1876  
1877    // data-wp-on-async-window--[event]
1878    directive('on-async-window', getGlobalAsyncEventDirective('window'));
1879    // data-wp-on-async-document--[event]
1880    directive('on-async-document', getGlobalAsyncEventDirective('document'));
1881  
1882    // data-wp-class--[classname]
1883    directive('class', ({
1884      directives: {
1885        class: classNames
1886      },
1887      element,
1888      evaluate
1889    }) => {
1890      classNames.filter(isNonDefaultDirectiveSuffix).forEach(entry => {
1891        const className = entry.suffix;
1892        const result = evaluate(entry);
1893        const currentClass = element.props.class || '';
1894        const classFinder = new RegExp(`(^|\\s)$className}(\\s|$)`, 'g');
1895        if (!result) {
1896          element.props.class = currentClass.replace(classFinder, ' ').trim();
1897        } else if (!classFinder.test(currentClass)) {
1898          element.props.class = currentClass ? `$currentClass} $className}` : className;
1899        }
1900        useInit(() => {
1901          /*
1902           * This seems necessary because Preact doesn't change the class
1903           * names on the hydration, so we have to do it manually. It doesn't
1904           * need deps because it only needs to do it the first time.
1905           */
1906          if (!result) {
1907            element.ref.current.classList.remove(className);
1908          } else {
1909            element.ref.current.classList.add(className);
1910          }
1911        });
1912      });
1913    });
1914  
1915    // data-wp-style--[style-prop]
1916    directive('style', ({
1917      directives: {
1918        style
1919      },
1920      element,
1921      evaluate
1922    }) => {
1923      style.filter(isNonDefaultDirectiveSuffix).forEach(entry => {
1924        const styleProp = entry.suffix;
1925        const result = evaluate(entry);
1926        element.props.style = element.props.style || {};
1927        if (typeof element.props.style === 'string') {
1928          element.props.style = cssStringToObject(element.props.style);
1929        }
1930        if (!result) {
1931          delete element.props.style[styleProp];
1932        } else {
1933          element.props.style[styleProp] = result;
1934        }
1935        useInit(() => {
1936          /*
1937           * This seems necessary because Preact doesn't change the styles on
1938           * the hydration, so we have to do it manually. It doesn't need deps
1939           * because it only needs to do it the first time.
1940           */
1941          if (!result) {
1942            element.ref.current.style.removeProperty(styleProp);
1943          } else {
1944            element.ref.current.style[styleProp] = result;
1945          }
1946        });
1947      });
1948    });
1949  
1950    // data-wp-bind--[attribute]
1951    directive('bind', ({
1952      directives: {
1953        bind
1954      },
1955      element,
1956      evaluate
1957    }) => {
1958      bind.filter(isNonDefaultDirectiveSuffix).forEach(entry => {
1959        const attribute = entry.suffix;
1960        const result = evaluate(entry);
1961        element.props[attribute] = result;
1962  
1963        /*
1964         * This is necessary because Preact doesn't change the attributes on the
1965         * hydration, so we have to do it manually. It only needs to do it the
1966         * first time. After that, Preact will handle the changes.
1967         */
1968        useInit(() => {
1969          const el = element.ref.current;
1970  
1971          /*
1972           * We set the value directly to the corresponding HTMLElement instance
1973           * property excluding the following special cases. We follow Preact's
1974           * logic: https://github.com/preactjs/preact/blob/ea49f7a0f9d1ff2c98c0bdd66aa0cbc583055246/src/diff/props.js#L110-L129
1975           */
1976          if (attribute === 'style') {
1977            if (typeof result === 'string') {
1978              el.style.cssText = result;
1979            }
1980            return;
1981          } else if (attribute !== 'width' && attribute !== 'height' && attribute !== 'href' && attribute !== 'list' && attribute !== 'form' &&
1982          /*
1983           * The value for `tabindex` follows the parsing rules for an
1984           * integer. If that fails, or if the attribute isn't present, then
1985           * the browsers should "follow platform conventions to determine if
1986           * the element should be considered as a focusable area",
1987           * practically meaning that most elements get a default of `-1` (not
1988           * focusable), but several also get a default of `0` (focusable in
1989           * order after all elements with a positive `tabindex` value).
1990           *
1991           * @see https://html.spec.whatwg.org/#tabindex-value
1992           */
1993          attribute !== 'tabIndex' && attribute !== 'download' && attribute !== 'rowSpan' && attribute !== 'colSpan' && attribute !== 'role' && attribute in el) {
1994            try {
1995              el[attribute] = result === null || result === undefined ? '' : result;
1996              return;
1997            } catch (err) {}
1998          }
1999          /*
2000           * aria- and data- attributes have no boolean representation.
2001           * A `false` value is different from the attribute not being
2002           * present, so we can't remove it.
2003           * We follow Preact's logic: https://github.com/preactjs/preact/blob/ea49f7a0f9d1ff2c98c0bdd66aa0cbc583055246/src/diff/props.js#L131C24-L136
2004           */
2005          if (result !== null && result !== undefined && (result !== false || attribute[4] === '-')) {
2006            el.setAttribute(attribute, result);
2007          } else {
2008            el.removeAttribute(attribute);
2009          }
2010        });
2011      });
2012    });
2013  
2014    // data-wp-ignore
2015    directive('ignore', ({
2016      element: {
2017        type: Type,
2018        props: {
2019          innerHTML,
2020          ...rest
2021        }
2022      }
2023    }) => {
2024      // Preserve the initial inner HTML.
2025      const cached = T(() => innerHTML, []);
2026      return (0,preact_module.h)(Type, {
2027        dangerouslySetInnerHTML: {
2028          __html: cached
2029        },
2030        ...rest
2031      });
2032    });
2033  
2034    // data-wp-text
2035    directive('text', ({
2036      directives: {
2037        text
2038      },
2039      element,
2040      evaluate
2041    }) => {
2042      const entry = text.find(isDefaultDirectiveSuffix);
2043      if (!entry) {
2044        element.props.children = null;
2045        return;
2046      }
2047      try {
2048        const result = evaluate(entry);
2049        element.props.children = typeof result === 'object' ? null : result.toString();
2050      } catch (e) {
2051        element.props.children = null;
2052      }
2053    });
2054  
2055    // data-wp-run
2056    directive('run', ({
2057      directives: {
2058        run
2059      },
2060      evaluate
2061    }) => {
2062      run.forEach(entry => evaluate(entry));
2063    });
2064  
2065    // data-wp-each--[item]
2066    directive('each', ({
2067      directives: {
2068        each,
2069        'each-key': eachKey
2070      },
2071      context: inheritedContext,
2072      element,
2073      evaluate
2074    }) => {
2075      if (element.type !== 'template') {
2076        return;
2077      }
2078      const {
2079        Provider
2080      } = inheritedContext;
2081      const inheritedValue = x(inheritedContext);
2082      const [entry] = each;
2083      const {
2084        namespace
2085      } = entry;
2086      const list = evaluate(entry);
2087      const itemProp = isNonDefaultDirectiveSuffix(entry) ? kebabToCamelCase(entry.suffix) : 'item';
2088      return list.map(item => {
2089        const itemContext = proxifyContext(proxifyState(namespace, {}), inheritedValue.client[namespace]);
2090        const mergedContext = {
2091          client: {
2092            ...inheritedValue.client,
2093            [namespace]: itemContext
2094          },
2095          server: {
2096            ...inheritedValue.server
2097          }
2098        };
2099  
2100        // Set the item after proxifying the context.
2101        mergedContext.client[namespace][itemProp] = item;
2102        const scope = {
2103          ...getScope(),
2104          context: mergedContext.client,
2105          serverContext: mergedContext.server
2106        };
2107        const key = eachKey ? getEvaluate({
2108          scope
2109        })(eachKey[0]) : item;
2110        return (0,preact_module.h)(Provider, {
2111          value: mergedContext,
2112          key
2113        }, element.props.content);
2114      });
2115    }, {
2116      priority: 20
2117    });
2118    directive('each-child', () => null, {
2119      priority: 1
2120    });
2121  });
2122  
2123  ;// CONCATENATED MODULE: ./node_modules/@wordpress/interactivity/build-module/constants.js
2124  const directivePrefix = 'wp';
2125  
2126  ;// CONCATENATED MODULE: ./node_modules/@wordpress/interactivity/build-module/vdom.js
2127  /**
2128   * External dependencies
2129   */
2130  
2131  /**
2132   * Internal dependencies
2133   */
2134  
2135  
2136  const ignoreAttr = `data-$directivePrefix}-ignore`;
2137  const islandAttr = `data-$directivePrefix}-interactive`;
2138  const fullPrefix = `data-$directivePrefix}-`;
2139  const namespaces = [];
2140  const currentNamespace = () => {
2141    var _namespaces;
2142    return (_namespaces = namespaces[namespaces.length - 1]) !== null && _namespaces !== void 0 ? _namespaces : null;
2143  };
2144  const isObject = item => Boolean(item && typeof item === 'object' && item.constructor === Object);
2145  
2146  // Regular expression for directive parsing.
2147  const directiveParser = new RegExp(`^data-$directivePrefix}-` +
2148  // ${p} must be a prefix string, like 'wp'.
2149  // Match alphanumeric characters including hyphen-separated
2150  // segments. It excludes underscore intentionally to prevent confusion.
2151  // E.g., "custom-directive".
2152  '([a-z0-9]+(?:-[a-z0-9]+)*)' +
2153  // (Optional) Match '--' followed by any alphanumeric charachters. It
2154  // excludes underscore intentionally to prevent confusion, but it can
2155  // contain multiple hyphens. E.g., "--custom-prefix--with-more-info".
2156  '(?:--([a-z0-9_-]+))?$', 'i' // Case insensitive.
2157  );
2158  
2159  // Regular expression for reference parsing. It can contain a namespace before
2160  // the reference, separated by `::`, like `some-namespace::state.somePath`.
2161  // Namespaces can contain any alphanumeric characters, hyphens, underscores or
2162  // forward slashes. References don't have any restrictions.
2163  const nsPathRegExp = /^([\w_\/-]+)::(.+)$/;
2164  const hydratedIslands = new WeakSet();
2165  
2166  /**
2167   * Recursive function that transforms a DOM tree into vDOM.
2168   *
2169   * @param root The root element or node to start traversing on.
2170   * @return The resulting vDOM tree.
2171   */
2172  function toVdom(root) {
2173    const treeWalker = document.createTreeWalker(root, 205 // TEXT + CDATA_SECTION + COMMENT + PROCESSING_INSTRUCTION + ELEMENT
2174    );
2175    function walk(node) {
2176      const {
2177        nodeType
2178      } = node;
2179  
2180      // TEXT_NODE (3)
2181      if (nodeType === 3) {
2182        return [node.data];
2183      }
2184  
2185      // CDATA_SECTION_NODE (4)
2186      if (nodeType === 4) {
2187        var _nodeValue;
2188        const next = treeWalker.nextSibling();
2189        node.replaceWith(new window.Text((_nodeValue = node.nodeValue) !== null && _nodeValue !== void 0 ? _nodeValue : ''));
2190        return [node.nodeValue, next];
2191      }
2192  
2193      // COMMENT_NODE (8) || PROCESSING_INSTRUCTION_NODE (7)
2194      if (nodeType === 8 || nodeType === 7) {
2195        const next = treeWalker.nextSibling();
2196        node.remove();
2197        return [null, next];
2198      }
2199      const elementNode = node;
2200      const {
2201        attributes
2202      } = elementNode;
2203      const localName = elementNode.localName;
2204      const props = {};
2205      const children = [];
2206      const directives = [];
2207      let ignore = false;
2208      let island = false;
2209      for (let i = 0; i < attributes.length; i++) {
2210        const attributeName = attributes[i].name;
2211        const attributeValue = attributes[i].value;
2212        if (attributeName[fullPrefix.length] && attributeName.slice(0, fullPrefix.length) === fullPrefix) {
2213          if (attributeName === ignoreAttr) {
2214            ignore = true;
2215          } else {
2216            var _regexResult$, _regexResult$2;
2217            const regexResult = nsPathRegExp.exec(attributeValue);
2218            const namespace = (_regexResult$ = regexResult?.[1]) !== null && _regexResult$ !== void 0 ? _regexResult$ : null;
2219            let value = (_regexResult$2 = regexResult?.[2]) !== null && _regexResult$2 !== void 0 ? _regexResult$2 : attributeValue;
2220            try {
2221              const parsedValue = JSON.parse(value);
2222              value = isObject(parsedValue) ? parsedValue : value;
2223            } catch {}
2224            if (attributeName === islandAttr) {
2225              island = true;
2226              const islandNamespace =
2227              // eslint-disable-next-line no-nested-ternary
2228              typeof value === 'string' ? value : typeof value?.namespace === 'string' ? value.namespace : null;
2229              namespaces.push(islandNamespace);
2230            } else {
2231              directives.push([attributeName, namespace, value]);
2232            }
2233          }
2234        } else if (attributeName === 'ref') {
2235          continue;
2236        }
2237        props[attributeName] = attributeValue;
2238      }
2239      if (ignore && !island) {
2240        return [(0,preact_module.h)(localName, {
2241          ...props,
2242          innerHTML: elementNode.innerHTML,
2243          __directives: {
2244            ignore: true
2245          }
2246        })];
2247      }
2248      if (island) {
2249        hydratedIslands.add(elementNode);
2250      }
2251      if (directives.length) {
2252        props.__directives = directives.reduce((obj, [name, ns, value]) => {
2253          const directiveMatch = directiveParser.exec(name);
2254          if (directiveMatch === null) {
2255            warn(`Found malformed directive name: $name}.`);
2256            return obj;
2257          }
2258          const prefix = directiveMatch[1] || '';
2259          const suffix = directiveMatch[2] || null;
2260          obj[prefix] = obj[prefix] || [];
2261          obj[prefix].push({
2262            namespace: ns !== null && ns !== void 0 ? ns : currentNamespace(),
2263            value: value,
2264            suffix
2265          });
2266          return obj;
2267        }, {});
2268      }
2269  
2270      // @ts-expect-error Fixed in upcoming preact release https://github.com/preactjs/preact/pull/4334
2271      if (localName === 'template') {
2272        props.content = [...elementNode.content.childNodes].map(childNode => toVdom(childNode));
2273      } else {
2274        let child = treeWalker.firstChild();
2275        if (child) {
2276          while (child) {
2277            const [vnode, nextChild] = walk(child);
2278            if (vnode) {
2279              children.push(vnode);
2280            }
2281            child = nextChild || treeWalker.nextSibling();
2282          }
2283          treeWalker.parentNode();
2284        }
2285      }
2286  
2287      // Restore previous namespace.
2288      if (island) {
2289        namespaces.pop();
2290      }
2291      return [(0,preact_module.h)(localName, props, children)];
2292    }
2293    return walk(treeWalker.currentNode);
2294  }
2295  
2296  ;// CONCATENATED MODULE: ./node_modules/@wordpress/interactivity/build-module/init.js
2297  /**
2298   * External dependencies
2299   */
2300  
2301  /**
2302   * Internal dependencies
2303   */
2304  
2305  
2306  
2307  
2308  // Keep the same root fragment for each interactive region node.
2309  const regionRootFragments = new WeakMap();
2310  const getRegionRootFragment = region => {
2311    if (!region.parentElement) {
2312      throw Error('The passed region should be an element with a parent.');
2313    }
2314    if (!regionRootFragments.has(region)) {
2315      regionRootFragments.set(region, createRootFragment(region.parentElement, region));
2316    }
2317    return regionRootFragments.get(region);
2318  };
2319  
2320  // Initial vDOM regions associated with its DOM element.
2321  const initialVdom = new WeakMap();
2322  
2323  // Initialize the router with the initial DOM.
2324  const init = async () => {
2325    const nodes = document.querySelectorAll(`[data-$directivePrefix}-interactive]`);
2326    for (const node of nodes) {
2327      if (!hydratedIslands.has(node)) {
2328        await splitTask();
2329        const fragment = getRegionRootFragment(node);
2330        const vdom = toVdom(node);
2331        initialVdom.set(node, vdom);
2332        await splitTask();
2333        (0,preact_module/* hydrate */.Qv)(vdom, fragment);
2334      }
2335    }
2336  };
2337  
2338  ;// CONCATENATED MODULE: ./node_modules/@wordpress/interactivity/build-module/index.js
2339  /**
2340   * External dependencies
2341   */
2342  
2343  
2344  
2345  /**
2346   * Internal dependencies
2347   */
2348  
2349  
2350  
2351  
2352  
2353  
2354  
2355  
2356  
2357  
2358  
2359  
2360  const requiredConsent = 'I acknowledge that using private APIs means my theme or plugin will inevitably break in the next version of WordPress.';
2361  const privateApis = lock => {
2362    if (lock === requiredConsent) {
2363      return {
2364        directivePrefix: directivePrefix,
2365        getRegionRootFragment: getRegionRootFragment,
2366        initialVdom: initialVdom,
2367        toVdom: toVdom,
2368        directive: directive,
2369        getNamespace: getNamespace,
2370        h: preact_module.h,
2371        cloneElement: preact_module/* cloneElement */.Ob,
2372        render: preact_module/* render */.XX,
2373        proxifyState: proxifyState,
2374        parseServerData: parseServerData,
2375        populateServerData: populateServerData,
2376        batch: signals_core_module_r
2377      };
2378    }
2379    throw new Error('Forbidden access.');
2380  };
2381  directives();
2382  init();
2383  
2384  
2385  /***/ }),
2386  
2387  /***/ 622:
2388  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2389  
2390  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2391  /* harmony export */   FK: () => (/* binding */ b),
2392  /* harmony export */   Ob: () => (/* binding */ E),
2393  /* harmony export */   Qv: () => (/* binding */ D),
2394  /* harmony export */   XX: () => (/* binding */ B),
2395  /* harmony export */   fF: () => (/* binding */ l),
2396  /* harmony export */   h: () => (/* binding */ _),
2397  /* harmony export */   q6: () => (/* binding */ G),
2398  /* harmony export */   uA: () => (/* binding */ k),
2399  /* harmony export */   zO: () => (/* binding */ t)
2400  /* harmony export */ });
2401  /* unused harmony exports createElement, createRef, toChildArray */
2402  var n,l,u,t,i,o,r,f,e,c,s,a,h={},v=[],p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,y=Array.isArray;function d(n,l){for(var u in l)n[u]=l[u];return n}function w(n){n&&n.parentNode&&n.parentNode.removeChild(n)}function _(l,u,t){var i,o,r,f={};for(r in u)"key"==r?i=u[r]:"ref"==r?o=u[r]:f[r]=u[r];if(arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):t),"function"==typeof l&&null!=l.defaultProps)for(r in l.defaultProps)void 0===f[r]&&(f[r]=l.defaultProps[r]);return g(l,f,i,o,null)}function g(n,t,i,o,r){var f={type:n,props:t,key:i,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==r?++u:r,__i:-1,__u:0};return null==r&&null!=l.vnode&&l.vnode(f),f}function m(){return{current:null}}function b(n){return n.children}function k(n,l){this.props=n,this.context=l}function x(n,l){if(null==l)return n.__?x(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?x(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 S(n){(!n.__d&&(n.__d=!0)&&i.push(n)&&!M.__r++||o!==l.debounceRendering)&&((o=l.debounceRendering)||r)(M)}function M(){var n,u,t,o,r,e,c,s;for(i.sort(f);n=i.shift();)n.__d&&(u=i.length,o=void 0,e=(r=(t=n).__v).__e,c=[],s=[],t.__P&&((o=d({},r)).__v=r.__v+1,l.vnode&&l.vnode(o),O(t.__P,o,r,t.__n,t.__P.namespaceURI,32&r.__u?[e]:null,c,null==e?x(r):e,!!(32&r.__u),s),o.__v=r.__v,o.__.__k[o.__i]=o,j(c,o,s),o.__e!=e&&C(o)),i.length>u&&i.sort(f));M.__r=0}function P(n,l,u,t,i,o,r,f,e,c,s){var a,p,y,d,w,_=t&&t.__k||v,g=l.length;for(u.__d=e,$(u,l,_),e=u.__d,a=0;a<g;a++)null!=(y=u.__k[a])&&(p=-1===y.__i?h:_[y.__i]||h,y.__i=a,O(n,y,p,i,o,r,f,e,c,s),d=y.__e,y.ref&&p.ref!=y.ref&&(p.ref&&N(p.ref,null,y),s.push(y.ref,y.__c||d,y)),null==w&&null!=d&&(w=d),65536&y.__u||p.__k===y.__k?e=I(y,e,n):"function"==typeof y.type&&void 0!==y.__d?e=y.__d:d&&(e=d.nextSibling),y.__d=void 0,y.__u&=-196609);u.__d=e,u.__e=w}function $(n,l,u){var t,i,o,r,f,e=l.length,c=u.length,s=c,a=0;for(n.__k=[],t=0;t<e;t++)null!=(i=l[t])&&"boolean"!=typeof i&&"function"!=typeof i?(r=t+a,(i=n.__k[t]="string"==typeof i||"number"==typeof i||"bigint"==typeof i||i.constructor==String?g(null,i,null,null,null):y(i)?g(b,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?g(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i).__=n,i.__b=n.__b+1,o=null,-1!==(f=i.__i=L(i,u,r,s))&&(s--,(o=u[f])&&(o.__u|=131072)),null==o||null===o.__v?(-1==f&&a--,"function"!=typeof i.type&&(i.__u|=65536)):f!==r&&(f==r-1?a--:f==r+1?a++:(f>r?a--:a++,i.__u|=65536))):i=n.__k[t]=null;if(s)for(t=0;t<c;t++)null!=(o=u[t])&&0==(131072&o.__u)&&(o.__e==n.__d&&(n.__d=x(o)),V(o,o))}function I(n,l,u){var t,i;if("function"==typeof n.type){for(t=n.__k,i=0;t&&i<t.length;i++)t[i]&&(t[i].__=n,l=I(t[i],l,u));return l}n.__e!=l&&(l&&n.type&&!u.contains(l)&&(l=x(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||(y(n)?n.some(function(n){H(n,l)}):l.push(n)),l}function L(n,l,u,t){var i=n.key,o=n.type,r=u-1,f=u+1,e=l[u];if(null===e||e&&i==e.key&&o===e.type&&0==(131072&e.__u))return u;if(t>(null!=e&&0==(131072&e.__u)?1:0))for(;r>=0||f<l.length;){if(r>=0){if((e=l[r])&&0==(131072&e.__u)&&i==e.key&&o===e.type)return r;r--}if(f<l.length){if((e=l[f])&&0==(131072&e.__u)&&i==e.key&&o===e.type)return f;f++}}return-1}function T(n,l,u){"-"===l[0]?n.setProperty(l,null==u?"":u):n[l]=null==u?"":"number"!=typeof u||p.test(l)?u:u+"px"}function A(n,l,u,t,i){var o;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(/(PointerCapture)$|Capture$/i,"$1")),l=l.toLowerCase()in n||"onFocusOut"===l||"onFocusIn"===l?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+o]=u,u?t?u.u=t.u:(u.u=e,n.addEventListener(l,o?s:c,o)):n.removeEventListener(l,o?s:c,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=e++;else if(u.t<t.u)return;return t(l.event?l.event(u):u)}}}function O(n,u,t,i,o,r,f,e,c,s){var a,h,v,p,w,_,g,m,x,C,S,M,$,I,H,L,T=u.type;if(void 0!==u.constructor)return null;128&t.__u&&(c=!!(32&t.__u),r=[e=u.__e=t.__e]),(a=l.__b)&&a(u);n:if("function"==typeof T)try{if(m=u.props,x="prototype"in T&&T.prototype.render,C=(a=T.contextType)&&i[a.__c],S=a?C?C.props.value:a.__:i,t.__c?g=(h=u.__c=t.__c).__=h.__E:(x?u.__c=h=new T(m,S):(u.__c=h=new k(m,S),h.constructor=T,h.render=q),C&&C.sub(h),h.props=m,h.state||(h.state={}),h.context=S,h.__n=i,v=h.__d=!0,h.__h=[],h._sb=[]),x&&null==h.__s&&(h.__s=h.state),x&&null!=T.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=d({},h.__s)),d(h.__s,T.getDerivedStateFromProps(m,h.__s))),p=h.props,w=h.state,h.__v=u,v)x&&null==T.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),x&&null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(x&&null==T.getDerivedStateFromProps&&m!==p&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(m,S),!h.__e&&(null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(m,h.__s,S)||u.__v===t.__v)){for(u.__v!==t.__v&&(h.props=m,h.state=h.__s,h.__d=!1),u.__e=t.__e,u.__k=t.__k,u.__k.some(function(n){n&&(n.__=u)}),M=0;M<h._sb.length;M++)h.__h.push(h._sb[M]);h._sb=[],h.__h.length&&f.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(m,h.__s,S),x&&null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(p,w,_)})}if(h.context=S,h.props=m,h.__P=n,h.__e=!1,$=l.__r,I=0,x){for(h.state=h.__s,h.__d=!1,$&&$(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,$&&$(u),a=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++I<25);h.state=h.__s,null!=h.getChildContext&&(i=d(d({},i),h.getChildContext())),x&&!v&&null!=h.getSnapshotBeforeUpdate&&(_=h.getSnapshotBeforeUpdate(p,w)),P(n,y(L=null!=a&&a.type===b&&null==a.key?a.props.children:a)?L:[L],u,t,i,o,r,f,e,c,s),h.base=u.__e,u.__u&=-161,h.__h.length&&f.push(h),g&&(h.__E=h.__=null)}catch(n){if(u.__v=null,c||null!=r){for(u.__u|=c?160:128;e&&8===e.nodeType&&e.nextSibling;)e=e.nextSibling;r[r.indexOf(e)]=null,u.__e=e}else u.__e=t.__e,u.__k=t.__k;l.__e(n,u,t)}else null==r&&u.__v===t.__v?(u.__k=t.__k,u.__e=t.__e):u.__e=z(t.__e,u,t,i,o,r,f,c,s);(a=l.diffed)&&a(u)}function j(n,u,t){u.__d=void 0;for(var i=0;i<t.length;i++)N(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 z(u,t,i,o,r,f,e,c,s){var a,v,p,d,_,g,m,b=i.props,k=t.props,C=t.type;if("svg"===C?r="http://www.w3.org/2000/svg":"math"===C?r="http://www.w3.org/1998/Math/MathML":r||(r="http://www.w3.org/1999/xhtml"),null!=f)for(a=0;a<f.length;a++)if((_=f[a])&&"setAttribute"in _==!!C&&(C?_.localName===C:3===_.nodeType)){u=_,f[a]=null;break}if(null==u){if(null===C)return document.createTextNode(k);u=document.createElementNS(r,C,k.is&&k),c&&(l.__m&&l.__m(t,f),c=!1),f=null}if(null===C)b===k||c&&u.data===k||(u.data=k);else{if(f=f&&n.call(u.childNodes),b=i.props||h,!c&&null!=f)for(b={},a=0;a<u.attributes.length;a++)b[(_=u.attributes[a]).name]=_.value;for(a in b)if(_=b[a],"children"==a);else if("dangerouslySetInnerHTML"==a)p=_;else if(!(a in k)){if("value"==a&&"defaultValue"in k||"checked"==a&&"defaultChecked"in k)continue;A(u,a,null,_,r)}for(a in k)_=k[a],"children"==a?d=_:"dangerouslySetInnerHTML"==a?v=_:"value"==a?g=_:"checked"==a?m=_:c&&"function"!=typeof _||b[a]===_||A(u,a,_,b[a],r);if(v)c||p&&(v.__html===p.__html||v.__html===u.innerHTML)||(u.innerHTML=v.__html),t.__k=[];else if(p&&(u.innerHTML=""),P(u,y(d)?d:[d],t,i,o,"foreignObject"===C?"http://www.w3.org/1999/xhtml":r,f,e,f?f[0]:i.__k&&x(i,0),c,s),null!=f)for(a=f.length;a--;)w(f[a]);c||(a="value","progress"===C&&null==g?u.removeAttribute("value"):void 0!==g&&(g!==u[a]||"progress"===C&&!g||"option"===C&&g!==b[a])&&A(u,a,g,b[a],r),a="checked",void 0!==m&&m!==u[a]&&A(u,a,m,b[a],r))}return u}function N(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 V(n,u,t){var i,o;if(l.unmount&&l.unmount(n),(i=n.ref)&&(i.current&&i.current!==n.__e||N(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]&&V(i[o],u,t||"function"!=typeof n.type);t||w(n.__e),n.__c=n.__=n.__e=n.__d=void 0}function q(n,l,u){return this.constructor(n,u)}function B(u,t,i){var o,r,f,e;l.__&&l.__(u,t),r=(o="function"==typeof i)?null:i&&i.__k||t.__k,f=[],e=[],O(t,u=(!o&&i||t).__k=_(b,null,[u]),r||h,h,t.namespaceURI,!o&&i?[i]:r?null:t.firstChild?n.call(t.childNodes):null,f,!o&&i?i:r?r.__e:t.firstChild,o,e),j(f,u,e)}function D(n,l){B(n,l,D)}function E(l,u,t){var i,o,r,f,e=d({},l.props);for(r in l.type&&l.type.defaultProps&&(f=l.type.defaultProps),u)"key"==r?i=u[r]:"ref"==r?o=u[r]:e[r]=void 0===u[r]&&void 0!==f?f[r]:u[r];return arguments.length>2&&(e.children=arguments.length>3?n.call(arguments,2):t),g(l.type,e,i||l.key,o||l.ref,null)}function G(n,l){var u={__c:l="__cC"+a++,__:n,Consumer:function(n,l){return n.children(l)},Provider:function(n){var u,t;return this.getChildContext||(u=new Set,(t={})[l]=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,S(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 u.Provider.__=u.Consumer.contextType=u}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&&null==n.constructor},k.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=d({},this.state),"function"==typeof n&&(n=n(d({},u),this.props)),n&&d(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),S(this))},k.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),S(this))},k.prototype.render=b,i=[],r="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,f=function(n,l){return n.__v.__b-l.__v.__b},M.__r=0,e=0,c=F(!1),s=F(!0),a=0;
2403  
2404  
2405  /***/ })
2406  
2407  /******/ });
2408  /************************************************************************/
2409  /******/ // The module cache
2410  /******/ var __webpack_module_cache__ = {};
2411  /******/ 
2412  /******/ // The require function
2413  /******/ function __webpack_require__(moduleId) {
2414  /******/     // Check if module is in cache
2415  /******/     var cachedModule = __webpack_module_cache__[moduleId];
2416  /******/     if (cachedModule !== undefined) {
2417  /******/         return cachedModule.exports;
2418  /******/     }
2419  /******/     // Create a new module (and put it into the cache)
2420  /******/     var module = __webpack_module_cache__[moduleId] = {
2421  /******/         // no module.id needed
2422  /******/         // no module.loaded needed
2423  /******/         exports: {}
2424  /******/     };
2425  /******/ 
2426  /******/     // Execute the module function
2427  /******/     __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
2428  /******/ 
2429  /******/     // Return the exports of the module
2430  /******/     return module.exports;
2431  /******/ }
2432  /******/ 
2433  /************************************************************************/
2434  /******/ /* webpack/runtime/define property getters */
2435  /******/ (() => {
2436  /******/     // define getter functions for harmony exports
2437  /******/     __webpack_require__.d = (exports, definition) => {
2438  /******/         for(var key in definition) {
2439  /******/             if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
2440  /******/                 Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
2441  /******/             }
2442  /******/         }
2443  /******/     };
2444  /******/ })();
2445  /******/ 
2446  /******/ /* webpack/runtime/hasOwnProperty shorthand */
2447  /******/ (() => {
2448  /******/     __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
2449  /******/ })();
2450  /******/ 
2451  /************************************************************************/
2452  var __webpack_exports__ = {};
2453  // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
2454  (() => {
2455  
2456  // EXPORTS
2457  __webpack_require__.d(__webpack_exports__, {
2458    zj: () => (/* reexport */ build_module/* getConfig */.zj),
2459    SD: () => (/* reexport */ build_module/* getContext */.SD),
2460    V6: () => (/* reexport */ build_module/* getElement */.V6),
2461    $K: () => (/* reexport */ build_module/* getServerContext */.$K),
2462    vT: () => (/* reexport */ build_module/* getServerState */.vT),
2463    jb: () => (/* reexport */ build_module/* privateApis */.jb),
2464    yT: () => (/* reexport */ build_module/* splitTask */.yT),
2465    M_: () => (/* reexport */ build_module/* store */.M_),
2466    hb: () => (/* reexport */ build_module/* useCallback */.hb),
2467    vJ: () => (/* reexport */ build_module/* useEffect */.vJ),
2468    ip: () => (/* reexport */ build_module/* useInit */.ip),
2469    Nf: () => (/* reexport */ build_module/* useLayoutEffect */.Nf),
2470    Kr: () => (/* reexport */ build_module/* useMemo */.Kr),
2471    li: () => (/* reexport */ build_module/* useRef */.li),
2472    J0: () => (/* reexport */ build_module/* useState */.J0),
2473    FH: () => (/* reexport */ build_module/* useWatch */.FH),
2474    v4: () => (/* reexport */ build_module/* withScope */.v4)
2475  });
2476  
2477  // EXTERNAL MODULE: ./node_modules/preact/dist/preact.module.js
2478  var preact_module = __webpack_require__(622);
2479  ;// CONCATENATED MODULE: ./node_modules/preact/devtools/dist/devtools.module.js
2480  var i;function t(o,e){return n.__a&&n.__a(e),o}null!=(i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0)&&i.__PREACT_DEVTOOLS__&&i.__PREACT_DEVTOOLS__.attachPreact("10.24.3",preact_module/* options */.fF,{Fragment:preact_module/* Fragment */.FK,Component:preact_module/* Component */.uA});
2481  
2482  ;// CONCATENATED MODULE: ./node_modules/preact/debug/dist/debug.module.js
2483  var debug_module_t={};function r(){debug_module_t={}}function a(e){return e.type===preact_module/* Fragment */.FK?"Fragment":"function"==typeof e.type?e.type.displayName||e.type.name:"string"==typeof e.type?e.type:"#text"}var debug_module_i=[],s=[];function c(){return debug_module_i.length>0?debug_module_i[debug_module_i.length-1]:null}var l=!0;function u(e){return"function"==typeof e.type&&e.type!=preact_module/* Fragment */.FK}function 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 "+a(e);var o=e.__source;return o?n+=" (at "+o.fileName+":"+o.lineNumber+")":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."),l=!1,n+"\n"},"")}var d="function"==typeof WeakMap;function p(n){var e=[];return n.__k?(n.__k.forEach(function(n){n&&"function"==typeof n.type?e.push.apply(e,p(n)):n&&"string"==typeof n.type&&e.push(n.type)}),e):e}function h(n){return n?"function"==typeof n.type?null==n.__?null!=n.__e&&null!=n.__e.parentNode?n.__e.parentNode.localName:"":h(n.__):n.type:""}var v=preact_module/* Component */.uA.prototype.setState;function y(n){return"table"===n||"tfoot"===n||"tbody"===n||"thead"===n||"td"===n||"tr"===n||"th"===n}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'+f(c())),v.call(this,n,e)};var 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)$/,b=preact_module/* Component */.uA.prototype.forceUpdate;function w(n){var e=n.props,o=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+">":" />")}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'+f(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'+f(this.__v)),b.call(this,n)},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"+f(n))},function(){!function(){var n=preact_module/* options */.fF.__b,o=preact_module/* options */.fF.diffed,t=preact_module/* options */.fF.__,r=preact_module/* options */.fF.vnode,a=preact_module/* options */.fF.__r;preact_module/* options */.fF.diffed=function(n){u(n)&&s.pop(),debug_module_i.pop(),o&&o(n)},preact_module/* options */.fF.__b=function(e){u(e)&&debug_module_i.push(e),n&&n(e)},preact_module/* options */.fF.__=function(n,e){s=[],t&&t(n,e)},preact_module/* options */.fF.vnode=function(n){n.__o=s.length>0?s[s.length-1]:null,r&&r(n)},preact_module/* options */.fF.__r=function(n){u(n)&&s.push(n),a&&a(n)}}();var n=!1,o=preact_module/* options */.fF.__b,r=preact_module/* options */.fF.diffed,c=preact_module/* options */.fF.vnode,l=preact_module/* options */.fF.__r,v=preact_module/* options */.fF.__e,b=preact_module/* options */.fF.__,g=preact_module/* options */.fF.__h,E=d?{useEffect:new WeakMap,useLayoutEffect:new WeakMap,lazyPropTypes:new WeakMap}:null,k=[];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: "+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=f(e),v(n,e,o,t),"function"!=typeof n.then&&setTimeout(function(){throw n})}catch(n){throw n}},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=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)},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"+w(e)+"\n\n"+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"+a(e)+" = "+w(r)+";\n  let vnode = <My"+a(e)+" />;\n\nThis usually happens when you export a JSX literal and not the component.\n\n"+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"+w(e)+"\n\n"+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"+w(e)+"\n\n"+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 "+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_module_t)&&(debug_module_t[i.message]=!0,console.error("Failed prop type: "+i.message+(a&&"\n"+a()||"")))})}(e.type.propTypes,l,0,a(e),function(){return f(e)})}o&&o(e)};var T,_=0;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: "+a(e));T=o},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);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)},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"+f(e))}}),e.__c===T&&(_=0),"string"==typeof t&&(y(t)||"p"===t||"a"===t||"button"===t)){var s=h(i);if(""!==s&&y(t))"table"===t&&"td"!==s&&y(s)?(console.log(s,i.__e),console.error("Improper nesting of table. Your <table> should not have a table-node parent."+w(e)+"\n\n"+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."+w(e)+"\n\n"+f(e)):"td"===t&&"tr"!==s?console.error("Improper nesting of table. Your <td> should have a <tr> parent."+w(e)+"\n\n"+f(e)):"th"===t&&"tr"!==s&&console.error("Improper nesting of table. Your <th> should have a <tr>."+w(e)+"\n\n"+f(e)):console.error("Improper nesting of table. Your <thead/tbody/tfoot> should have a <table> parent."+w(e)+"\n\n"+f(e));else if("p"===t){var c=p(e).filter(function(n){return m.test(n)});c.length&&console.error("Improper nesting of paragraph. Your <p> should not have "+c.join(", ")+"as child-elements."+w(e)+"\n\n"+f(e))}else"a"!==t&&"button"!==t||-1!==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."+w(e)+"\n\n"+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'+w(e)+"\n\n"+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=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.")}}}}}();
2484  
2485  // EXTERNAL MODULE: ./node_modules/@wordpress/interactivity/build-module/index.js + 18 modules
2486  var build_module = __webpack_require__(380);
2487  ;// CONCATENATED MODULE: ./node_modules/@wordpress/interactivity/build-module/debug.js
2488  /**
2489   * External dependencies
2490   */
2491  
2492  
2493  
2494  })();
2495  
2496  var __webpack_exports__getConfig = __webpack_exports__.zj;
2497  var __webpack_exports__getContext = __webpack_exports__.SD;
2498  var __webpack_exports__getElement = __webpack_exports__.V6;
2499  var __webpack_exports__getServerContext = __webpack_exports__.$K;
2500  var __webpack_exports__getServerState = __webpack_exports__.vT;
2501  var __webpack_exports__privateApis = __webpack_exports__.jb;
2502  var __webpack_exports__splitTask = __webpack_exports__.yT;
2503  var __webpack_exports__store = __webpack_exports__.M_;
2504  var __webpack_exports__useCallback = __webpack_exports__.hb;
2505  var __webpack_exports__useEffect = __webpack_exports__.vJ;
2506  var __webpack_exports__useInit = __webpack_exports__.ip;
2507  var __webpack_exports__useLayoutEffect = __webpack_exports__.Nf;
2508  var __webpack_exports__useMemo = __webpack_exports__.Kr;
2509  var __webpack_exports__useRef = __webpack_exports__.li;
2510  var __webpack_exports__useState = __webpack_exports__.J0;
2511  var __webpack_exports__useWatch = __webpack_exports__.FH;
2512  var __webpack_exports__withScope = __webpack_exports__.v4;
2513  export { __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 };


Generated : Sat Nov 23 08:20:01 2024 Cross-referenced by PHPXref