WordPress/wp-includes/js/dist/interactivity.min.js
youknowriad 1de40f71be Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress. 
This includes features like:

 - DataViews.
 - Customization tools like box shadow, background size and repeat.
 - UI improvements in the site editor. 
 - Preferences sharing between the post and site editors.
 - Unified panels and editors between post and site editors.
 - Improved template mode in the post editor.
 - Iterations to multiple interactive blocks.
 - Preparing the blocks and UI for pattern overrides.
 - and a lot more.

Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377


git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 21:07:12 +00:00

11 lines
38 KiB
JavaScript

/*! This file is auto-generated */
var t={47:function(t,e){var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),c=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),a=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator;
/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},d=Object.assign,v={};function y(t,e,n){this.props=t,this.context=e,this.refs=v,this.updater=n||h}function m(){}function g(t,e,n){this.props=t,this.context=e,this.refs=v,this.updater=n||h}y.prototype.isReactComponent={},y.prototype.setState=function(t,e){if("object"!=typeof t&&"function"!=typeof t&&null!=t)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")},y.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},m.prototype=y.prototype;var b=g.prototype=new m;b.constructor=g,d(b,y.prototype),b.isPureReactComponent=!0;var w=Array.isArray,x=Object.prototype.hasOwnProperty,k={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function E(t,e,r){var o,i={},u=null,s=null;if(null!=e)for(o in void 0!==e.ref&&(s=e.ref),void 0!==e.key&&(u=""+e.key),e)x.call(e,o)&&!S.hasOwnProperty(o)&&(i[o]=e[o]);var c=arguments.length-2;if(1===c)i.children=r;else if(1<c){for(var _=Array(c),l=0;l<c;l++)_[l]=arguments[l+2];i.children=_}if(t&&t.defaultProps)for(o in c=t.defaultProps)void 0===i[o]&&(i[o]=c[o]);return{$$typeof:n,type:t,key:u,ref:s,props:i,_owner:k.current}}function $(t){return"object"==typeof t&&null!==t&&t.$$typeof===n}var P=/\/+/g;function C(t,e){return"object"==typeof t&&null!==t&&null!=t.key?function(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,(function(t){return e[t]}))}(""+t.key):e.toString(36)}function j(t,e,o,i,u){var s=typeof t;"undefined"!==s&&"boolean"!==s||(t=null);var c=!1;if(null===t)c=!0;else switch(s){case"string":case"number":c=!0;break;case"object":switch(t.$$typeof){case n:case r:c=!0}}if(c)return u=u(c=t),t=""===i?"."+C(c,0):i,w(u)?(o="",null!=t&&(o=t.replace(P,"$&/")+"/"),j(u,e,o,"",(function(t){return t}))):null!=u&&($(u)&&(u=function(t,e){return{$$typeof:n,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}(u,o+(!u.key||c&&c.key===u.key?"":(""+u.key).replace(P,"$&/")+"/")+t)),e.push(u)),1;if(c=0,i=""===i?".":i+":",w(t))for(var _=0;_<t.length;_++){var l=i+C(s=t[_],_);c+=j(s,e,o,l,u)}else if(l=function(t){return null===t||"object"!=typeof t?null:"function"==typeof(t=p&&t[p]||t["@@iterator"])?t:null}(t),"function"==typeof l)for(t=l.call(t),_=0;!(s=t.next()).done;)c+=j(s=s.value,e,o,l=i+C(s,_++),u);else if("object"===s)throw e=String(t),Error("Objects are not valid as a React child (found: "+("[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.");return c}function O(t,e,n){if(null==t)return t;var r=[],o=0;return j(t,r,"","",(function(t){return e.call(n,t,o++)})),r}function N(t){if(-1===t._status){var e=t._result;(e=e()).then((function(e){0!==t._status&&-1!==t._status||(t._status=1,t._result=e)}),(function(e){0!==t._status&&-1!==t._status||(t._status=2,t._result=e)})),-1===t._status&&(t._status=0,t._result=e)}if(1===t._status)return t._result.default;throw t._result}var U={current:null},T={transition:null};e.createElement=E},401:function(t,e,n){t.exports=n(47)}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var r={};!function(){n.d(r,{Tm:function(){return q},az:function(){return m},Aj:function(){return Kt},XM:function(){return We},LO:function(){return rn},fw:function(){return Pe},sb:function(){return Ce},D_:function(){return Ue},y7:function(){return dn},sY:function(){return D},h:function(){return ge},l2:function(){return pn},I4:function(){return Je},qp:function(){return ct},d4:function(){return Be},Dp:function(){return ze},bt:function(){return Ge},Ye:function(){return Ye},sO:function(){return it},eJ:function(){return nt},qo:function(){return Ve},$e:function(){return Ie}});var t,e,o,i,u,s,c,_,l,a=n(401),f={},p=[],h=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,d=Array.isArray;function v(t,e){for(var n in e)t[n]=e[n];return t}function y(t){var e=t.parentNode;e&&e.removeChild(t)}function m(e,n,r){var o,i,u,s={};for(u in n)"key"==u?o=n[u]:"ref"==u?i=n[u]:s[u]=n[u];if(arguments.length>2&&(s.children=arguments.length>3?t.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(u in e.defaultProps)void 0===s[u]&&(s[u]=e.defaultProps[u]);return g(e,s,o,i,null)}function g(t,n,r,i,u){var s={type:t,props:n,key:r,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==u?++o:u,__i:-1,__u:0};return null==u&&null!=e.vnode&&e.vnode(s),s}function b(t){return t.children}function w(t,e){this.props=t,this.context=e}function x(t,e){if(null==e)return t.__?x(t.__,t.__i+1):null;for(var n;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof t.type?x(t):null}function k(t){var e,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return k(t)}}function S(t){(!t.__d&&(t.__d=!0)&&u.push(t)&&!E.__r++||s!==e.debounceRendering)&&((s=e.debounceRendering)||c)(E)}function E(){var t,n,r,o,i,s,c,l,a;for(u.sort(_);t=u.shift();)t.__d&&(n=u.length,o=void 0,s=(i=(r=t).__v).__e,l=[],a=[],(c=r.__P)&&((o=v({},i)).__v=i.__v+1,e.vnode&&e.vnode(o),M(c,o,i,r.__n,void 0!==c.ownerSVGElement,32&i.__u?[s]:null,l,null==s?x(i):s,!!(32&i.__u),a),o.__.__k[o.__i]=o,A(l,o,a),o.__e!=s&&k(o)),u.length>n&&u.sort(_));E.__r=0}function $(t,e,n,r,o,i,u,s,c,_,l){var a,h,d,v,y,m=r&&r.__k||p,g=e.length;for(n.__d=c,P(n,e,m),c=n.__d,a=0;a<g;a++)null!=(d=n.__k[a])&&"boolean"!=typeof d&&"function"!=typeof d&&(h=-1===d.__i?f:m[d.__i]||f,d.__i=a,M(t,d,h,o,i,u,s,c,_,l),v=d.__e,d.ref&&h.ref!=d.ref&&(h.ref&&W(h.ref,null,d),l.push(d.ref,d.__c||v,d)),null==y&&null!=v&&(y=v),65536&d.__u||h.__k===d.__k?c=C(d,c,t):"function"==typeof d.type&&void 0!==d.__d?c=d.__d:v&&(c=v.nextSibling),d.__d=void 0,d.__u&=-196609);n.__d=c,n.__e=y}function P(t,e,n){var r,o,i,u,s,c=e.length,_=n.length,l=_,a=0;for(t.__k=[],r=0;r<c;r++)null!=(o=t.__k[r]=null==(o=e[r])||"boolean"==typeof o||"function"==typeof o?null:"string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?g(null,o,null,null,o):d(o)?g(b,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?g(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=t,o.__b=t.__b+1,s=j(o,n,u=r+a,l),o.__i=s,i=null,-1!==s&&(l--,(i=n[s])&&(i.__u|=131072)),null==i||null===i.__v?(-1==s&&a--,"function"!=typeof o.type&&(o.__u|=65536)):s!==u&&(s===u+1?a++:s>u?l>c-u?a+=s-u:a--:a=s<u&&s==u-1?s-u:0,s!==r+a&&(o.__u|=65536))):(i=n[r])&&null==i.key&&i.__e&&(i.__e==t.__d&&(t.__d=x(i)),L(i,i,!1),n[r]=null,l--);if(l)for(r=0;r<_;r++)null!=(i=n[r])&&0==(131072&i.__u)&&(i.__e==t.__d&&(t.__d=x(i)),L(i,i))}function C(t,e,n){var r,o;if("function"==typeof t.type){for(r=t.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=t,e=C(r[o],e,n));return e}return t.__e!=e&&(n.insertBefore(t.__e,e||null),e=t.__e),e&&e.nextSibling}function j(t,e,n,r){var o=t.key,i=t.type,u=n-1,s=n+1,c=e[n];if(null===c||c&&o==c.key&&i===c.type)return n;if(r>(null!=c&&0==(131072&c.__u)?1:0))for(;u>=0||s<e.length;){if(u>=0){if((c=e[u])&&0==(131072&c.__u)&&o==c.key&&i===c.type)return u;u--}if(s<e.length){if((c=e[s])&&0==(131072&c.__u)&&o==c.key&&i===c.type)return s;s++}}return-1}function O(t,e,n){"-"===e[0]?t.setProperty(e,null==n?"":n):t[e]=null==n?"":"number"!=typeof n||h.test(e)?n:n+"px"}function N(t,e,n,r,o){var i;t:if("style"===e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof r&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||O(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||O(t.style,e,n[e])}else if("o"===e[0]&&"n"===e[1])i=e!==(e=e.replace(/(PointerCapture)$|Capture$/,"$1")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=n,n?r?n.u=r.u:(n.u=Date.now(),t.addEventListener(e,i?T:U,i)):t.removeEventListener(e,i?T:U,i);else{if(o)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==e&&"height"!==e&&"href"!==e&&"list"!==e&&"form"!==e&&"tabIndex"!==e&&"download"!==e&&"rowSpan"!==e&&"colSpan"!==e&&"role"!==e&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null==n||!1===n&&"-"!==e[4]?t.removeAttribute(e):t.setAttribute(e,n))}}function U(t){var n=this.l[t.type+!1];if(t.t){if(t.t<=n.u)return}else t.t=Date.now();return n(e.event?e.event(t):t)}function T(t){return this.l[t.type+!0](e.event?e.event(t):t)}function M(t,n,r,o,i,u,s,c,_,l){var a,f,p,h,y,m,g,x,k,S,E,P,C,j,O,N=n.type;if(void 0!==n.constructor)return null;128&r.__u&&(_=!!(32&r.__u),u=[c=n.__e=r.__e]),(a=e.__b)&&a(n);t:if("function"==typeof N)try{if(x=n.props,k=(a=N.contextType)&&o[a.__c],S=a?k?k.props.value:a.__:o,r.__c?g=(f=n.__c=r.__c).__=f.__E:("prototype"in N&&N.prototype.render?n.__c=f=new N(x,S):(n.__c=f=new w(x,S),f.constructor=N,f.render=R),k&&k.sub(f),f.props=x,f.state||(f.state={}),f.context=S,f.__n=o,p=f.__d=!0,f.__h=[],f._sb=[]),null==f.__s&&(f.__s=f.state),null!=N.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=v({},f.__s)),v(f.__s,N.getDerivedStateFromProps(x,f.__s))),h=f.props,y=f.state,f.__v=n,p)null==N.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==N.getDerivedStateFromProps&&x!==h&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(x,S),!f.__e&&(null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(x,f.__s,S)||n.__v===r.__v)){for(n.__v!==r.__v&&(f.props=x,f.state=f.__s,f.__d=!1),n.__e=r.__e,n.__k=r.__k,n.__k.forEach((function(t){t&&(t.__=n)})),E=0;E<f._sb.length;E++)f.__h.push(f._sb[E]);f._sb=[],f.__h.length&&s.push(f);break t}null!=f.componentWillUpdate&&f.componentWillUpdate(x,f.__s,S),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(h,y,m)}))}if(f.context=S,f.props=x,f.__P=t,f.__e=!1,P=e.__r,C=0,"prototype"in N&&N.prototype.render){for(f.state=f.__s,f.__d=!1,P&&P(n),a=f.render(f.props,f.state,f.context),j=0;j<f._sb.length;j++)f.__h.push(f._sb[j]);f._sb=[]}else do{f.__d=!1,P&&P(n),a=f.render(f.props,f.state,f.context),f.state=f.__s}while(f.__d&&++C<25);f.state=f.__s,null!=f.getChildContext&&(o=v(v({},o),f.getChildContext())),p||null==f.getSnapshotBeforeUpdate||(m=f.getSnapshotBeforeUpdate(h,y)),$(t,d(O=null!=a&&a.type===b&&null==a.key?a.props.children:a)?O:[O],n,r,o,i,u,s,c,_,l),f.base=n.__e,n.__u&=-161,f.__h.length&&s.push(f),g&&(f.__E=f.__=null)}catch(t){n.__v=null,_||null!=u?(n.__e=c,n.__u|=_?160:32,u[u.indexOf(c)]=null):(n.__e=r.__e,n.__k=r.__k),e.__e(t,n,r)}else null==u&&n.__v===r.__v?(n.__k=r.__k,n.__e=r.__e):n.__e=H(r.__e,n,r,o,i,u,s,_,l);(a=e.diffed)&&a(n)}function A(t,n,r){n.__d=void 0;for(var o=0;o<r.length;o++)W(r[o],r[++o],r[++o]);e.__c&&e.__c(n,t),t.some((function(n){try{t=n.__h,n.__h=[],t.some((function(t){t.call(n)}))}catch(t){e.__e(t,n.__v)}}))}function H(e,n,r,o,i,u,s,c,_){var l,a,p,h,v,m,g,b=r.props,w=n.props,k=n.type;if("svg"===k&&(i=!0),null!=u)for(l=0;l<u.length;l++)if((v=u[l])&&"setAttribute"in v==!!k&&(k?v.localName===k:3===v.nodeType)){e=v,u[l]=null;break}if(null==e){if(null===k)return document.createTextNode(w);e=i?document.createElementNS("http://www.w3.org/2000/svg",k):document.createElement(k,w.is&&w),u=null,c=!1}if(null===k)b===w||c&&e.data===w||(e.data=w);else{if(u=u&&t.call(e.childNodes),b=r.props||f,!c&&null!=u)for(b={},l=0;l<e.attributes.length;l++)b[(v=e.attributes[l]).name]=v.value;for(l in b)v=b[l],"children"==l||("dangerouslySetInnerHTML"==l?p=v:"key"===l||l in w||N(e,l,null,v,i));for(l in w)v=w[l],"children"==l?h=v:"dangerouslySetInnerHTML"==l?a=v:"value"==l?m=v:"checked"==l?g=v:"key"===l||c&&"function"!=typeof v||b[l]===v||N(e,l,v,b[l],i);if(a)c||p&&(a.__html===p.__html||a.__html===e.innerHTML)||(e.innerHTML=a.__html),n.__k=[];else if(p&&(e.innerHTML=""),$(e,d(h)?h:[h],n,r,o,i&&"foreignObject"!==k,u,s,u?u[0]:r.__k&&x(r,0),c,_),null!=u)for(l=u.length;l--;)null!=u[l]&&y(u[l]);c||(l="value",void 0!==m&&(m!==e[l]||"progress"===k&&!m||"option"===k&&m!==b[l])&&N(e,l,m,b[l],!1),l="checked",void 0!==g&&g!==e[l]&&N(e,l,g,b[l],!1))}return e}function W(t,n,r){try{"function"==typeof t?t(n):t.current=n}catch(t){e.__e(t,r)}}function L(t,n,r){var o,i;if(e.unmount&&e.unmount(t),(o=t.ref)&&(o.current&&o.current!==t.__e||W(o,null,n)),null!=(o=t.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(t){e.__e(t,n)}o.base=o.__P=null,t.__c=void 0}if(o=t.__k)for(i=0;i<o.length;i++)o[i]&&L(o[i],n,r||"function"!=typeof t.type);r||null==t.__e||y(t.__e),t.__=t.__e=t.__d=void 0}function R(t,e,n){return this.constructor(t,n)}function D(n,r,o){var i,u,s,c;e.__&&e.__(n,r),u=(i="function"==typeof o)?null:o&&o.__k||r.__k,s=[],c=[],M(r,n=(!i&&o||r).__k=m(b,null,[n]),u||f,f,void 0!==r.ownerSVGElement,!i&&o?[o]:u?null:r.firstChild?t.call(r.childNodes):null,s,!i&&o?o:u?u.__e:r.firstChild,i,c),A(s,n,c)}function F(t,e){D(t,e,F)}function q(e,n,r){var o,i,u,s,c=v({},e.props);for(u in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),n)"key"==u?o=n[u]:"ref"==u?i=n[u]:c[u]=void 0===n[u]&&void 0!==s?s[u]:n[u];return arguments.length>2&&(c.children=arguments.length>3?t.call(arguments,2):r),g(e.type,c,o||e.key,i||e.ref,null)}t=p.slice,e={__e:function(t,e,n,r){for(var o,i,u;e=e.__;)if((o=e.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(t)),u=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(t,r||{}),u=o.__d),u)return o.__E=o}catch(e){t=e}throw t}},o=0,i=function(t){return null!=t&&null==t.constructor},w.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=v({},this.state),"function"==typeof t&&(t=t(v({},n),this.props)),t&&v(n,t),null!=t&&this.__v&&(e&&this._sb.push(e),S(this))},w.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),S(this))},w.prototype.render=b,u=[],c="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,_=function(t,e){return t.__v.__b-e.__v.__b},E.__r=0,l=0;var I,V,z,B,G=0,J=[],Y=[],K=e.__b,X=e.__r,Q=e.diffed,Z=e.__c,tt=e.unmount;function et(t,n){e.__h&&e.__h(V,t,G||n),G=0;var r=V.__H||(V.__H={__:[],__h:[]});return t>=r.__.length&&r.__.push({__V:Y}),r.__[t]}function nt(t){return G=1,function(t,e,n){var r=et(I++,2);if(r.t=t,!r.__c&&(r.__=[n?n(e):dt(void 0,e),function(t){var e=r.__N?r.__N[0]:r.__[0],n=r.t(e,t);e!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=V,!V.u)){var o=function(t,e,n){if(!r.__c.__H)return!0;var o=r.__c.__H.__.filter((function(t){return t.__c}));if(o.every((function(t){return!t.__N})))return!i||i.call(this,t,e,n);var u=!1;return o.forEach((function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(u=!0)}})),!(!u&&r.__c.props===t)&&(!i||i.call(this,t,e,n))};V.u=!0;var i=V.shouldComponentUpdate,u=V.componentWillUpdate;V.componentWillUpdate=function(t,e,n){if(this.__e){var r=i;i=void 0,o(t,e,n),i=r}u&&u.call(this,t,e,n)},V.shouldComponentUpdate=o}return r.__N||r.__}(dt,t)}function rt(t,n){var r=et(I++,3);!e.__s&&ht(r.__H,n)&&(r.__=t,r.i=n,V.__H.__h.push(r))}function ot(t,n){var r=et(I++,4);!e.__s&&ht(r.__H,n)&&(r.__=t,r.i=n,V.__h.push(r))}function it(t){return G=5,ut((function(){return{current:t}}),[])}function ut(t,e){var n=et(I++,7);return ht(n.__H,e)?(n.__V=t(),n.i=e,n.__h=t,n.__V):n.__}function st(t,e){return G=8,ut((function(){return t}),e)}function ct(t){var e=V.context[t.__c],n=et(I++,9);return n.c=t,e?(null==n.__&&(n.__=!0,e.sub(V)),e.props.value):t.__}function _t(){for(var t;t=J.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(ft),t.__H.__h.forEach(pt),t.__H.__h=[]}catch(n){t.__H.__h=[],e.__e(n,t.__v)}}e.__b=function(t){V=null,K&&K(t)},e.__r=function(t){X&&X(t),I=0;var e=(V=t.__c).__H;e&&(z===V?(e.__h=[],V.__h=[],e.__.forEach((function(t){t.__N&&(t.__=t.__N),t.__V=Y,t.__N=t.i=void 0}))):(e.__h.forEach(ft),e.__h.forEach(pt),e.__h=[],I=0)),z=V},e.diffed=function(t){Q&&Q(t);var n=t.__c;n&&n.__H&&(n.__H.__h.length&&(1!==J.push(n)&&B===e.requestAnimationFrame||((B=e.requestAnimationFrame)||at)(_t)),n.__H.__.forEach((function(t){t.i&&(t.__H=t.i),t.__V!==Y&&(t.__=t.__V),t.i=void 0,t.__V=Y}))),z=V=null},e.__c=function(t,n){n.some((function(t){try{t.__h.forEach(ft),t.__h=t.__h.filter((function(t){return!t.__||pt(t)}))}catch(r){n.some((function(t){t.__h&&(t.__h=[])})),n=[],e.__e(r,t.__v)}})),Z&&Z(t,n)},e.unmount=function(t){tt&&tt(t);var n,r=t.__c;r&&r.__H&&(r.__H.__.forEach((function(t){try{ft(t)}catch(t){n=t}})),r.__H=void 0,n&&e.__e(n,r.__v))};var lt="function"==typeof requestAnimationFrame;function at(t){var e,n=function(){clearTimeout(r),lt&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);lt&&(e=requestAnimationFrame(n))}function ft(t){var e=V,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),V=e}function pt(t){var e=V;t.__c=t.__(),V=e}function ht(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function dt(t,e){return"function"==typeof e?e(t):e}function vt(){throw new Error("Cycle detected")}var yt=Symbol.for("preact-signals");function mt(){if(xt>1)xt--;else{for(var t,e=!1;void 0!==wt;){var n=wt;for(wt=void 0,kt++;void 0!==n;){var r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&Ct(n))try{n.c()}catch(n){e||(t=n,e=!0)}n=r}}if(kt=0,xt--,e)throw t}}var gt=void 0;var bt,wt=void 0,xt=0,kt=0,St=0;function Et(t){if(void 0!==gt){var e=t.n;if(void 0===e||e.t!==gt)return e={i:0,S:t,p:gt.s,n:void 0,t:gt,e:void 0,x:void 0,r:e},void 0!==gt.s&&(gt.s.n=e),gt.s=e,t.n=e,32&gt.f&&t.S(e),e;if(-1===e.i)return e.i=0,void 0!==e.n&&(e.n.p=e.p,void 0!==e.p&&(e.p.n=e.n),e.p=gt.s,e.n=void 0,gt.s.n=e,gt.s=e),e}}function $t(t){this.v=t,this.i=0,this.n=void 0,this.t=void 0}function Pt(t){return new $t(t)}function Ct(t){for(var e=t.s;void 0!==e;e=e.n)if(e.S.i!==e.i||!e.S.h()||e.S.i!==e.i)return!0;return!1}function jt(t){for(var e=t.s;void 0!==e;e=e.n){var n=e.S.n;if(void 0!==n&&(e.r=n),e.S.n=e,e.i=-1,void 0===e.n){t.s=e;break}}}function Ot(t){for(var e=t.s,n=void 0;void 0!==e;){var r=e.p;-1===e.i?(e.S.U(e),void 0!==r&&(r.n=e.n),void 0!==e.n&&(e.n.p=r)):n=e,e.S.n=e.r,void 0!==e.r&&(e.r=void 0),e=r}t.s=n}function Nt(t){$t.call(this,void 0),this.x=t,this.s=void 0,this.g=St-1,this.f=4}function Ut(t){return new Nt(t)}function Tt(t){var e=t.u;if(t.u=void 0,"function"==typeof e){xt++;var n=gt;gt=void 0;try{e()}catch(e){throw t.f&=-2,t.f|=8,Mt(t),e}finally{gt=n,mt()}}}function Mt(t){for(var e=t.s;void 0!==e;e=e.n)e.S.U(e);t.x=void 0,t.s=void 0,Tt(t)}function At(t){if(gt!==this)throw new Error("Out-of-order effect");Ot(this),gt=t,this.f&=-2,8&this.f&&Mt(this),mt()}function Ht(t){this.x=t,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function Wt(t){var e=new Ht(t);try{e.c()}catch(t){throw e.d(),t}return e.d.bind(e)}function Lt(t,n){e[t]=n.bind(null,e[t]||function(){})}function Rt(t){bt&&bt(),bt=t&&t.S()}function Dt(t){var e=this,n=t.data,r=function(t){return ut((function(){return Pt(t)}),[])}(n);r.value=n;var o=ut((function(){for(var t=e.__v;t=t.__;)if(t.__c){t.__c.__$f|=4;break}return e.__$u.c=function(){var t;i(o.peek())||3!==(null==(t=e.base)?void 0:t.nodeType)?(e.__$f|=1,e.setState({})):e.base.data=o.peek()},Ut((function(){var t=r.value.value;return 0===t?0:!0===t?"":t||""}))}),[]);return o.value}function Ft(t,e,n,r){var o=e in t&&void 0===t.ownerSVGElement,i=Pt(n);return{o:function(t,e){i.value=t,r=e},d:Wt((function(){var n=i.value.value;r[e]!==n&&(r[e]=n,o?t[e]=n:n?t.setAttribute(e,n):t.removeAttribute(e))}))}}$t.prototype.brand=yt,$t.prototype.h=function(){return!0},$t.prototype.S=function(t){this.t!==t&&void 0===t.e&&(t.x=this.t,void 0!==this.t&&(this.t.e=t),this.t=t)},$t.prototype.U=function(t){if(void 0!==this.t){var e=t.e,n=t.x;void 0!==e&&(e.x=n,t.e=void 0),void 0!==n&&(n.e=e,t.x=void 0),t===this.t&&(this.t=n)}},$t.prototype.subscribe=function(t){var e=this;return Wt((function(){var n=e.value,r=32&this.f;this.f&=-33;try{t(n)}finally{this.f|=r}}))},$t.prototype.valueOf=function(){return this.value},$t.prototype.toString=function(){return this.value+""},$t.prototype.toJSON=function(){return this.value},$t.prototype.peek=function(){return this.v},Object.defineProperty($t.prototype,"value",{get:function(){var t=Et(this);return void 0!==t&&(t.i=this.i),this.v},set:function(t){if(gt instanceof Nt&&function(){throw new Error("Computed cannot have side-effects")}(),t!==this.v){kt>100&&vt(),this.v=t,this.i++,St++,xt++;try{for(var e=this.t;void 0!==e;e=e.x)e.t.N()}finally{mt()}}}}),(Nt.prototype=new $t).h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===St)return!0;if(this.g=St,this.f|=1,this.i>0&&!Ct(this))return this.f&=-2,!0;var t=gt;try{jt(this),gt=this;var e=this.x();(16&this.f||this.v!==e||0===this.i)&&(this.v=e,this.f&=-17,this.i++)}catch(t){this.v=t,this.f|=16,this.i++}return gt=t,Ot(this),this.f&=-2,!0},Nt.prototype.S=function(t){if(void 0===this.t){this.f|=36;for(var e=this.s;void 0!==e;e=e.n)e.S.S(e)}$t.prototype.S.call(this,t)},Nt.prototype.U=function(t){if(void 0!==this.t&&($t.prototype.U.call(this,t),void 0===this.t)){this.f&=-33;for(var e=this.s;void 0!==e;e=e.n)e.S.U(e)}},Nt.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var t=this.t;void 0!==t;t=t.x)t.t.N()}},Nt.prototype.peek=function(){if(this.h()||vt(),16&this.f)throw this.v;return this.v},Object.defineProperty(Nt.prototype,"value",{get:function(){1&this.f&&vt();var t=Et(this);if(this.h(),void 0!==t&&(t.i=this.i),16&this.f)throw this.v;return this.v}}),Ht.prototype.c=function(){var t=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var e=this.x();"function"==typeof e&&(this.u=e)}finally{t()}},Ht.prototype.S=function(){1&this.f&&vt(),this.f|=1,this.f&=-9,Tt(this),jt(this),xt++;var t=gt;return gt=this,At.bind(this,t)},Ht.prototype.N=function(){2&this.f||(this.f|=2,this.o=wt,wt=this)},Ht.prototype.d=function(){this.f|=8,1&this.f||Mt(this)},Dt.displayName="_st",Object.defineProperties($t.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:Dt},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}}),Lt("__b",(function(t,e){if("string"==typeof e.type){var n,r=e.props;for(var o in r)if("children"!==o){var i=r[o];i instanceof $t&&(n||(e.__np=n={}),n[o]=i,r[o]=i.peek())}}t(e)})),Lt("__r",(function(t,e){Rt();var n,r=e.__c;r&&(r.__$f&=-2,void 0===(n=r.__$u)&&(r.__$u=n=function(t){var e;return Wt((function(){e=this})),e.c=function(){r.__$f|=1,r.setState({})},e}())),r,Rt(n),t(e)})),Lt("__e",(function(t,e,n,r){Rt(),void 0,t(e,n,r)})),Lt("diffed",(function(t,e){var n;if(Rt(),void 0,"string"==typeof e.type&&(n=e.__e)){var r=e.__np,o=e.props;if(r){var i=n.U;if(i)for(var u in i){var s=i[u];void 0===s||u in r||(s.d(),i[u]=void 0)}else n.U=i={};for(var c in r){var _=i[c],l=r[c];void 0===_?(_=Ft(n,c,l,o),i[c]=_):_.o(l,o)}}}t(e)})),Lt("unmount",(function(t,e){if("string"==typeof e.type){var n=e.__e;if(n){var r=n.U;if(r)for(var o in n.U=void 0,r){var i=r[o];i&&i.d()}}}else{var u=e.__c;if(u){var s=u.__$u;s&&(u.__$u=void 0,s.d())}}t(e)})),Lt("__h",(function(t,e,n,r){(r<3||9===r)&&(e.__$f|=2),t(e,n,r)})),w.prototype.shouldComponentUpdate=function(t,e){var n=this.__$u;if(!(n&&void 0!==n.s||4&this.__$f))return!0;if(3&this.__$f)return!0;for(var r in e)return!0;for(var o in t)if("__source"!==o&&t[o]!==this.props[o])return!0;for(var i in this.props)if(!(i in t))return!0;return!1};var qt=new WeakMap,It=new WeakMap,Vt=new WeakMap,zt=new WeakSet,Bt=new WeakMap,Gt=/^\$/,Jt=Object.getOwnPropertyDescriptor,Yt=!1,Kt=function(t){if(!ie(t))throw new Error("This object can't be observed.");return It.has(t)||It.set(t,Qt(t,ee)),It.get(t)},Xt=function(t,e){Yt=!0;var n=t[e];try{Yt=!1}catch(t){}return n},Qt=function(t,e){var n=new Proxy(t,e);return zt.add(n),n},Zt=function(){throw new Error("Don't mutate the signals directly.")},te=function(t){return function(e,n,r){var o;if(Yt)return Reflect.get(e,n,r);var i=t||"$"===n[0];if(!t&&i&&Array.isArray(e)){if("$"===n)return Vt.has(e)||Vt.set(e,Qt(e,ne)),Vt.get(e);i="$length"===n}qt.has(r)||qt.set(r,new Map);var u=qt.get(r),s=i?n.replace(Gt,""):n;if(u.has(s)||"function"!=typeof(null==(o=Jt(e,s))?void 0:o.get)){var c=Reflect.get(e,s,r);if(i&&"function"==typeof c)return;if("symbol"==typeof s&&re.has(s))return c;u.has(s)||(ie(c)&&(It.has(c)||It.set(c,Qt(c,ee)),c=It.get(c)),u.set(s,Pt(c)))}else u.set(s,Ut((function(){return Reflect.get(e,s,r)})));return i?u.get(s):u.get(s).value}},ee={get:te(!1),set:function(t,e,n,r){var o;if("function"==typeof(null==(o=Jt(t,e))?void 0:o.set))return Reflect.set(t,e,n,r);qt.has(r)||qt.set(r,new Map);var i=qt.get(r);if("$"===e[0]){n instanceof $t||Zt();var u=e.replace(Gt,"");return i.set(u,n),Reflect.set(t,u,n.peek(),r)}var s=n;ie(n)&&(It.has(n)||It.set(n,Qt(n,ee)),s=It.get(n));var c=!(e in t),_=Reflect.set(t,e,n,r);return i.has(e)?i.get(e).value=s:i.set(e,Pt(s)),c&&Bt.has(t)&&Bt.get(t).value++,Array.isArray(t)&&i.has("length")&&(i.get("length").value=t.length),_},deleteProperty:function(t,e){"$"===e[0]&&Zt();var n=qt.get(It.get(t)),r=Reflect.deleteProperty(t,e);return n&&n.has(e)&&(n.get(e).value=void 0),Bt.has(t)&&Bt.get(t).value++,r},ownKeys:function(t){return Bt.has(t)||Bt.set(t,Pt(0)),Bt._=Bt.get(t).value,Reflect.ownKeys(t)}},ne={get:te(!0),set:Zt,deleteProperty:Zt},re=new Set(Object.getOwnPropertyNames(Symbol).map((function(t){return Symbol[t]})).filter((function(t){return"symbol"==typeof t}))),oe=new Set([Object,Array]),ie=function(t){return"object"==typeof t&&null!==t&&(!("function"==typeof t.constructor&&t.constructor.name in globalThis&&globalThis[t.constructor.name]===t.constructor)||oe.has(t.constructor))&&!zt.has(t)};function ue(t){return this.getChildContext=()=>t.context,t.children}function se(t){const e=this,n=t._container;e.componentWillUnmount=function(){D(null,e._temp),e._temp=null,e._container=null},e._container&&e._container!==n&&e.componentWillUnmount(),t._vnode?(e._temp||(e._container=n,e._temp={nodeType:1,parentNode:n,childNodes:[],appendChild(t){this.childNodes.push(t),e._container.appendChild(t)},insertBefore(t){this.childNodes.push(t),e._container.appendChild(t)},removeChild(t){this.childNodes.splice(this.childNodes.indexOf(t)>>>1,1),e._container.removeChild(t)}}),D(m(ue,{context:e.context},t._vnode),e._temp)):e._temp&&e.componentWillUnmount()}const ce=t=>!!t&&"object"==typeof t&&!Array.isArray(t),_e=(t,e)=>{if(ce(t)&&ce(e))for(const n in e){const r=Object.getOwnPropertyDescriptor(e,n)?.get;"function"==typeof r?Object.defineProperty(t,n,{get:r}):ce(e[n])?(t[n]||Object.assign(t,{[n]:{}}),_e(t[n],e[n])):Object.assign(t,{[n]:e[n]})}},le=new Map,ae=new Map,fe=new Map,pe=new WeakMap,he=new WeakMap,de=new WeakMap,ve=(t,e)=>{if(!pe.has(t)){const n=new Proxy(t,ye);pe.set(t,n),he.set(n,e)}return pe.get(t)},ye={get:(t,e,n)=>{const r=he.get(n),o=Object.getOwnPropertyDescriptor(t,e)?.get;if(o){const e=je();if(e){const n=de.get(e)||de.set(e,new Map).get(e);return n.has(o)||n.set(o,Ut((()=>{Te(r),Oe(e);try{return o.call(t)}finally{Ne(),Me()}}))),n.get(o).value}}const i=Reflect.get(t,e,n);if(void 0===i&&n===le.get(r)){const o={};return Reflect.set(t,e,o,n),ve(o,r)}return"GeneratorFunction"===i?.constructor?.name?async(...t)=>{const e=je(),n=i(...t);let o,u;for(;;){Te(r),Oe(e);try{u=n.next(o)}finally{Ne(),Me()}try{o=await u.value}catch(t){n.throw(t)}if(u.done)break}return o}:"function"==typeof i?(...t)=>{Te(r);try{return i(...t)}finally{Me()}}:ce(i)?ve(i,r):i}},me="I acknowledge that using a private store means my plugin will inevitably break on the next store release.";function ge(t,{state:e={},...n}={},{lock:r=!1}={}){if(le.has(t)){if(r===me||fe.has(t)){const e=fe.get(t);if(!(r===me||!0!==r&&r===e))throw e?Error("Cannot unlock a private store with an invalid lock code"):Error("Cannot lock a public store")}else fe.set(t,r);const o=ae.get(t);_e(o,n),_e(o.state,e)}else{r!==me&&fe.set(t,r);const o={state:Kt(e),...n},i=new Proxy(o,ye);ae.set(t,o),le.set(t,i),he.set(i,t)}return le.get(t)}Object.entries((()=>{const t=document.querySelector('script[type="application/json"]#wp-interactivity-data');if(!t?.textContent)return{};try{const{state:e}=JSON.parse(t.textContent);if(ce(e))return e;throw Error("Parsed state is not an object")}catch(t){console.log(t)}return{}})()).forEach((([t,e])=>{ge(t,{state:e})}));const be=function(t,e){var n={__c:e="__cC"+l++,__:t,Consumer:function(t,e){return t.children(e)},Provider:function(t){var n,r;return this.getChildContext||(n=[],(r={})[e]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&n.some((function(t){t.__e=!0,S(t)}))},this.sub=function(t){n.push(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){n.splice(n.indexOf(t),1),e&&e.call(t)}}),t.children}};return n.Provider.__=n.Consumer.contextType=n}({}),we=new WeakMap,xe=()=>{throw new Error("Please use `data-wp-bind` to modify the attributes of an element.")},ke={get(t,e,n){const r=Reflect.get(t,e,n);return r&&"object"==typeof r?Se(r):r},set:xe,deleteProperty:xe},Se=t=>(we.has(t)||we.set(t,new Proxy(t,ke)),we.get(t)),Ee=[],$e=[],Pe=t=>je()?.context[t||$e.slice(-1)[0]],Ce=()=>{if(!je())throw Error("Cannot call `getElement()` outside getters and actions used by directives.");const{ref:t,attributes:e}=je();return Object.freeze({ref:t.current,attributes:Se(e)})},je=()=>Ee.slice(-1)[0],Oe=t=>{Ee.push(t)},Ne=()=>{Ee.pop()},Ue=()=>$e.slice(-1)[0],Te=t=>{$e.push(t)},Me=()=>{$e.pop()},Ae={},He={},We=(t,e,{priority:n=10}={})=>{Ae[t]=e,He[t]=n},Le=({scope:t})=>(e,...n)=>{let{value:r,namespace:o}=e;if("string"!=typeof r)throw new Error("The `value` prop should be a string path");const i="!"===r[0]&&!!(r=r.slice(1));Oe(t);const u=((t,e)=>{let n={...le.get(e),context:je().context[e]};return t.split(".").forEach((t=>n=n[t])),n})(r,o),s="function"==typeof u?u(...n):u;return Ne(),i?!s:s},Re=({directives:t,priorityLevels:[e,...n],element:r,originalProps:o,previousScope:i})=>{const u=it({}).current;u.evaluate=st(Le({scope:u}),[]),u.context=ct(be),u.ref=i?.ref||it(null),r=q(r,{ref:u.ref}),u.attributes=r.props;const s=n.length>0?(0,a.createElement)(Re,{directives:t,priorityLevels:n,element:r,originalProps:o,previousScope:u}):r,c={...o,children:s},_={directives:t,props:c,element:r,context:be,evaluate:u.evaluate};Oe(u);for(const t of e){const e=Ae[t]?.(_);void 0!==e&&(c.children=e)}return Ne(),c.children},De=e.vnode;e.vnode=t=>{if(t.props.__directives){const e=t.props,n=e.__directives;n.key&&(t.key=n.key.find((({suffix:t})=>"default"===t)).value),delete e.__directives;const r=(t=>{const e=Object.keys(t).reduce(((t,e)=>{if(Ae[e]){const n=He[e];(t[n]=t[n]||[]).push(e)}return t}),{});return Object.entries(e).sort((([t],[e])=>parseInt(t)-parseInt(e))).map((([,t])=>t))})(n);r.length>0&&(t.props={directives:n,priorityLevels:r,originalProps:e,type:t.type,element:m(t.type,e),top:!0},t.type=Re)}De&&De(t)};const Fe=t=>new Promise((e=>{const n=()=>{clearTimeout(r),window.cancelAnimationFrame(o),setTimeout((()=>{t(),e()}))},r=setTimeout(n,100),o=window.requestAnimationFrame(n)}));function qe(t){rt((()=>{let e=null,n=!1;return e=function(t,e){let n;const r=Wt((function(){return n=this.c.bind(this),this.x=t,this.c=e,t()}));return{flush:n,dispose:r}}(t,(async()=>{e&&!n&&(n=!0,await Fe(e.flush),n=!1)})),e.dispose}),[])}const Ie=t=>{const e=je(),n=Ue();return"GeneratorFunction"===t?.constructor?.name?async(...r)=>{const o=t(...r);let i,u;for(;;){Te(n),Oe(e);try{u=o.next(i)}finally{Me(),Ne()}try{i=await u.value}catch(t){o.throw(t)}if(u.done)break}return i}:(...r)=>{Te(n),Oe(e);try{return t(...r)}finally{Me(),Ne()}}};function Ve(t){qe(Ie(t))}function ze(t){rt(Ie(t),[])}function Be(t,e){rt(Ie(t),e)}function Ge(t,e){ot(Ie(t),e)}function Je(t,e){st(Ie(t),e)}function Ye(t,e){ut(Ie(t),e)}const Ke=t=>t&&"object"==typeof t&&!Array.isArray(t),Xe=(t,e,n)=>{for(const r in e)Ke(Xt(t,r))&&Ke(Xt(e,r))?Xe(t[`$${r}`].peek(),e[`$${r}`].peek(),n):(n||void 0===Xt(t,r))&&(t[`$${r}`]=e[`$${r}`])},Qe=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Ze=/\/\*[^]*?\*\/| +/g,tn=/\n+/g,en=t=>({directives:e,evaluate:n})=>{e[`on-${t}`].filter((({suffix:t})=>"default"!==t)).forEach((e=>{ze((()=>{const r=t=>n(e,t),o="window"===t?window:document;return o.addEventListener(e.suffix,r),()=>o.removeEventListener(e.suffix,r)}))}))};var nn=()=>{We("context",(({directives:{context:t},props:{children:e},context:n})=>{const{Provider:r}=n,o=ct(n),i=it(Kt({})),u=t.map((({value:t})=>t));return i.current=ut((()=>{const e=t.map((t=>Kt({[t.namespace]:t.value}))).reduceRight(Xe);return Xe(e,o),Xe(i.current,e,!0),i.current}),[o,...u]),(0,a.createElement)(r,{value:i.current},e)}),{priority:5}),We("body",(({props:{children:t}})=>function(t,e){const n=m(se,{_vnode:t,_container:e});return n.containerInfo=e,n}(t,document.body))),We("watch",(({directives:{watch:t},evaluate:e})=>{t.forEach((t=>{Ve((()=>e(t)))}))})),We("init",(({directives:{init:t},evaluate:e})=>{t.forEach((t=>{ze((()=>e(t)))}))})),We("on",(({directives:{on:t},element:e,evaluate:n})=>{t.filter((({suffix:t})=>"default"!==t)).forEach((t=>{e.props[`on${t.suffix}`]=e=>{n(t,e)}}))})),We("on-window",en("window")),We("on-document",en("document")),We("class",(({directives:{class:t},element:e,evaluate:n})=>{t.filter((({suffix:t})=>"default"!==t)).forEach((t=>{const r=t.suffix,o=n(t,{className:r}),i=e.props.class||"",u=new RegExp(`(^|\\s)${r}(\\s|$)`,"g");o?u.test(i)||(e.props.class=i?`${i} ${r}`:r):e.props.class=i.replace(u," ").trim(),ze((()=>{o?e.ref.current.classList.add(r):e.ref.current.classList.remove(r)}))}))})),We("style",(({directives:{style:t},element:e,evaluate:n})=>{t.filter((({suffix:t})=>"default"!==t)).forEach((t=>{const r=t.suffix,o=n(t,{key:r});e.props.style=e.props.style||{},"string"==typeof e.props.style&&(e.props.style=(t=>{const e=[{}];let n,r;for(;n=Qe.exec(t.replace(Ze,""));)n[4]?e.shift():n[3]?(r=n[3].replace(tn," ").trim(),e.unshift(e[0][r]=e[0][r]||{})):e[0][n[1]]=n[2].replace(tn," ").trim();return e[0]})(e.props.style)),o?e.props.style[r]=o:delete e.props.style[r],ze((()=>{o?e.ref.current.style[r]=o:e.ref.current.style.removeProperty(r)}))}))})),We("bind",(({directives:{bind:t},element:e,evaluate:n})=>{t.filter((({suffix:t})=>"default"!==t)).forEach((t=>{const r=t.suffix,o=n(t);e.props[r]=o,ze((()=>{const t=e.ref.current;if("width"!==r&&"height"!==r&&"href"!==r&&"list"!==r&&"form"!==r&&"tabIndex"!==r&&"download"!==r&&"rowSpan"!==r&&"colSpan"!==r&&"role"!==r&&r in t)try{return void(t[r]=null==o?"":o)}catch(t){}null==o||!1===o&&"-"!==r[4]?t.removeAttribute(r):t.setAttribute(r,o)}))}))})),We("ignore",(({element:{type:t,props:{innerHTML:e,...n}}})=>{const r=ut((()=>e),[]);return(0,a.createElement)(t,{dangerouslySetInnerHTML:{__html:r},...n})})),We("text",(({directives:{text:t},element:e,evaluate:n})=>{const r=t.find((({suffix:t})=>"default"===t));try{const t=n(r);e.props.children="object"==typeof t?null:t.toString()}catch(t){e.props.children=null}})),We("run",(({directives:{run:t},evaluate:e})=>{t.forEach((t=>e(t)))})),We("each",(({directives:{each:t,"each-key":e},context:n,element:r,evaluate:o})=>{if("template"!==r.type)return;const{Provider:i}=n,u=ct(n),[s]=t,{namespace:c,suffix:_}=s;return o(s).map((t=>{const n=Kt({}),o=Kt({[c]:{["default"===_?"item":_]:t}});Xe(o,u),Xe(n,o,!0);const s={...je(),context:n},l=e?Le({scope:s})(e[0]):t;return(0,a.createElement)(i,{value:n,key:l},r.props.content)}))}),{priority:20}),We("each-child",(()=>null))};const rn="wp",on=`data-${rn}-ignore`,un=`data-${rn}-interactive`,sn=`data-${rn}-`,cn=[],_n=()=>{var t;return null!==(t=cn[cn.length-1])&&void 0!==t?t:null},ln=new RegExp(`^data-${rn}-([a-z0-9]+(?:-[a-z0-9]+)*)(?:--([a-z0-9_-]+))?$`,"i"),an=/^([\w-_\/]+)::(.+)$/,fn=new WeakSet;function pn(t){const e=document.createTreeWalker(t,205);return function t(n){const{attributes:r,nodeType:o,localName:i}=n;if(3===o)return[n.data];if(4===o){const t=e.nextSibling();return n.replaceWith(new window.Text(n.nodeValue)),[n.nodeValue,t]}if(8===o||7===o){const t=e.nextSibling();return n.remove(),[null,t]}const u={},s=[],c=[];let _=!1,l=!1;for(let t=0;t<r.length;t++){const e=r[t].name;if(e[sn.length]&&e.slice(0,sn.length)===sn)if(e===on)_=!0;else{var a;let[n,o]=null!==(a=an.exec(r[t].value)?.slice(1))&&void 0!==a?a:[null,r[t].value];try{o=JSON.parse(o)}catch(t){}var f;if(e===un)l=!0,cn.push(null!==(f=o?.namespace)&&void 0!==f?f:null);else c.push([e,n,o])}else if("ref"===e)continue;u[e]=r[t].value}if(_&&!l)return[m(i,{...u,innerHTML:n.innerHTML,__directives:{ignore:!0}})];if(l&&fn.add(n),c.length&&(u.__directives=c.reduce(((t,[e,n,r])=>{const[,o,i="default"]=ln.exec(e);return t[o]||(t[o]=[]),t[o].push({namespace:null!=n?n:_n(),value:r,suffix:i}),t}),{})),"template"===i)u.content=[...n.content.childNodes].map((t=>pn(t)));else{let n=e.firstChild();if(n){for(;n;){const[r,o]=t(n);r&&s.push(r),n=o||e.nextSibling()}e.parentNode()}}return l&&cn.pop(),[m(i,u,s)]}(e.currentNode)}const hn=new WeakMap,dn=t=>(hn.has(t)||hn.set(t,((t,e)=>{const n=(e=[].concat(e))[e.length-1].nextSibling;function r(e,r){t.insertBefore(e,r||n)}return t.__k={nodeType:1,parentNode:t,firstChild:e[0],childNodes:e,insertBefore:r,appendChild:r,removeChild(e){t.removeChild(e)}}})(t.parentElement,t)),hn.get(t));document.addEventListener("DOMContentLoaded",(async()=>{nn(),await(async()=>{document.querySelectorAll(`[data-${rn}-interactive]`).forEach((t=>{if(!fn.has(t)){const e=dn(t);F(pn(t),e)}}))})()}))}();var o=r.Tm,i=r.az,u=r.Aj,s=r.XM,c=r.LO,_=r.fw,l=r.sb,a=r.D_,f=r.y7,p=r.sY,h=r.h,d=r.l2,v=r.I4,y=r.qp,m=r.d4,g=r.Dp,b=r.bt,w=r.Ye,x=r.sO,k=r.eJ,S=r.qo,E=r.$e;export{o as cloneElement,i as createElement,u as deepSignal,s as directive,c as directivePrefix,_ as getContext,l as getElement,a as getNamespace,f as getRegionRootFragment,p as render,h as store,d as toVdom,v as useCallback,y as useContext,m as useEffect,g as useInit,b as useLayoutEffect,w as useMemo,x as useRef,k as useState,S as useWatch,E as withScope};