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