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