mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 17:48:01 +01:00
f6df3fba16
Syncs `@wordpress/*` packages to the `wp-6.7` npm tag. Fixes #61906. Props peterwilsoncc, gziolo, kevin940726. Built from https://develop.svn.wordpress.org/trunk@59072 git-svn-id: http://core.svn.wordpress.org/trunk@58468 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2 lines
36 KiB
JavaScript
2 lines
36 KiB
JavaScript
/*! This file is auto-generated */
|
|
var e={d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{zj:()=>Yt,SD:()=>nt,V6:()=>rt,$K:()=>ot,vT:()=>Zt,jb:()=>Mn,yT:()=>st,M_:()=>tn,hb:()=>pt,vJ:()=>at,ip:()=>ct,Nf:()=>ft,Kr:()=>ht,li:()=>ue,J0:()=>oe,FH:()=>lt,v4:()=>_t});var n,r,o,i,s,u,_,l,c,a,f,p,h={},d=[],v=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,y=Array.isArray;function g(e,t){for(var n in t)e[n]=t[n];return e}function m(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function w(e,t,r){var o,i,s,u={};for(s in t)"key"==s?o=t[s]:"ref"==s?i=t[s]:u[s]=t[s];if(arguments.length>2&&(u.children=arguments.length>3?n.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(s in e.defaultProps)void 0===u[s]&&(u[s]=e.defaultProps[s]);return b(e,u,o,i,null)}function b(e,t,n,i,s){var u={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==s?++o:s,__i:-1,__u:0};return null==s&&null!=r.vnode&&r.vnode(u),u}function x(e){return e.children}function S(e,t){this.props=e,this.context=t}function k(e,t){if(null==t)return e.__?k(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?k(e):null}function E(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return E(e)}}function P(e){(!e.__d&&(e.__d=!0)&&s.push(e)&&!C.__r++||u!==r.debounceRendering)&&((u=r.debounceRendering)||_)(C)}function C(){var e,t,n,o,i,u,_,c;for(s.sort(l);e=s.shift();)e.__d&&(t=s.length,o=void 0,u=(i=(n=e).__v).__e,_=[],c=[],n.__P&&((o=g({},i)).__v=i.__v+1,r.vnode&&r.vnode(o),U(n.__P,o,i,n.__n,n.__P.namespaceURI,32&i.__u?[u]:null,_,null==u?k(i):u,!!(32&i.__u),c),o.__v=i.__v,o.__.__k[o.__i]=o,W(_,o,c),o.__e!=u&&E(o)),s.length>t&&s.sort(l));C.__r=0}function O(e,t,n,r,o,i,s,u,_,l,c){var a,f,p,v,y,g=r&&r.__k||d,m=t.length;for(n.__d=_,T(n,t,g),_=n.__d,a=0;a<m;a++)null!=(p=n.__k[a])&&(f=-1===p.__i?h:g[p.__i]||h,p.__i=a,U(e,p,f,o,i,s,u,_,l,c),v=p.__e,p.ref&&f.ref!=p.ref&&(f.ref&&L(f.ref,null,p),c.push(p.ref,p.__c||v,p)),null==y&&null!=v&&(y=v),65536&p.__u||f.__k===p.__k?_=$(p,_,e):"function"==typeof p.type&&void 0!==p.__d?_=p.__d:v&&(_=v.nextSibling),p.__d=void 0,p.__u&=-196609);n.__d=_,n.__e=y}function T(e,t,n){var r,o,i,s,u,_=t.length,l=n.length,c=l,a=0;for(e.__k=[],r=0;r<_;r++)null!=(o=t[r])&&"boolean"!=typeof o&&"function"!=typeof o?(s=r+a,(o=e.__k[r]="string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?b(null,o,null,null,null):y(o)?b(x,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?b(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=e,o.__b=e.__b+1,i=null,-1!==(u=o.__i=M(o,n,s,c))&&(c--,(i=n[u])&&(i.__u|=131072)),null==i||null===i.__v?(-1==u&&a--,"function"!=typeof o.type&&(o.__u|=65536)):u!==s&&(u==s-1?a--:u==s+1?a++:(u>s?a--:a++,o.__u|=65536))):o=e.__k[r]=null;if(c)for(r=0;r<l;r++)null!=(i=n[r])&&0==(131072&i.__u)&&(i.__e==e.__d&&(e.__d=k(i)),F(i,i))}function $(e,t,n){var r,o;if("function"==typeof e.type){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=$(r[o],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=k(e)),n.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function M(e,t,n,r){var o=e.key,i=e.type,s=n-1,u=n+1,_=t[n];if(null===_||_&&o==_.key&&i===_.type&&0==(131072&_.__u))return n;if(r>(null!=_&&0==(131072&_.__u)?1:0))for(;s>=0||u<t.length;){if(s>=0){if((_=t[s])&&0==(131072&_.__u)&&o==_.key&&i===_.type)return s;s--}if(u<t.length){if((_=t[u])&&0==(131072&_.__u)&&o==_.key&&i===_.type)return u;u++}}return-1}function N(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||v.test(t)?n:n+"px"}function j(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||N(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||N(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||"onFocusOut"===t||"onFocusIn"===t?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=c,e.addEventListener(t,i?f:a,i)):e.removeEventListener(t,i?f:a,i);else{if("http://www.w3.org/2000/svg"==o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function H(e){return function(t){if(this.l){var n=this.l[t.type+e];if(null==t.t)t.t=c++;else if(t.t<n.u)return;return n(r.event?r.event(t):t)}}}function U(e,t,n,o,i,s,u,_,l,c){var a,f,p,h,d,v,m,w,b,k,E,P,C,T,$,M,N=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(l=!!(32&n.__u),s=[_=t.__e=n.__e]),(a=r.__b)&&a(t);e:if("function"==typeof N)try{if(w=t.props,b="prototype"in N&&N.prototype.render,k=(a=N.contextType)&&o[a.__c],E=a?k?k.props.value:a.__:o,n.__c?m=(f=t.__c=n.__c).__=f.__E:(b?t.__c=f=new N(w,E):(t.__c=f=new S(w,E),f.constructor=N,f.render=D),k&&k.sub(f),f.props=w,f.state||(f.state={}),f.context=E,f.__n=o,p=f.__d=!0,f.__h=[],f._sb=[]),b&&null==f.__s&&(f.__s=f.state),b&&null!=N.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=g({},f.__s)),g(f.__s,N.getDerivedStateFromProps(w,f.__s))),h=f.props,d=f.state,f.__v=t,p)b&&null==N.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),b&&null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(b&&null==N.getDerivedStateFromProps&&w!==h&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(w,E),!f.__e&&(null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(w,f.__s,E)||t.__v===n.__v)){for(t.__v!==n.__v&&(f.props=w,f.state=f.__s,f.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some((function(e){e&&(e.__=t)})),P=0;P<f._sb.length;P++)f.__h.push(f._sb[P]);f._sb=[],f.__h.length&&u.push(f);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(w,f.__s,E),b&&null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(h,d,v)}))}if(f.context=E,f.props=w,f.__P=e,f.__e=!1,C=r.__r,T=0,b){for(f.state=f.__s,f.__d=!1,C&&C(t),a=f.render(f.props,f.state,f.context),$=0;$<f._sb.length;$++)f.__h.push(f._sb[$]);f._sb=[]}else do{f.__d=!1,C&&C(t),a=f.render(f.props,f.state,f.context),f.state=f.__s}while(f.__d&&++T<25);f.state=f.__s,null!=f.getChildContext&&(o=g(g({},o),f.getChildContext())),b&&!p&&null!=f.getSnapshotBeforeUpdate&&(v=f.getSnapshotBeforeUpdate(h,d)),O(e,y(M=null!=a&&a.type===x&&null==a.key?a.props.children:a)?M:[M],t,n,o,i,s,u,_,l,c),f.base=t.__e,t.__u&=-161,f.__h.length&&u.push(f),m&&(f.__E=f.__=null)}catch(e){if(t.__v=null,l||null!=s){for(t.__u|=l?160:32;_&&8===_.nodeType&&_.nextSibling;)_=_.nextSibling;s[s.indexOf(_)]=null,t.__e=_}else t.__e=n.__e,t.__k=n.__k;r.__e(e,t,n)}else null==s&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=A(n.__e,t,n,o,i,s,u,l,c);(a=r.diffed)&&a(t)}function W(e,t,n){t.__d=void 0;for(var o=0;o<n.length;o++)L(n[o],n[++o],n[++o]);r.__c&&r.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){r.__e(e,t.__v)}}))}function A(e,t,o,i,s,u,_,l,c){var a,f,p,d,v,g,w,b=o.props,x=t.props,S=t.type;if("svg"===S?s="http://www.w3.org/2000/svg":"math"===S?s="http://www.w3.org/1998/Math/MathML":s||(s="http://www.w3.org/1999/xhtml"),null!=u)for(a=0;a<u.length;a++)if((v=u[a])&&"setAttribute"in v==!!S&&(S?v.localName===S:3===v.nodeType)){e=v,u[a]=null;break}if(null==e){if(null===S)return document.createTextNode(x);e=document.createElementNS(s,S,x.is&&x),l&&(r.__m&&r.__m(t,u),l=!1),u=null}if(null===S)b===x||l&&e.data===x||(e.data=x);else{if(u=u&&n.call(e.childNodes),b=o.props||h,!l&&null!=u)for(b={},a=0;a<e.attributes.length;a++)b[(v=e.attributes[a]).name]=v.value;for(a in b)if(v=b[a],"children"==a);else if("dangerouslySetInnerHTML"==a)p=v;else if(!(a in x)){if("value"==a&&"defaultValue"in x||"checked"==a&&"defaultChecked"in x)continue;j(e,a,null,v,s)}for(a in x)v=x[a],"children"==a?d=v:"dangerouslySetInnerHTML"==a?f=v:"value"==a?g=v:"checked"==a?w=v:l&&"function"!=typeof v||b[a]===v||j(e,a,v,b[a],s);if(f)l||p&&(f.__html===p.__html||f.__html===e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(p&&(e.innerHTML=""),O(e,y(d)?d:[d],t,o,i,"foreignObject"===S?"http://www.w3.org/1999/xhtml":s,u,_,u?u[0]:o.__k&&k(o,0),l,c),null!=u)for(a=u.length;a--;)m(u[a]);l||(a="value","progress"===S&&null==g?e.removeAttribute("value"):void 0!==g&&(g!==e[a]||"progress"===S&&!g||"option"===S&&g!==b[a])&&j(e,a,g,b[a],s),a="checked",void 0!==w&&w!==e[a]&&j(e,a,w,b[a],s))}return e}function L(e,t,n){try{if("function"==typeof e){var o="function"==typeof e.__u;o&&e.__u(),o&&null==t||(e.__u=e(t))}else e.current=t}catch(e){r.__e(e,n)}}function F(e,t,n){var o,i;if(r.unmount&&r.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||L(o,null,t)),null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){r.__e(e,t)}o.base=o.__P=null}if(o=e.__k)for(i=0;i<o.length;i++)o[i]&&F(o[i],t,n||"function"!=typeof e.type);n||m(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function D(e,t,n){return this.constructor(e,n)}function R(e,t,o){var i,s,u,_;r.__&&r.__(e,t),s=(i="function"==typeof o)?null:o&&o.__k||t.__k,u=[],_=[],U(t,e=(!i&&o||t).__k=w(x,null,[e]),s||h,h,t.namespaceURI,!i&&o?[o]:s?null:t.firstChild?n.call(t.childNodes):null,u,!i&&o?o:s?s.__e:t.firstChild,i,_),W(u,e,_)}function I(e,t){R(e,t,I)}function V(e,t,r){var o,i,s,u,_=g({},e.props);for(s in e.type&&e.type.defaultProps&&(u=e.type.defaultProps),t)"key"==s?o=t[s]:"ref"==s?i=t[s]:_[s]=void 0===t[s]&&void 0!==u?u[s]:t[s];return arguments.length>2&&(_.children=arguments.length>3?n.call(arguments,2):r),b(e.type,_,o||e.key,i||e.ref,null)}n=d.slice,r={__e:function(e,t,n,r){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),s=o.__d),s)return o.__E=o}catch(t){e=t}throw e}},o=0,i=function(e){return null!=e&&null==e.constructor},S.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=g({},this.state),"function"==typeof e&&(e=e(g({},n),this.props)),e&&g(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),P(this))},S.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),P(this))},S.prototype.render=x,s=[],_="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,l=function(e,t){return e.__v.__b-t.__v.__b},C.__r=0,c=0,a=H(!1),f=H(!0),p=0;var B,z,J,K,q=0,G=[],Q=r,X=Q.__b,Y=Q.__r,Z=Q.diffed,ee=Q.__c,te=Q.unmount,ne=Q.__;function re(e,t){Q.__h&&Q.__h(z,e,q||t),q=0;var n=z.__H||(z.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function oe(e){return q=1,function(e,t,n){var r=re(B++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):ye(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=z,!z.u)){var o=function(e,t,n){if(!r.__c.__H)return!0;var o=r.__c.__H.__.filter((function(e){return!!e.__c}));if(o.every((function(e){return!e.__N})))return!i||i.call(this,e,t,n);var s=!1;return o.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(s=!0)}})),!(!s&&r.__c.props===e)&&(!i||i.call(this,e,t,n))};z.u=!0;var i=z.shouldComponentUpdate,s=z.componentWillUpdate;z.componentWillUpdate=function(e,t,n){if(this.__e){var r=i;i=void 0,o(e,t,n),i=r}s&&s.call(this,e,t,n)},z.shouldComponentUpdate=o}return r.__N||r.__}(ye,e)}function ie(e,t){var n=re(B++,3);!Q.__s&&ve(n.__H,t)&&(n.__=e,n.i=t,z.__H.__h.push(n))}function se(e,t){var n=re(B++,4);!Q.__s&&ve(n.__H,t)&&(n.__=e,n.i=t,z.__h.push(n))}function ue(e){return q=5,_e((function(){return{current:e}}),[])}function _e(e,t){var n=re(B++,7);return ve(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function le(e,t){return q=8,_e((function(){return e}),t)}function ce(e){var t=z.context[e.__c],n=re(B++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(z)),t.props.value):e.__}function ae(){for(var e;e=G.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(he),e.__H.__h.forEach(de),e.__H.__h=[]}catch(t){e.__H.__h=[],Q.__e(t,e.__v)}}Q.__b=function(e){z=null,X&&X(e)},Q.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ne&&ne(e,t)},Q.__r=function(e){Y&&Y(e),B=0;var t=(z=e.__c).__H;t&&(J===z?(t.__h=[],z.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.i=e.__N=void 0}))):(t.__h.forEach(he),t.__h.forEach(de),t.__h=[],B=0)),J=z},Q.diffed=function(e){Z&&Z(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==G.push(t)&&K===Q.requestAnimationFrame||((K=Q.requestAnimationFrame)||pe)(ae)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.i=void 0}))),J=z=null},Q.__c=function(e,t){t.some((function(e){try{e.__h.forEach(he),e.__h=e.__h.filter((function(e){return!e.__||de(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],Q.__e(n,e.__v)}})),ee&&ee(e,t)},Q.unmount=function(e){te&&te(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{he(e)}catch(e){t=e}})),n.__H=void 0,t&&Q.__e(t,n.__v))};var fe="function"==typeof requestAnimationFrame;function pe(e){var t,n=function(){clearTimeout(r),fe&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);fe&&(t=requestAnimationFrame(n))}function he(e){var t=z,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),z=t}function de(e){var t=z;e.__c=e.__(),z=t}function ve(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function ye(e,t){return"function"==typeof t?t(e):t}var ge=Symbol.for("preact-signals");function me(){if(ke>1)ke--;else{for(var e,t=!1;void 0!==Se;){var n=Se;for(Se=void 0,Ee++;void 0!==n;){var r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&$e(n))try{n.c()}catch(n){t||(e=n,t=!0)}n=r}}if(Ee=0,ke--,t)throw e}}function we(e){if(ke>0)return e();ke++;try{return e()}finally{me()}}var be=void 0;var xe,Se=void 0,ke=0,Ee=0,Pe=0;function Ce(e){if(void 0!==be){var t=e.n;if(void 0===t||t.t!==be)return t={i:0,S:e,p:be.s,n:void 0,t:be,e:void 0,x:void 0,r:t},void 0!==be.s&&(be.s.n=t),be.s=t,e.n=t,32&be.f&&e.S(t),t;if(-1===t.i)return t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=be.s,t.n=void 0,be.s.n=t,be.s=t),t}}function Oe(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}function Te(e){return new Oe(e)}function $e(e){for(var t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function Me(e){for(var t=e.s;void 0!==t;t=t.n){var n=t.S.n;if(void 0!==n&&(t.r=n),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function Ne(e){for(var t=e.s,n=void 0;void 0!==t;){var r=t.p;-1===t.i?(t.S.U(t),void 0!==r&&(r.n=t.n),void 0!==t.n&&(t.n.p=r)):n=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=r}e.s=n}function je(e){Oe.call(this,void 0),this.x=e,this.s=void 0,this.g=Pe-1,this.f=4}function He(e){return new je(e)}function Ue(e){var t=e.u;if(e.u=void 0,"function"==typeof t){ke++;var n=be;be=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,We(e),t}finally{be=n,me()}}}function We(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,Ue(e)}function Ae(e){if(be!==this)throw new Error("Out-of-order effect");Ne(this),be=e,this.f&=-2,8&this.f&&We(this),me()}function Le(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function Fe(e){var t=new Le(e);try{t.c()}catch(e){throw t.d(),e}return t.d.bind(t)}function De(e,t){r[e]=t.bind(null,r[e]||function(){})}function Re(e){xe&&xe(),xe=e&&e.S()}function Ie(e){var t=this,n=e.data,r=function(e){return _e((function(){return Te(e)}),[])}(n);r.value=n;var o=_e((function(){for(var e=t.__v;e=e.__;)if(e.__c){e.__c.__$f|=4;break}return t.__$u.c=function(){var e;i(o.peek())||3!==(null==(e=t.base)?void 0:e.nodeType)?(t.__$f|=1,t.setState({})):t.base.data=o.peek()},He((function(){var e=r.value.value;return 0===e?0:!0===e?"":e||""}))}),[]);return o.value}function Ve(e,t,n,r){var o=t in e&&void 0===e.ownerSVGElement,i=Te(n);return{o:function(e,t){i.value=e,r=t},d:Fe((function(){var n=i.value.value;r[t]!==n&&(r[t]=n,o?e[t]=n:n?e.setAttribute(t,n):e.removeAttribute(t))}))}}Oe.prototype.brand=ge,Oe.prototype.h=function(){return!0},Oe.prototype.S=function(e){this.t!==e&&void 0===e.e&&(e.x=this.t,void 0!==this.t&&(this.t.e=e),this.t=e)},Oe.prototype.U=function(e){if(void 0!==this.t){var t=e.e,n=e.x;void 0!==t&&(t.x=n,e.e=void 0),void 0!==n&&(n.e=t,e.x=void 0),e===this.t&&(this.t=n)}},Oe.prototype.subscribe=function(e){var t=this;return Fe((function(){var n=t.value,r=be;be=void 0;try{e(n)}finally{be=r}}))},Oe.prototype.valueOf=function(){return this.value},Oe.prototype.toString=function(){return this.value+""},Oe.prototype.toJSON=function(){return this.value},Oe.prototype.peek=function(){var e=be;be=void 0;try{return this.value}finally{be=e}},Object.defineProperty(Oe.prototype,"value",{get:function(){var e=Ce(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(Ee>100)throw new Error("Cycle detected");this.v=e,this.i++,Pe++,ke++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{me()}}}}),(je.prototype=new Oe).h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===Pe)return!0;if(this.g=Pe,this.f|=1,this.i>0&&!$e(this))return this.f&=-2,!0;var e=be;try{Me(this),be=this;var t=this.x();(16&this.f||this.v!==t||0===this.i)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return be=e,Ne(this),this.f&=-2,!0},je.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}Oe.prototype.S.call(this,e)},je.prototype.U=function(e){if(void 0!==this.t&&(Oe.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}},je.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;void 0!==e;e=e.x)e.t.N()}},Object.defineProperty(je.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=Ce(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),Le.prototype.c=function(){var e=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var t=this.x();"function"==typeof t&&(this.u=t)}finally{e()}},Le.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Ue(this),Me(this),ke++;var e=be;return be=this,Ae.bind(this,e)},Le.prototype.N=function(){2&this.f||(this.f|=2,this.o=Se,Se=this)},Le.prototype.d=function(){this.f|=8,1&this.f||We(this)},Ie.displayName="_st",Object.defineProperties(Oe.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:Ie},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}}),De("__b",(function(e,t){if("string"==typeof t.type){var n,r=t.props;for(var o in r)if("children"!==o){var i=r[o];i instanceof Oe&&(n||(t.__np=n={}),n[o]=i,r[o]=i.peek())}}e(t)})),De("__r",(function(e,t){Re();var n,r=t.__c;r&&(r.__$f&=-2,void 0===(n=r.__$u)&&(r.__$u=n=function(e){var t;return Fe((function(){t=this})),t.c=function(){r.__$f|=1,r.setState({})},t}())),r,Re(n),e(t)})),De("__e",(function(e,t,n,r){Re(),void 0,e(t,n,r)})),De("diffed",(function(e,t){var n;if(Re(),void 0,"string"==typeof t.type&&(n=t.__e)){var r=t.__np,o=t.props;if(r){var i=n.U;if(i)for(var s in i){var u=i[s];void 0===u||s in r||(u.d(),i[s]=void 0)}else n.U=i={};for(var _ in r){var l=i[_],c=r[_];void 0===l?(l=Ve(n,_,c,o),i[_]=l):l.o(c,o)}}}e(t)})),De("unmount",(function(e,t){if("string"==typeof t.type){var n=t.__e;if(n){var r=n.U;if(r)for(var o in n.U=void 0,r){var i=r[o];i&&i.d()}}}else{var s=t.__c;if(s){var u=s.__$u;u&&(s.__$u=void 0,u.d())}}e(t)})),De("__h",(function(e,t,n,r){(r<3||9===r)&&(t.__$f|=2),e(t,n,r)})),S.prototype.shouldComponentUpdate=function(e,t){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 t)return!0;for(var o in e)if("__source"!==o&&e[o]!==this.props[o])return!0;for(var i in this.props)if(!(i in e))return!0;return!1};const Be=[],ze=()=>Be.slice(-1)[0],Je=e=>{Be.push(e)},Ke=()=>{Be.pop()},qe=[],Ge=()=>qe.slice(-1)[0],Qe=e=>{qe.push(e)},Xe=()=>{qe.pop()},Ye=new WeakMap,Ze=()=>{throw new Error("Please use `data-wp-bind` to modify the attributes of an element.")},et={get(e,t,n){const r=Reflect.get(e,t,n);return r&&"object"==typeof r?tt(r):r},set:Ze,deleteProperty:Ze},tt=e=>(Ye.has(e)||Ye.set(e,new Proxy(e,et)),Ye.get(e)),nt=e=>Ge().context[e||ze()],rt=()=>{const e=Ge();const{ref:t,attributes:n}=e;return Object.freeze({ref:t.current,attributes:tt(n)})},ot=e=>Ge().serverContext[e||ze()],it=e=>new Promise((t=>{const n=()=>{clearTimeout(r),window.cancelAnimationFrame(o),setTimeout((()=>{e(),t()}))},r=setTimeout(n,100),o=window.requestAnimationFrame(n)})),st=()=>new Promise((e=>{setTimeout(e,0)}));function ut(e){ie((()=>{let t=null,n=!1;return t=function(e,t){let n=()=>{};const r=Fe((function(){return n=this.c.bind(this),this.x=e,this.c=t,e()}));return{flush:n,dispose:r}}(e,(async()=>{t&&!n&&(n=!0,await it(t.flush),n=!1)})),t.dispose}),[])}function _t(e){const t=Ge(),n=ze();return"GeneratorFunction"===e?.constructor?.name?async(...r)=>{const o=e(...r);let i,s;for(;;){Je(n),Qe(t);try{s=o.next(i)}finally{Xe(),Ke()}try{i=await s.value}catch(e){Je(n),Qe(t),o.throw(e)}finally{Xe(),Ke()}if(s.done)break}return i}:(...r)=>{Je(n),Qe(t);try{return e(...r)}finally{Ke(),Xe()}}}function lt(e){ut(_t(e))}function ct(e){ie(_t(e),[])}function at(e,t){ie(_t(e),t)}function ft(e,t){se(_t(e),t)}function pt(e,t){return le(_t(e),t)}function ht(e,t){return _e(_t(e),t)}new Set;const dt=e=>{0},vt=e=>Boolean(e&&"object"==typeof e&&e.constructor===Object),yt=new WeakMap,gt=new WeakMap,mt=new WeakMap,wt=new Set([Object,Array]),bt=(e,t,n)=>{if(!kt(t))throw Error("This object cannot be proxified.");if(!yt.has(t)){const r=new Proxy(t,n);yt.set(t,r),gt.set(r,t),mt.set(r,e)}return yt.get(t)},xt=e=>yt.get(e),St=e=>mt.get(e),kt=e=>"object"==typeof e&&null!==e&&(!mt.has(e)&&wt.has(e.constructor)),Et={};class Pt{constructor(e){this.owner=e,this.computedsByScope=new WeakMap}setValue(e){this.update({value:e})}setGetter(e){this.update({get:e})}getComputed(){const e=Ge()||Et;if(this.valueSignal||this.getterSignal||this.update({}),!this.computedsByScope.has(e)){const t=()=>{const e=this.getterSignal?.value;return e?e.call(this.owner):this.valueSignal?.value};Je(St(this.owner)),this.computedsByScope.set(e,He(_t(t))),Ke()}return this.computedsByScope.get(e)}update({get:e,value:t}){this.valueSignal?t===this.valueSignal.peek()&&e===this.getterSignal.peek()||we((()=>{this.valueSignal.value=t,this.getterSignal.value=e})):(this.valueSignal=Te(t),this.getterSignal=Te(e))}}const Ct=new Set(Object.getOwnPropertyNames(Symbol).map((e=>Symbol[e])).filter((e=>"symbol"==typeof e))),Ot=new WeakMap,Tt=(e,t)=>Ot.has(e)&&Ot.get(e).has(t),$t=new WeakSet,Mt=(e,t,n)=>{Ot.has(e)||Ot.set(e,new Map),t="number"==typeof t?`${t}`:t;const r=Ot.get(e);if(!r.has(t)){const o=St(e),i=new Pt(e);if(r.set(t,i),n){const{get:t,value:r}=n;if(t)i.setGetter(t);else{const t=$t.has(e);i.setValue(kt(r)?Ut(o,r,{readOnly:t}):r)}}}return r.get(t)},Nt=new WeakMap;let jt=!1;const Ht={get(e,t,n){if(jt||!e.hasOwnProperty(t)&&t in e||"symbol"==typeof t&&Ct.has(t))return Reflect.get(e,t,n);const r=Object.getOwnPropertyDescriptor(e,t),o=Mt(n,t,r).getComputed().value;if("function"==typeof o){const e=St(n);return(...t)=>{Je(e);try{return o.call(n,...t)}finally{Ke()}}}return o},set(e,t,n,r){if($t.has(r))return!1;Je(St(r));try{return Reflect.set(e,t,n,r)}finally{Ke()}},defineProperty(e,t,n){if($t.has(xt(e)))return!1;const r=!(t in e),o=Reflect.defineProperty(e,t,n);if(o){const o=xt(e),i=Mt(o,t),{get:s,value:u}=n;if(s)i.setGetter(s);else{const e=St(o);i.setValue(kt(u)?Ut(e,u):u)}if(r&&Nt.has(e)&&Nt.get(e).value++,Array.isArray(e)&&Ot.get(o)?.has("length")){Mt(o,"length").setValue(e.length)}}return o},deleteProperty(e,t){if($t.has(xt(e)))return!1;const n=Reflect.deleteProperty(e,t);if(n){Mt(xt(e),t).setValue(void 0),Nt.has(e)&&Nt.get(e).value++}return n},ownKeys:e=>(Nt.has(e)||Nt.set(e,Te(0)),Nt._=Nt.get(e).value,Reflect.ownKeys(e))},Ut=(e,t,n)=>{const r=bt(e,t,Ht);return n?.readOnly&&$t.add(r),r},Wt=(e,t,n=!0)=>{if(vt(e)&&vt(t)){let r=!1;for(const o in t){const i=!(o in e);r=r||i;const s=Object.getOwnPropertyDescriptor(t,o);if("function"==typeof s?.get||"function"==typeof s?.set){if(n||i){Object.defineProperty(e,o,{...s,configurable:!0,enumerable:!0});const t=xt(e);if(s?.get&&t&&Tt(t,o)){Mt(t,o).setGetter(s.get)}}}else if(vt(t[o]))i&&(e[o]={}),Wt(e[o],t[o],n);else if(n||i){Object.defineProperty(e,o,s);const t=xt(e);if(s?.value&&t&&Tt(t,o)){Mt(t,o).setValue(s.value)}}}r&&Nt.has(e)&&Nt.get(e).value++}},At=(e,t,n=!0)=>we((()=>{return Wt((r=e,gt.get(r)||e),t,n);var r})),Lt=new WeakSet,Ft={get:(e,t,n)=>{const r=Reflect.get(e,t),o=St(n);if(void 0===r&&Lt.has(n)){const n={};return Reflect.set(e,t,n),Dt(o,n,!1)}if("function"==typeof r){Je(o);const e=_t(r);return Ke(),e}return vt(r)&&kt(r)?Dt(o,r,!1):r}},Dt=(e,t,n=!0)=>{const r=bt(e,t,Ft);return r&&n&&Lt.add(r),r},Rt=new WeakMap,It=new WeakMap,Vt=new WeakSet,Bt=Reflect.getOwnPropertyDescriptor,zt={get:(e,t)=>{const n=It.get(e),r=e[t];return t in e?r:n[t]},set:(e,t,n)=>{const r=It.get(e);return(t in e||!(t in r)?e:r)[t]=n,!0},ownKeys:e=>[...new Set([...Object.keys(It.get(e)),...Object.keys(e)])],getOwnPropertyDescriptor:(e,t)=>Bt(e,t)||Bt(It.get(e),t)},Jt=(e,t={})=>{if(Vt.has(e))throw Error("This object cannot be proxified.");if(It.set(e,t),!Rt.has(e)){const t=new Proxy(e,zt);Rt.set(e,t),Vt.add(t)}return Rt.get(e)},Kt=new Map,qt=new Map,Gt=new Map,Qt=new Map,Xt=new Map,Yt=e=>Qt.get(e||ze())||{},Zt=e=>{const t=e||ze();return Xt.has(t)||Xt.set(t,Ut(t,{},{readOnly:!0})),Xt.get(t)},en="I acknowledge that using a private store means my plugin will inevitably break on the next store release.";function tn(e,{state:t={},...n}={},{lock:r=!1}={}){if(Kt.has(e)){if(r===en||Gt.has(e)){const t=Gt.get(e);if(!(r===en||!0!==r&&r===t))throw t?Error("Cannot unlock a private store with an invalid lock code"):Error("Cannot lock a public store")}else Gt.set(e,r);const o=qt.get(e);At(o,n),At(o.state,t)}else{r!==en&&Gt.set(e,r);const o={state:Ut(e,vt(t)?t:{}),...n},i=Dt(e,o);qt.set(e,o),Kt.set(e,i)}return Kt.get(e)}const nn=(e=document)=>{var t;const n=null!==(t=e.getElementById("wp-script-module-data-@wordpress/interactivity"))&&void 0!==t?t:e.getElementById("wp-interactivity-data");if(n?.textContent)try{return JSON.parse(n.textContent)}catch{}return{}},rn=e=>{vt(e?.state)&&Object.entries(e.state).forEach((([e,t])=>{const n=tn(e,{},{lock:en});At(n.state,t,!1),At(Zt(e),t)})),vt(e?.config)&&Object.entries(e.config).forEach((([e,t])=>{Qt.set(e,t)}))},on=nn();rn(on);const sn=function(e,t){var n={__c:t="__cC"+p++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some((function(e){e.__e=!0,P(e)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}({client:{},server:{}}),un={},_n={},ln=(e,t,{priority:n=10}={})=>{un[e]=t,_n[e]=n},cn=({scope:e})=>(t,...n)=>{let{value:r,namespace:o}=t;if("string"!=typeof r)throw new Error("The `value` prop should be a string path");const i="!"===r[0]&&!!(r=r.slice(1));Qe(e);const s=((e,t)=>{if(!t)return void dt();let n=Kt.get(t);void 0===n&&(n=tn(t,void 0,{lock:en}));const r={...n,context:Ge().context[t]};try{return e.split(".").reduce(((e,t)=>e[t]),r)}catch(e){}})(r,o),u="function"==typeof s?s(...n):s;return Xe(),i?!u:u},an=({directives:e,priorityLevels:[t,...n],element:r,originalProps:o,previousScope:i})=>{const s=ue({}).current;s.evaluate=le(cn({scope:s}),[]);const{client:u,server:_}=ce(sn);s.context=u,s.serverContext=_,s.ref=i?.ref||ue(null),r=V(r,{ref:s.ref}),s.attributes=r.props;const l=n.length>0?w(an,{directives:e,priorityLevels:n,element:r,originalProps:o,previousScope:s}):r,c={...o,children:l},a={directives:e,props:c,element:r,context:sn,evaluate:s.evaluate};Qe(s);for(const e of t){const t=un[e]?.(a);void 0!==t&&(c.children=t)}return Xe(),c.children},fn=r.vnode;function pn(e){return vt(e)?Object.fromEntries(Object.entries(e).map((([e,t])=>[e,pn(t)]))):Array.isArray(e)?e.map((e=>pn(e))):e}r.vnode=e=>{if(e.props.__directives){const t=e.props,n=t.__directives;n.key&&(e.key=n.key.find((({suffix:e})=>"default"===e)).value),delete t.__directives;const r=(e=>{const t=Object.keys(e).reduce(((e,t)=>{if(un[t]){const n=_n[t];(e[n]=e[n]||[]).push(t)}return e}),{});return Object.entries(t).sort((([e],[t])=>parseInt(e)-parseInt(t))).map((([,e])=>e))})(n);r.length>0&&(e.props={directives:n,priorityLevels:r,originalProps:t,type:e.type,element:w(e.type,t),top:!0},e.type=an)}fn&&fn(e)};const hn=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,dn=/\/\*[^]*?\*\/| +/g,vn=/\n+/g,yn=e=>({directives:t,evaluate:n})=>{t[`on-${e}`].filter((({suffix:e})=>"default"!==e)).forEach((t=>{const r=t.suffix.split("--",1)[0];ct((()=>{const o=e=>n(t,e),i="window"===e?window:document;return i.addEventListener(r,o),()=>i.removeEventListener(r,o)}))}))},gn=e=>({directives:t,evaluate:n})=>{t[`on-async-${e}`].filter((({suffix:e})=>"default"!==e)).forEach((t=>{const r=t.suffix.split("--",1)[0];ct((()=>{const o=async e=>{await st(),n(t,e)},i="window"===e?window:document;return i.addEventListener(r,o,{passive:!0}),()=>i.removeEventListener(r,o)}))}))},mn="wp",wn=`data-${mn}-ignore`,bn=`data-${mn}-interactive`,xn=`data-${mn}-`,Sn=[],kn=new RegExp(`^data-${mn}-([a-z0-9]+(?:-[a-z0-9]+)*)(?:--([a-z0-9_-]+))?$`,"i"),En=/^([\w_\/-]+)::(.+)$/,Pn=new WeakSet;function Cn(e){const t=document.createTreeWalker(e,205);return function e(n){const{nodeType:r}=n;if(3===r)return[n.data];if(4===r){var o;const e=t.nextSibling();return n.replaceWith(new window.Text(null!==(o=n.nodeValue)&&void 0!==o?o:"")),[n.nodeValue,e]}if(8===r||7===r){const e=t.nextSibling();return n.remove(),[null,e]}const i=n,{attributes:s}=i,u=i.localName,_={},l=[],c=[];let a=!1,f=!1;for(let e=0;e<s.length;e++){const t=s[e].name,n=s[e].value;if(t[xn.length]&&t.slice(0,xn.length)===xn)if(t===wn)a=!0;else{var p,h;const e=En.exec(n),r=null!==(p=e?.[1])&&void 0!==p?p:null;let o=null!==(h=e?.[2])&&void 0!==h?h:n;try{const e=JSON.parse(o);d=e,o=Boolean(d&&"object"==typeof d&&d.constructor===Object)?e:o}catch{}if(t===bn){f=!0;const e="string"==typeof o?o:"string"==typeof o?.namespace?o.namespace:null;Sn.push(e)}else c.push([t,r,o])}else if("ref"===t)continue;_[t]=n}var d;if(a&&!f)return[w(u,{..._,innerHTML:i.innerHTML,__directives:{ignore:!0}})];if(f&&Pn.add(i),c.length&&(_.__directives=c.reduce(((e,[t,n,r])=>{const o=kn.exec(t);if(null===o)return dt(),e;const i=o[1]||"",s=o[2]||"default";var u;return e[i]=e[i]||[],e[i].push({namespace:null!=n?n:null!==(u=Sn[Sn.length-1])&&void 0!==u?u:null,value:r,suffix:s}),e}),{})),"template"===u)_.content=[...i.content.childNodes].map((e=>Cn(e)));else{let n=t.firstChild();if(n){for(;n;){const[r,o]=e(n);r&&l.push(r),n=o||t.nextSibling()}t.parentNode()}}return f&&Sn.pop(),[w(u,_,l)]}(t.currentNode)}const On=new WeakMap,Tn=e=>{if(!e.parentElement)throw Error("The passed region should be an element with a parent.");return On.has(e)||On.set(e,((e,t)=>{const n=(t=[].concat(t))[t.length-1].nextSibling;function r(t,r){e.insertBefore(t,r||n)}return e.__k={nodeType:1,parentNode:e,firstChild:t[0],childNodes:t,insertBefore:r,appendChild:r,removeChild(t){e.removeChild(t)}}})(e.parentElement,e)),On.get(e)},$n=new WeakMap,Mn=e=>{if("I acknowledge that using private APIs means my theme or plugin will inevitably break in the next version of WordPress."===e)return{directivePrefix:mn,getRegionRootFragment:Tn,initialVdom:$n,toVdom:Cn,directive:ln,getNamespace:ze,h:w,cloneElement:V,render:R,proxifyState:Ut,parseServerData:nn,populateServerData:rn,batch:we};throw new Error("Forbidden access.")};ln("context",(({directives:{context:e},props:{children:t},context:n})=>{const{Provider:r}=n,o=e.find((({suffix:e})=>"default"===e)),{client:i,server:s}=ce(n),u=o.namespace,_=ue(Ut(u,{})),l=ue(Ut(u,{},{readOnly:!0}));return w(r,{value:_e((()=>{const e={client:{...i},server:{...s}};if(o){const{namespace:t,value:n}=o;vt(n)||dt(),At(_.current,pn(n),!1),At(l.current,pn(n)),e.client[t]=Jt(_.current,i[t]),e.server[t]=Jt(l.current,s[t])}return e}),[o,i,s])},t)}),{priority:5}),ln("watch",(({directives:{watch:e},evaluate:t})=>{e.forEach((e=>{lt((()=>t(e)))}))})),ln("init",(({directives:{init:e},evaluate:t})=>{e.forEach((e=>{ct((()=>t(e)))}))})),ln("on",(({directives:{on:e},element:t,evaluate:n})=>{const r=new Map;e.filter((({suffix:e})=>"default"!==e)).forEach((e=>{const t=e.suffix.split("--")[0];r.has(t)||r.set(t,new Set),r.get(t).add(e)})),r.forEach(((e,r)=>{const o=t.props[`on${r}`];t.props[`on${r}`]=t=>{e.forEach((e=>{o&&o(t),n(e,t)}))}}))})),ln("on-async",(({directives:{"on-async":e},element:t,evaluate:n})=>{const r=new Map;e.filter((({suffix:e})=>"default"!==e)).forEach((e=>{const t=e.suffix.split("--")[0];r.has(t)||r.set(t,new Set),r.get(t).add(e)})),r.forEach(((e,r)=>{const o=t.props[`on${r}`];t.props[`on${r}`]=t=>{o&&o(t),e.forEach((async e=>{await st(),n(e,t)}))}}))})),ln("on-window",yn("window")),ln("on-document",yn("document")),ln("on-async-window",gn("window")),ln("on-async-document",gn("document")),ln("class",(({directives:{class:e},element:t,evaluate:n})=>{e.filter((({suffix:e})=>"default"!==e)).forEach((e=>{const r=e.suffix,o=n(e),i=t.props.class||"",s=new RegExp(`(^|\\s)${r}(\\s|$)`,"g");o?s.test(i)||(t.props.class=i?`${i} ${r}`:r):t.props.class=i.replace(s," ").trim(),ct((()=>{o?t.ref.current.classList.add(r):t.ref.current.classList.remove(r)}))}))})),ln("style",(({directives:{style:e},element:t,evaluate:n})=>{e.filter((({suffix:e})=>"default"!==e)).forEach((e=>{const r=e.suffix,o=n(e);t.props.style=t.props.style||{},"string"==typeof t.props.style&&(t.props.style=(e=>{const t=[{}];let n,r;for(;n=hn.exec(e.replace(dn,""));)n[4]?t.shift():n[3]?(r=n[3].replace(vn," ").trim(),t.unshift(t[0][r]=t[0][r]||{})):t[0][n[1]]=n[2].replace(vn," ").trim();return t[0]})(t.props.style)),o?t.props.style[r]=o:delete t.props.style[r],ct((()=>{o?t.ref.current.style[r]=o:t.ref.current.style.removeProperty(r)}))}))})),ln("bind",(({directives:{bind:e},element:t,evaluate:n})=>{e.filter((({suffix:e})=>"default"!==e)).forEach((e=>{const r=e.suffix,o=n(e);t.props[r]=o,ct((()=>{const e=t.ref.current;if("style"!==r){if("width"!==r&&"height"!==r&&"href"!==r&&"list"!==r&&"form"!==r&&"tabIndex"!==r&&"download"!==r&&"rowSpan"!==r&&"colSpan"!==r&&"role"!==r&&r in e)try{return void(e[r]=null==o?"":o)}catch(e){}null==o||!1===o&&"-"!==r[4]?e.removeAttribute(r):e.setAttribute(r,o)}else"string"==typeof o&&(e.style.cssText=o)}))}))})),ln("ignore",(({element:{type:e,props:{innerHTML:t,...n}}})=>w(e,{dangerouslySetInnerHTML:{__html:_e((()=>t),[])},...n}))),ln("text",(({directives:{text:e},element:t,evaluate:n})=>{const r=e.find((({suffix:e})=>"default"===e));if(r)try{const e=n(r);t.props.children="object"==typeof e?null:e.toString()}catch(e){t.props.children=null}else t.props.children=null})),ln("run",(({directives:{run:e},evaluate:t})=>{e.forEach((e=>t(e)))})),ln("each",(({directives:{each:e,"each-key":t},context:n,element:r,evaluate:o})=>{if("template"!==r.type)return;const{Provider:i}=n,s=ce(n),[u]=e,{namespace:_,suffix:l}=u;return o(u).map((e=>{const n="default"===l?"item":l.replace(/^-+|-+$/g,"").toLowerCase().replace(/-([a-z])/g,(function(e,t){return t.toUpperCase()})),o=Jt(Ut(_,{}),s.client[_]),u={client:{...s.client,[_]:o},server:{...s.server}};u.client[_][n]=e;const c={...Ge(),context:u.client,serverContext:u.server},a=t?cn({scope:c})(t[0]):e;return w(i,{value:u,key:a},r.props.content)}))}),{priority:20}),ln("each-child",(()=>null),{priority:1}),(async()=>{const e=document.querySelectorAll(`[data-${mn}-interactive]`);for(const t of e)if(!Pn.has(t)){await st();const e=Tn(t),n=Cn(t);$n.set(t,n),await st(),I(n,e)}})();var Nn=t.zj,jn=t.SD,Hn=t.V6,Un=t.$K,Wn=t.vT,An=t.jb,Ln=t.yT,Fn=t.M_,Dn=t.hb,Rn=t.vJ,In=t.ip,Vn=t.Nf,Bn=t.Kr,zn=t.li,Jn=t.J0,Kn=t.FH,qn=t.v4;export{Nn as getConfig,jn as getContext,Hn as getElement,Un as getServerContext,Wn as getServerState,An as privateApis,Ln as splitTask,Fn as store,Dn as useCallback,Rn as useEffect,In as useInit,Vn as useLayoutEffect,Bn as useMemo,zn as useRef,Jn as useState,Kn as useWatch,qn as withScope}; |