Current File : /home/resuelf/www/wp-content/plugins/gutenberg/build/interactivity/index.min.js
var e={d:function(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:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},t={};e.d(t,{az:function(){return d},Aj:function(){return Re},XM:function(){return At},fw:function(){return wt},sb:function(){return bt},c4:function(){return Zt},tL:function(){return Xt},h:function(){return _t},qp:function(){return ne},d4:function(){return Z},Ye:function(){return te}});var n,r,o,i,s,l,u,c,_={},a=[],f=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function p(e,t){for(var n in t)e[n]=t[n];return e}function h(e){var t=e.parentNode;t&&t.removeChild(e)}function d(e,t,r){var o,i,s,l={};for(s in t)"key"==s?o=t[s]:"ref"==s?i=t[s]:l[s]=t[s];if(arguments.length>2&&(l.children=arguments.length>3?n.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(s in e.defaultProps)void 0===l[s]&&(l[s]=e.defaultProps[s]);return v(e,l,o,i,null)}function v(e,t,n,i,s){var l={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==s?++o:s};return null==s&&null!=r.vnode&&r.vnode(l),l}function y(e){return e.children}function m(e,t){this.props=e,this.context=t}function g(e,t){if(null==t)return e.__?g(e.__,e.__.__k.indexOf(e)+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?g(e):null}function w(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 w(e)}}function b(e){(!e.__d&&(e.__d=!0)&&i.push(e)&&!x.__r++||s!==r.debounceRendering)&&((s=r.debounceRendering)||l)(x)}function x(){var e,t,n,r,o,s,l,c;for(i.sort(u);e=i.shift();)e.__d&&(t=i.length,r=void 0,o=void 0,l=(s=(n=e).__v).__e,(c=n.__P)&&(r=[],(o=p({},s)).__v=s.__v+1,T(c,s,o,n.__n,void 0!==c.ownerSVGElement,null!=s.__h?[l]:null,r,null==l?g(s):l,s.__h),M(r,s),s.__e!=l&&w(s)),i.length>t&&i.sort(u));x.__r=0}function k(e,t,n,r,o,i,s,l,u,c){var f,p,h,d,m,w,b,x=r&&r.__k||a,k=x.length;for(n.__k=[],f=0;f<t.length;f++)if(null!=(d=n.__k[f]=null==(d=t[f])||"boolean"==typeof d||"function"==typeof d?null:"string"==typeof d||"number"==typeof d||"bigint"==typeof d?v(null,d,null,null,d):Array.isArray(d)?v(y,{children:d},null,null,null):d.__b>0?v(d.type,d.props,d.key,d.ref?d.ref:null,d.__v):d)){if(d.__=n,d.__b=n.__b+1,null===(h=x[f])||h&&d.key==h.key&&d.type===h.type)x[f]=void 0;else for(p=0;p<k;p++){if((h=x[p])&&d.key==h.key&&d.type===h.type){x[p]=void 0;break}h=null}T(e,d,h=h||_,o,i,s,l,u,c),m=d.__e,(p=d.ref)&&h.ref!=p&&(b||(b=[]),h.ref&&b.push(h.ref,null,d),b.push(p,d.__c||m,d)),null!=m?(null==w&&(w=m),"function"==typeof d.type&&d.__k===h.__k?d.__d=u=S(d,u,e):u=E(e,d,h,x,m,u),"function"==typeof n.type&&(n.__d=u)):u&&h.__e==u&&u.parentNode!=e&&(u=g(h))}for(n.__e=w,f=k;f--;)null!=x[f]&&("function"==typeof n.type&&null!=x[f].__e&&x[f].__e==n.__d&&(n.__d=P(r).nextSibling),U(x[f],x[f]));if(b)for(f=0;f<b.length;f++)H(b[f],b[++f],b[++f])}function S(e,t,n){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,t="function"==typeof r.type?S(r,t,n):E(n,r,r,o,r.__e,t));return t}function E(e,t,n,r,o,i){var s,l,u;if(void 0!==t.__d)s=t.__d,t.__d=void 0;else if(null==n||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),s=null;else{for(l=i,u=0;(l=l.nextSibling)&&u<r.length;u+=1)if(l==o)break e;e.insertBefore(o,i),s=i}return void 0!==s?s:o.nextSibling}function P(e){var t,n,r;if(null==e.type||"string"==typeof e.type)return e.__e;if(e.__k)for(t=e.__k.length-1;t>=0;t--)if((n=e.__k[t])&&(r=P(n)))return r;return null}function C(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||f.test(t)?n:n+"px"}function $(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||C(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||C(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?N:A,i):e.removeEventListener(t,i?N:A,i);else if("dangerouslySetInnerHTML"!==t){if(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&&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,n))}}function A(e){return this.l[e.type+!1](r.event?r.event(e):e)}function N(e){return this.l[e.type+!0](r.event?r.event(e):e)}function T(e,t,n,o,i,s,l,u,c){var _,a,f,h,d,v,g,w,b,x,S,E,P,C,$,A=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(c=n.__h,u=t.__e=n.__e,t.__h=null,s=[u]),(_=r.__b)&&_(t);try{e:if("function"==typeof A){if(w=t.props,b=(_=A.contextType)&&o[_.__c],x=_?b?b.props.value:_.__:o,n.__c?g=(a=t.__c=n.__c).__=a.__E:("prototype"in A&&A.prototype.render?t.__c=a=new A(w,x):(t.__c=a=new m(w,x),a.constructor=A,a.render=j),b&&b.sub(a),a.props=w,a.state||(a.state={}),a.context=x,a.__n=o,f=a.__d=!0,a.__h=[],a._sb=[]),null==a.__s&&(a.__s=a.state),null!=A.getDerivedStateFromProps&&(a.__s==a.state&&(a.__s=p({},a.__s)),p(a.__s,A.getDerivedStateFromProps(w,a.__s))),h=a.props,d=a.state,a.__v=t,f)null==A.getDerivedStateFromProps&&null!=a.componentWillMount&&a.componentWillMount(),null!=a.componentDidMount&&a.__h.push(a.componentDidMount);else{if(null==A.getDerivedStateFromProps&&w!==h&&null!=a.componentWillReceiveProps&&a.componentWillReceiveProps(w,x),!a.__e&&null!=a.shouldComponentUpdate&&!1===a.shouldComponentUpdate(w,a.__s,x)||t.__v===n.__v){for(t.__v!==n.__v&&(a.props=w,a.state=a.__s,a.__d=!1),a.__e=!1,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),S=0;S<a._sb.length;S++)a.__h.push(a._sb[S]);a._sb=[],a.__h.length&&l.push(a);break e}null!=a.componentWillUpdate&&a.componentWillUpdate(w,a.__s,x),null!=a.componentDidUpdate&&a.__h.push((function(){a.componentDidUpdate(h,d,v)}))}if(a.context=x,a.props=w,a.__P=e,E=r.__r,P=0,"prototype"in A&&A.prototype.render){for(a.state=a.__s,a.__d=!1,E&&E(t),_=a.render(a.props,a.state,a.context),C=0;C<a._sb.length;C++)a.__h.push(a._sb[C]);a._sb=[]}else do{a.__d=!1,E&&E(t),_=a.render(a.props,a.state,a.context),a.state=a.__s}while(a.__d&&++P<25);a.state=a.__s,null!=a.getChildContext&&(o=p(p({},o),a.getChildContext())),f||null==a.getSnapshotBeforeUpdate||(v=a.getSnapshotBeforeUpdate(h,d)),$=null!=_&&_.type===y&&null==_.key?_.props.children:_,k(e,Array.isArray($)?$:[$],t,n,o,i,s,l,u,c),a.base=t.__e,t.__h=null,a.__h.length&&l.push(a),g&&(a.__E=a.__=null),a.__e=!1}else null==s&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=O(n.__e,t,n,o,i,s,l,c);(_=r.diffed)&&_(t)}catch(e){t.__v=null,(c||null!=s)&&(t.__e=u,t.__h=!!c,s[s.indexOf(u)]=null),r.__e(e,t,n)}}function M(e,t){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 O(e,t,r,o,i,s,l,u){var c,a,f,p=r.props,d=t.props,v=t.type,y=0;if("svg"===v&&(i=!0),null!=s)for(;y<s.length;y++)if((c=s[y])&&"setAttribute"in c==!!v&&(v?c.localName===v:3===c.nodeType)){e=c,s[y]=null;break}if(null==e){if(null===v)return document.createTextNode(d);e=i?document.createElementNS("http://www.w3.org/2000/svg",v):document.createElement(v,d.is&&d),s=null,u=!1}if(null===v)p===d||u&&e.data===d||(e.data=d);else{if(s=s&&n.call(e.childNodes),a=(p=r.props||_).dangerouslySetInnerHTML,f=d.dangerouslySetInnerHTML,!u){if(null!=s)for(p={},y=0;y<e.attributes.length;y++)p[e.attributes[y].name]=e.attributes[y].value;(f||a)&&(f&&(a&&f.__html==a.__html||f.__html===e.innerHTML)||(e.innerHTML=f&&f.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||$(e,i,null,n[i],r);for(i in t)o&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||$(e,i,t[i],n[i],r)}(e,d,p,i,u),f)t.__k=[];else if(y=t.props.children,k(e,Array.isArray(y)?y:[y],t,r,o,i&&"foreignObject"!==v,s,l,s?s[0]:r.__k&&g(r,0),u),null!=s)for(y=s.length;y--;)null!=s[y]&&h(s[y]);u||("value"in d&&void 0!==(y=d.value)&&(y!==e.value||"progress"===v&&!y||"option"===v&&y!==p.value)&&$(e,"value",y,p.value,!1),"checked"in d&&void 0!==(y=d.checked)&&y!==e.checked&&$(e,"checked",y,p.checked,!1))}return e}function H(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){r.__e(e,n)}}function U(e,t,n){var o,i;if(r.unmount&&r.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||H(o,null,t)),null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){r.__e(e,t)}o.base=o.__P=null,e.__c=void 0}if(o=e.__k)for(i=0;i<o.length;i++)o[i]&&U(o[i],t,n||"function"!=typeof e.type);n||null==e.__e||h(e.__e),e.__=e.__e=e.__d=void 0}function j(e,t,n){return this.constructor(e,n)}function W(e,t,o){var i,s,l;r.__&&r.__(e,t),s=(i="function"==typeof o)?null:o&&o.__k||t.__k,l=[],T(t,e=(!i&&o||t).__k=d(y,null,[e]),s||_,_,void 0!==t.ownerSVGElement,!i&&o?[o]:s?null:t.firstChild?n.call(t.childNodes):null,l,!i&&o?o:s?s.__e:t.firstChild,i),M(l,e)}function L(e,t){W(e,t,L)}function D(e,t){var n={__c:t="__cC"+c++,__: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.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some((function(e){e.__e=!0,b(e)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}n=a.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,m.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=p({},this.state),"function"==typeof e&&(e=e(p({},n),this.props)),e&&p(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),b(this))},m.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),b(this))},m.prototype.render=y,i=[],l="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,u=function(e,t){return e.__v.__b-t.__v.__b},x.__r=0,c=0;var F,R,q,V,I=0,z=[],B=[],G=r.__b,J=r.__r,K=r.diffed,X=r.__c,Y=r.unmount;function Q(e,t){r.__h&&r.__h(R,e,I||t),I=0;var n=R.__H||(R.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:B}),n.__[e]}function Z(e,t){var n=Q(F++,3);!r.__s&&ue(n.__H,t)&&(n.__=e,n.i=t,R.__H.__h.push(n))}function ee(e){return I=5,te((function(){return{current:e}}),[])}function te(e,t){var n=Q(F++,7);return ue(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function ne(e){var t=R.context[e.__c],n=Q(F++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(R)),t.props.value):e.__}function re(){for(var e;e=z.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(se),e.__H.__h.forEach(le),e.__H.__h=[]}catch(t){e.__H.__h=[],r.__e(t,e.__v)}}r.__b=function(e){R=null,G&&G(e)},r.__r=function(e){J&&J(e),F=0;var t=(R=e.__c).__H;t&&(q===R?(t.__h=[],R.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=B,e.__N=e.i=void 0}))):(t.__h.forEach(se),t.__h.forEach(le),t.__h=[])),q=R},r.diffed=function(e){K&&K(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==z.push(t)&&V===r.requestAnimationFrame||((V=r.requestAnimationFrame)||ie)(re)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==B&&(e.__=e.__V),e.i=void 0,e.__V=B}))),q=R=null},r.__c=function(e,t){t.some((function(e){try{e.__h.forEach(se),e.__h=e.__h.filter((function(e){return!e.__||le(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],r.__e(n,e.__v)}})),X&&X(e,t)},r.unmount=function(e){Y&&Y(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{se(e)}catch(e){t=e}})),n.__H=void 0,t&&r.__e(t,n.__v))};var oe="function"==typeof requestAnimationFrame;function ie(e){var t,n=function(){clearTimeout(r),oe&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);oe&&(t=requestAnimationFrame(n))}function se(e){var t=R,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),R=t}function le(e){var t=R;e.__c=e.__(),R=t}function ue(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function ce(){throw new Error("Cycle detected")}function _e(){if(he>1)he--;else{for(var e,t=!1;void 0!==pe;){var n=pe;for(pe=void 0,de++;void 0!==n;){var r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&we(n))try{n.c()}catch(n){t||(e=n,t=!0)}n=r}}if(de=0,he--,t)throw e}}var ae,fe=void 0,pe=void 0,he=0,de=0,ve=0;function ye(e){if(void 0!==fe){var t=e.n;if(void 0===t||t.t!==fe)return t={i:0,S:e,p:fe.s,n:void 0,t:fe,e:void 0,x:void 0,r:t},void 0!==fe.s&&(fe.s.n=t),fe.s=t,e.n=t,32&fe.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=fe.s,t.n=void 0,fe.s.n=t,fe.s=t),t}}function me(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}function ge(e){return new me(e)}function we(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 be(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 xe(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 ke(e){me.call(this,void 0),this.x=e,this.s=void 0,this.g=ve-1,this.f=4}function Se(e){return new ke(e)}function Ee(e){var t=e.u;if(e.u=void 0,"function"==typeof t){he++;var n=fe;fe=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,Pe(e),t}finally{fe=n,_e()}}}function Pe(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,Ee(e)}function Ce(e){if(fe!==this)throw new Error("Out-of-order effect");xe(this),fe=e,this.f&=-2,8&this.f&&Pe(this),_e()}function $e(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function Ae(e){var t=new $e(e);try{t.c()}catch(e){throw t.d(),e}return t.d.bind(t)}function Ne(e,t){r[e]=t.bind(null,r[e]||function(){})}function Te(e){ae&&ae(),ae=e&&e.S()}function Me(e){var t=this,n=e.data,r=function(e){return te((function(){return ge(e)}),[])}(n);r.value=n;var o=te((function(){for(var e=t.__v;e=e.__;)if(e.__c){e.__c.__$f|=4;break}return t.__$u.c=function(){t.base.data=o.peek()},Se((function(){var e=r.value.value;return 0===e?0:!0===e?"":e||""}))}),[]);return o.value}function Oe(e,t,n,r){var o=t in e&&void 0===e.ownerSVGElement,i=ge(n);return{o:function(e,t){i.value=e,r=t},d:Ae((function(){var n=i.value.value;r[t]!==n&&(r[t]=n,o?e[t]=n:n?e.setAttribute(t,n):e.removeAttribute(t))}))}}me.prototype.h=function(){return!0},me.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)},me.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)}},me.prototype.subscribe=function(e){var t=this;return Ae((function(){var n=t.value,r=32&this.f;this.f&=-33;try{e(n)}finally{this.f|=r}}))},me.prototype.valueOf=function(){return this.value},me.prototype.toString=function(){return this.value+""},me.prototype.toJSON=function(){return this.value},me.prototype.peek=function(){return this.v},Object.defineProperty(me.prototype,"value",{get:function(){var e=ye(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(fe instanceof ke&&function(){throw new Error("Computed cannot have side-effects")}(),e!==this.v){de>100&&ce(),this.v=e,this.i++,ve++,he++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{_e()}}}}),(ke.prototype=new me).h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===ve)return!0;if(this.g=ve,this.f|=1,this.i>0&&!we(this))return this.f&=-2,!0;var e=fe;try{be(this),fe=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 fe=e,xe(this),this.f&=-2,!0},ke.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)}me.prototype.S.call(this,e)},ke.prototype.U=function(e){if(void 0!==this.t&&(me.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)}},ke.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;void 0!==e;e=e.x)e.t.N()}},ke.prototype.peek=function(){if(this.h()||ce(),16&this.f)throw this.v;return this.v},Object.defineProperty(ke.prototype,"value",{get:function(){1&this.f&&ce();var e=ye(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),$e.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()}},$e.prototype.S=function(){1&this.f&&ce(),this.f|=1,this.f&=-9,Ee(this),be(this),he++;var e=fe;return fe=this,Ce.bind(this,e)},$e.prototype.N=function(){2&this.f||(this.f|=2,this.o=pe,pe=this)},$e.prototype.d=function(){this.f|=8,1&this.f||Pe(this)},Me.displayName="_st",Object.defineProperties(me.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:Me},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}}),Ne("__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 me&&(n||(t.__np=n={}),n[o]=i,r[o]=i.peek())}}e(t)})),Ne("__r",(function(e,t){Te();var n,r=t.__c;r&&(r.__$f&=-2,void 0===(n=r.__$u)&&(r.__$u=n=function(e){var t;return Ae((function(){t=this})),t.c=function(){r.__$f|=1,r.setState({})},t}())),Te(n),e(t)})),Ne("__e",(function(e,t,n,r){Te(),e(t,n,r)})),Ne("diffed",(function(e,t){var n;if(Te(),"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 l=i[s];void 0===l||s in r||(l.d(),i[s]=void 0)}else n.U=i={};for(var u in r){var c=i[u],_=r[u];void 0===c?(c=Oe(n,u,_,o),i[u]=c):c.o(_,o)}}}e(t)})),Ne("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 l=s.__$u;l&&(s.__$u=void 0,l.d())}}e(t)})),Ne("__h",(function(e,t,n,r){r<3&&(t.__$f|=2),e(t,n,r)})),m.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};var He=new WeakMap,Ue=new WeakMap,je=new WeakMap,We=new WeakSet,Le=new WeakMap,De=/^\$/,Fe=!1,Re=function(e){if(!Xe(e))throw new Error("This object can't be observed.");return Ue.has(e)||Ue.set(e,Ve(e,Be)),Ue.get(e)},qe=function(e,t){Fe=!0;var n=e[t];try{Fe=!1}catch(e){}return n},Ve=function(e,t){var n=new Proxy(e,t);return We.add(n),n},Ie=function(){throw new Error("Don't mutate the signals directly.")},ze=function(e){return function(t,n,r){var o;if(Fe)return Reflect.get(t,n,r);var i=e||"$"===n[0];if(!e&&i&&Array.isArray(t)){if("$"===n)return je.has(t)||je.set(t,Ve(t,Ge)),je.get(t);i="$length"===n}He.has(r)||He.set(r,new Map);var s=He.get(r),l=i?n.replace(De,""):n;if(s.has(l)||"function"!=typeof(null==(o=Object.getOwnPropertyDescriptor(t,l))?void 0:o.get)){var u=Reflect.get(t,l,r);if(i&&"function"==typeof u)return;if("symbol"==typeof l&&Je.has(l))return u;s.has(l)||(Xe(u)&&(Ue.has(u)||Ue.set(u,Ve(u,Be)),u=Ue.get(u)),s.set(l,ge(u)))}else s.set(l,Se((function(){return Reflect.get(t,l,r)})));return i?s.get(l):s.get(l).value}},Be={get:ze(!1),set:function(e,t,n,r){He.has(r)||He.set(r,new Map);var o=He.get(r);if("$"===t[0]){n instanceof me||Ie();var i=t.replace(De,"");return o.set(i,n),Reflect.set(e,i,n.peek(),r)}var s=n;Xe(n)&&(Ue.has(n)||Ue.set(n,Ve(n,Be)),s=Ue.get(n));var l=!(t in e),u=Reflect.set(e,t,n,r);return o.has(t)?o.get(t).value=s:o.set(t,ge(s)),l&&Le.has(e)&&Le.get(e).value++,Array.isArray(e)&&o.has("length")&&(o.get("length").value=e.length),u},deleteProperty:function(e,t){"$"===t[0]&&Ie();var n=He.get(Ue.get(e)),r=Reflect.deleteProperty(e,t);return n&&n.has(t)&&(n.get(t).value=void 0),Le.has(e)&&Le.get(e).value++,r},ownKeys:function(e){return Le.has(e)||Le.set(e,ge(0)),Le._=Le.get(e).value,Reflect.ownKeys(e)}},Ge={get:ze(!0),set:Ie,deleteProperty:Ie},Je=new Set(Object.getOwnPropertyNames(Symbol).map((function(e){return Symbol[e]})).filter((function(e){return"symbol"==typeof e}))),Ke=new Set([Object,Array]),Xe=function(e){return"object"==typeof e&&null!==e&&(!("function"==typeof e.constructor&&e.constructor.name in globalThis&&globalThis[e.constructor.name]===e.constructor)||Ke.has(e.constructor))&&!We.has(e)};function Ye(e){return this.getChildContext=()=>e.context,e.children}function Qe(e){const t=this,n=e._container;t.componentWillUnmount=function(){W(null,t._temp),t._temp=null,t._container=null},t._container&&t._container!==n&&t.componentWillUnmount(),e._vnode?(t._temp||(t._container=n,t._temp={nodeType:1,parentNode:n,childNodes:[],appendChild(e){this.childNodes.push(e),t._container.appendChild(e)},insertBefore(e){this.childNodes.push(e),t._container.appendChild(e)},removeChild(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t._container.removeChild(e)}}),W(d(Ye,{context:t.context},e._vnode),t._temp)):t._temp&&t.componentWillUnmount()}const Ze=e=>!!e&&"object"==typeof e&&!Array.isArray(e),et=(e,t)=>{if(Ze(e)&&Ze(t))for(const n in t){const r=Object.getOwnPropertyDescriptor(t,n)?.get;"function"==typeof r?Object.defineProperty(e,n,{get:r}):Ze(t[n])?(e[n]||Object.assign(e,{[n]:{}}),et(e[n],t[n])):Object.assign(e,{[n]:t[n]})}},tt=new Map,nt=new Map,rt=new Map,ot=new WeakMap,it=new WeakMap,st=new WeakMap,lt=(e,t)=>{if(!ot.has(e)){const n=new Proxy(e,ut);ot.set(e,n),it.set(n,t)}return ot.get(e)},ut={get:(e,t,n)=>{const r=it.get(n),o=Object.getOwnPropertyDescriptor(e,t)?.get;if(o){const t=xt();if(t){const n=st.get(t)||st.set(t,new Map).get(t);return n.has(o)||n.set(o,Se((()=>{Et(r),kt(t);try{return o.call(e)}finally{St(),Pt()}}))),n.get(o).value}}const i=Reflect.get(e,t,n);if(void 0===i&&n===tt.get(r)){const o={};return Reflect.set(e,t,o,n),lt(o,r)}return"GeneratorFunction"===i?.constructor?.name?async(...e)=>{const t=xt(),n=i(...e);let o,s;for(;;){Et(r),kt(t);try{s=n.next(o)}finally{St(),Pt()}try{o=await s.value}catch(e){n.throw(e)}if(s.done)break}return o}:"function"==typeof i?(...e)=>{Et(r);try{return i(...e)}finally{Pt()}}:Ze(i)?lt(i,r):i}},ct="I acknowledge that using a private store means my plugin will inevitably break on the next store release.";function _t(e,{state:t={},...n}={},{lock:r=!1}={}){if(tt.has(e)){if(r===ct||rt.has(e)){const t=rt.get(e);if(r!==ct&&(!0===r||r!==t))throw t?Error("Cannot unlock a private store with an invalid lock code"):Error("Cannot lock a public store")}else rt.set(e,r);const o=nt.get(e);et(o,n),et(o.state,t)}else{r!==ct&&rt.set(e,r);const o={state:Re(t),...n},i=new Proxy(o,ut);nt.set(e,o),tt.set(e,i),it.set(i,e)}return tt.get(e)}Object.entries((()=>{const e=document.querySelector('script[type="application/json"]#wp-interactivity-initial-state');if(!e?.textContent)return{};try{const t=JSON.parse(e.textContent);if(Ze(t))return t;throw Error("Parsed state is not an object")}catch(e){console.log(e)}return{}})()).forEach((([e,t])=>{_t(e,{state:t})}));var at=0;function ft(e,t,n,o,i,s){var l,u,c={};for(u in t)"ref"==u?l=t[u]:c[u]=t[u];var _={type:e,props:c,key:n,ref:l,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--at,__source:i,__self:s};if("function"==typeof e&&(l=e.defaultProps))for(u in l)void 0===c[u]&&(c[u]=l[u]);return r.vnode&&r.vnode(_),_}const pt=D({}),ht=new WeakMap,dt=()=>{throw new Error("Please use `data-wp-bind` to modify the attributes of an element.")},vt={get(e,t,n){const r=Reflect.get(e,t,n);return r&&"object"==typeof r?yt(r):r},set:dt,deleteProperty:dt},yt=e=>(ht.has(e)||ht.set(e,new Proxy(e,vt)),ht.get(e)),mt=[],gt=[],wt=e=>xt()?.context[e||gt.slice(-1)[0]],bt=()=>{if(!xt())throw Error("Cannot call `getElement()` outside getters and actions used by directives.");const{ref:e,state:t,props:n}=xt();return Object.freeze({ref:e.current,state:t,props:yt(n)})},xt=()=>mt.slice(-1)[0],kt=e=>{mt.push(e)},St=()=>{mt.pop()},Et=e=>{gt.push(e)},Pt=()=>{gt.pop()},Ct={},$t={},At=(e,t,{priority:n=10}={})=>{Ct[e]=t,$t[e]=n},Nt=({directives:e,priorityLevels:[t,...r],element:o,originalProps:i,previousScope:s})=>{const l=ee({}).current;var u;l.evaluate=(u=(({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));kt(e);const s=((e,t)=>{let n={...tt.get(t),context:xt().context[t]};return e.split(".").forEach((e=>n=n[e])),n})(r,o),l="function"==typeof s?s(...n):s;return St(),i?!l:l})({scope:l}),I=8,te((function(){return u}),[])),l.context=ne(pt),l.ref=s?.ref||ee(null),l.state=s?.state||ee(Re({})).current,o=function(e,t,r){var o,i,s,l=p({},e.props);for(s in t)"key"==s?o=t[s]:"ref"==s?i=t[s]:l[s]=t[s];return arguments.length>2&&(l.children=arguments.length>3?n.call(arguments,2):r),v(e.type,l,o||e.key,i||e.ref,null)}(o,{ref:l.ref}),l.props=o.props;const c=r.length>0?ft(Nt,{directives:e,priorityLevels:r,element:o,originalProps:i,previousScope:l}):o,_={...i,children:c},a={directives:e,props:_,element:o,context:pt,evaluate:l.evaluate};kt(l);for(const e of t){const t=Ct[e]?.(a);void 0!==t&&(_.children=t)}return St(),_.children},Tt=r.vnode;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(Ct[t]){const n=$t[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:d(e.type,t),top:!0},e.type=Nt)}Tt&&Tt(e)};const Mt=D(),Ot=({slot:e,children:t})=>{const n=ne(Mt);return Z((()=>{if(e)return n.value={...n.value,[e]:t},()=>{n.value={...n.value,[e]:null}}}),[n,e,t]),e?null:t},Ht=({children:e})=>ft(Mt.Provider,{value:ge({}),children:e}),Ut=({name:e,children:t})=>ne(Mt).value[e]||t,jt="wp",Wt=`data-${jt}-ignore`,Lt=`data-${jt}-interactive`,Dt=`data-${jt}-`,Ft=[],Rt=new RegExp(`^data-${jt}-([a-z0-9]+(?:-[a-z0-9]+)*)(?:--([a-z0-9_-]+))?$`,"i"),qt=/^([\w-_\/]+)::(.+)$/,Vt=new WeakSet;function It(e){const t=document.createTreeWalker(e,205);return function e(n){const{attributes:r,nodeType:o}=n;if(3===o)return[n.data];if(4===o){const e=t.nextSibling();return n.replaceWith(new window.Text(n.nodeValue)),[n.nodeValue,e]}if(8===o||7===o){const e=t.nextSibling();return n.remove(),[null,e]}const i={},s=[],l=[];let u=!1,c=!1;for(let e=0;e<r.length;e++){const t=r[e].name;if(t[Dt.length]&&t.slice(0,Dt.length)===Dt)if(t===Wt)u=!0;else{let[n,o]=qt.exec(r[e].value)?.slice(1)??[null,r[e].value];try{o=JSON.parse(o)}catch(e){}t===Lt?(c=!0,Ft.push(o?.namespace??null)):l.push([t,n,o])}else if("ref"===t)continue;i[t]=r[e].value}if(u&&!c)return[d(n.localName,{...i,innerHTML:n.innerHTML,__directives:{ignore:!0}})];c&&Vt.add(n),l.length&&(i.__directives=l.reduce(((e,[t,n,r])=>{const[,o,i="default"]=Rt.exec(t);return e[o]||(e[o]=[]),e[o].push({namespace:n??Ft[Ft.length-1]??null,value:r,suffix:i}),e}),{}));let _=t.firstChild();if(_){for(;_;){const[n,r]=e(_);n&&s.push(n),_=r||t.nextSibling()}t.parentNode()}return c&&Ft.pop(),[d(n.localName,i,s)]}(t.currentNode)}const zt=new Map,Bt=new WeakMap,Gt=e=>(Bt.has(e)||Bt.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)),Bt.get(e)),Jt=e=>{const t=new URL(e,window.location);return t.pathname+t.search},Kt=e=>{const t={},n=`data-${jt}-navigation-id`;e.querySelectorAll(`[${n}]`).forEach((e=>{const r=e.getAttribute(n);t[r]=It(e)}));const r=e.querySelector("title")?.innerText;return{regions:t,title:r}},Xt=(e,t={})=>{e=Jt(e),!t.force&&zt.has(e)||zt.set(e,(async(e,{html:t})=>{try{if(!t){const n=await window.fetch(e);if(200!==n.status)return!1;t=await n.text()}const n=(new window.DOMParser).parseFromString(t,"text/html");return Kt(n)}catch(e){return!1}})(e,t))},Yt=e=>{const t=`data-${jt}-navigation-id`;document.querySelectorAll(`[${t}]`).forEach((n=>{const r=n.getAttribute(t),o=Gt(n);W(e.regions[r],o)})),e.title&&(document.title=e.title)};let Qt="";const Zt=async(e,t={})=>{const n=Jt(e);Qt=e,Xt(n,t);const r=new Promise((e=>setTimeout(e,t.timeout??1e4))),o=await Promise.race([zt.get(n),r]);Qt===e&&(o?(Yt(o),window.history[t.replace?"replaceState":"pushState"]({},"",e)):(window.location.assign(e),await new Promise((()=>{}))))};window.addEventListener("popstate",(async()=>{const e=Jt(window.location),t=zt.has(e)&&await zt.get(e);t?Yt(t):window.location.reload()}));const en=e=>e&&"object"==typeof e&&!Array.isArray(e),tn=(e,t,n)=>{for(const r in t)en(qe(e,r))&&en(qe(t,r))?tn(e[`$${r}`].peek(),t[`$${r}`].peek(),n):(n||void 0===qe(e,r))&&(e[`$${r}`]=t[`$${r}`])};var nn=()=>{At("context",(({directives:{context:e},props:{children:t},context:n})=>{const{Provider:r}=n,o=ne(n),i=ee(Re({})),s=e.map((({value:e})=>e));return i.current=te((()=>{const t=e.map((e=>Re({[e.namespace]:e.value}))).reduceRight(tn);return tn(t,o),tn(i.current,t,!0),i.current}),[o,...s]),ft(r,{value:i.current,children:t})}),{priority:5}),At("body",(({props:{children:e}})=>function(e,t){const n=d(Qe,{_vnode:e,_container:t});return n.containerInfo=t,n}(e,document.body))),At("watch",(({directives:{watch:e},evaluate:t})=>{e.forEach((e=>{var n;n=()=>t(e),Z((()=>{let e=null,t=!1;return e=function(e,t){let n;const r=Ae((function(){return n=this.c.bind(this),this.x=e,this.c=t,e()}));return{flush:n,dispose:r}}(n,(async()=>{e&&!t&&(t=!0,await(e=>new Promise((t=>{const n=()=>{clearTimeout(r),window.cancelAnimationFrame(o),setTimeout((()=>{e(),t()}))},r=setTimeout(n,100),o=window.requestAnimationFrame(n)})))(e.flush),t=!1)})),e.dispose}),[])}))})),At("init",(({directives:{init:e},evaluate:t})=>{e.forEach((e=>{Z((()=>t(e)),[])}))})),At("on",(({directives:{on:e},element:t,evaluate:n})=>{e.forEach((e=>{t.props[`on${e.suffix}`]=t=>{n(e,t)}}))})),At("class",(({directives:{class:e},element:t,evaluate:n})=>{e.filter((({suffix:e})=>"default"!==e)).forEach((e=>{const r=e.suffix,o=n(e,{className:r}),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(),Z((()=>{o?t.ref.current.classList.add(r):t.ref.current.classList.remove(r)}),[])}))}));const e=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,t=/\/\*[^]*?\*\/|  +/g,n=/\n+/g;At("style",(({directives:{style:r},element:o,evaluate:i})=>{r.filter((({suffix:e})=>"default"!==e)).forEach((r=>{const s=r.suffix,l=i(r,{key:s});o.props.style=o.props.style||{},"string"==typeof o.props.style&&(o.props.style=(r=>{const o=[{}];let i,s;for(;i=e.exec(r.replace(t,""));)i[4]?o.shift():i[3]?(s=i[3].replace(n," ").trim(),o.unshift(o[0][s]=o[0][s]||{})):o[0][i[1]]=i[2].replace(n," ").trim();return o[0]})(o.props.style)),l?o.props.style[s]=l:delete o.props.style[s],Z((()=>{l?o.ref.current.style[s]=l:o.ref.current.style.removeProperty(s)}),[])}))})),At("bind",(({directives:{bind:e},element:t,evaluate:n})=>{e.filter((({suffix:e})=>"default"!==e)).forEach((e=>{const o=e.suffix,i=n(e);t.props[o]=i,function(e,t){var n=Q(F++,4);!r.__s&&ue(n.__H,t)&&(n.__=e,n.i=t,R.__h.push(n))}((()=>{"role"===o&&null==i&&t.ref.current.removeAttribute(o)}),[o,i]),Z((()=>{const e=t.ref.current;if("width"!==o&&"height"!==o&&"href"!==o&&"list"!==o&&"form"!==o&&"tabIndex"!==o&&"download"!==o&&"rowSpan"!==o&&"colSpan"!==o&&"role"!==o&&o in e)try{return void(e[o]=null==i?"":i)}catch(e){}null==i||!1===i&&"-"!==o[4]?e.removeAttribute(o):e.setAttribute(o,i)}),[])}))})),At("navigation-link",(({directives:{"navigation-link":e},props:{href:t},element:n})=>{const{value:r}=e.find((({suffix:e})=>"default"===e));Z((()=>{r?.prefetch})),!1!==r&&(n.props.onclick=async e=>{e.preventDefault(),await Zt(t),"smooth"===r?.scroll?window.scrollTo({top:0,left:0,behavior:"smooth"}):!1!==r?.scroll&&window.scrollTo(0,0)})})),At("ignore",(({element:{type:e,props:{innerHTML:t,...n}}})=>ft(e,{dangerouslySetInnerHTML:{__html:te((()=>t),[])},...n}))),At("text",(({directives:{text:e},element:t,evaluate:n})=>{const r=e.find((({suffix:e})=>"default"===e));t.props.children=n(r)})),At("slot",(({directives:{slot:e},props:{children:t},element:n})=>{const{value:r}=e.find((({suffix:e})=>"default"===e)),o="string"==typeof r?r:r.name,i=r.position||"children";return"before"===i?ft(y,{children:[ft(Ut,{name:o}),t]}):"after"===i?ft(y,{children:[t,ft(Ut,{name:o})]}):"replace"===i?ft(Ut,{name:o,children:t}):void("children"===i&&(n.props.children=ft(Ut,{name:o,children:n.props.children})))}),{priority:4}),At("fill",(({directives:{fill:e},props:{children:t},evaluate:n})=>{const r=n(e.find((({suffix:e})=>"default"===e)));return ft(Ot,{slot:r,children:t})}),{priority:4}),At("slot-provider",(({props:{children:e}})=>ft(Ht,{children:e})),{priority:4})};document.addEventListener("DOMContentLoaded",(async()=>{nn(),await(async()=>{document.querySelectorAll(`[data-${jt}-interactive]`).forEach((e=>{if(!Vt.has(e)){const t=Gt(e);L(It(e),t)}})),zt.set(Jt(window.location),Promise.resolve(Kt(document)))})()}));var rn=t.az,on=t.Aj,sn=t.XM,ln=t.fw,un=t.sb,cn=t.c4,an=t.tL,fn=t.h,pn=t.qp,hn=t.d4,dn=t.Ye;export{rn as createElement,on as deepSignal,sn as directive,ln as getContext,un as getElement,cn as navigate,an as prefetch,fn as store,pn as useContext,hn as useEffect,dn as useMemo};
//# sourceMappingURL=index.min.js.map