/*! This file is auto-generated */ !function(){var e={2167:function(e){"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function r(e,t){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:this;this._map.forEach((function(o,i){null!==i&&"object"===t(i)&&(o=o[1]),e.call(n,o,i,r)}))}},{key:"clear",value:function(){this._map=new Map,this._arrayTreeMap=new Map,this._objectTreeMap=new Map}},{key:"size",get:function(){return this._map.size}}],i&&r(o.prototype,i),s&&r(o,s),e}();e.exports=o},9125:function(e){e.exports=function(e){var t,r=Object.keys(e);return t=function(){var e,t,n;for(e="return {",t=0;t2?r-2:0),o=2;o2?r-2:0),o=2;o2?r-2:0),o=2;ot=>{let{storeKey:r,selectorName:n,args:o}=t;return e.select(r)[n](...o)})),[L]:A((e=>t=>{let{storeKey:r,selectorName:n,args:o}=t;const i=e.select(r)[n].hasResolver?"resolveSelect":"select";return e[i](r)[n](...o)})),[P]:A((e=>t=>{let{storeKey:r,actionName:n,args:o}=t;return e.dispatch(r)[n](...o)}))};var x=window.wp.privateApis;const{lock:k,unlock:D}=(0,x.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I know using unstable features means my plugin or theme will inevitably break on the next WordPress release.","@wordpress/data");var M=()=>e=>t=>{return!(r=t)||"object"!=typeof r&&"function"!=typeof r||"function"!=typeof r.then?e(t):t.then((t=>{if(t)return e(t)}));var r};const V={name:"core/data",instantiate(e){const t=t=>function(r){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;ifunction(r){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i[e,t(e)])))},getActions(){return Object.fromEntries(["startResolution","finishResolution","invalidateResolution","invalidateResolutionForStore","invalidateResolutionForStoreSelector"].map((e=>[e,r(e)])))},subscribe(){return()=>()=>{}}}}};var G=V;var H=(e,t)=>()=>r=>n=>{const o=e.select(G).getCachedResolvers(t);return Object.entries(o).forEach((r=>{let[o,i]=r;const s=(0,u.get)(e.stores,[t,"resolvers",o]);s&&s.shouldInvalidate&&i.forEach(((r,i)=>{"finished"!==(null==r?void 0:r.status)&&"error"!==(null==r?void 0:r.status)||!s.shouldInvalidate(n,...i)||e.dispatch(G).invalidateResolution(t,o,i)}))})),r(n)};function K(e){return()=>t=>r=>"function"==typeof r?r(e):t(r)}function W(e){if(null==e)return[];const t=e.length;let r=t;for(;r>0&&void 0===e[r-1];)r--;return r===t?e:e.slice(0,r)}const X=(z="selectorName",e=>function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;const n=r[z];if(void 0===n)return t;const o=e(t[n],r);return o===t[n]?t:{...t,[n]:o}})((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new(E()),t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_RESOLUTION":{const r=new(E())(e);return r.set(W(t.args),{status:"resolving"}),r}case"FINISH_RESOLUTION":{const r=new(E())(e);return r.set(W(t.args),{status:"finished"}),r}case"FAIL_RESOLUTION":{const r=new(E())(e);return r.set(W(t.args),{status:"error",error:t.error}),r}case"START_RESOLUTIONS":{const r=new(E())(e);for(const e of t.args)r.set(W(e),{status:"resolving"});return r}case"FINISH_RESOLUTIONS":{const r=new(E())(e);for(const e of t.args)r.set(W(e),{status:"finished"});return r}case"FAIL_RESOLUTIONS":{const r=new(E())(e);return t.args.forEach(((e,n)=>{const o={status:"error",error:void 0},i=t.errors[n];i&&(o.error=i),r.set(W(e),o)})),r}case"INVALIDATE_RESOLUTION":{const r=new(E())(e);return r.delete(W(t.args)),r}}return e}));var z;var J=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"INVALIDATE_RESOLUTION_FOR_STORE":return{};case"INVALIDATE_RESOLUTION_FOR_STORE_SELECTOR":if(t.selectorName in e){const{[t.selectorName]:r,...n}=e;return n}return e;case"START_RESOLUTION":case"FINISH_RESOLUTION":case"FAIL_RESOLUTION":case"START_RESOLUTIONS":case"FINISH_RESOLUTIONS":case"FAIL_RESOLUTIONS":case"INVALIDATE_RESOLUTION":return X(e,t)}return e};function $(e,t,r){const n=(0,u.get)(e,[t]);if(n)return n.get(W(r))}function B(e,t,r){const n=$(e,t,r);return n&&"resolving"===n.status}function Q(e,t,r){return void 0!==$(e,t,r)}function q(e,t,r){var n;const o=null===(n=$(e,t,r))||void 0===n?void 0:n.status;return"finished"===o||"error"===o}function Y(e,t,r){var n;return"error"===(null===(n=$(e,t,r))||void 0===n?void 0:n.status)}function Z(e,t,r){const n=$(e,t,r);return"error"===(null==n?void 0:n.status)?n.error:null}function ee(e,t,r){var n;return"resolving"===(null===(n=$(e,t,r))||void 0===n?void 0:n.status)}function te(e){return e}function re(e,t){return{type:"START_RESOLUTION",selectorName:e,args:t}}function ne(e,t){return{type:"FINISH_RESOLUTION",selectorName:e,args:t}}function oe(e,t,r){return{type:"FAIL_RESOLUTION",selectorName:e,args:t,error:r}}function ie(e,t){return{type:"START_RESOLUTIONS",selectorName:e,args:t}}function se(e,t){return{type:"FINISH_RESOLUTIONS",selectorName:e,args:t}}function ue(e,t,r){return{type:"FAIL_RESOLUTIONS",selectorName:e,args:t,errors:r}}function ce(e,t){return{type:"INVALIDATE_RESOLUTION",selectorName:e,args:t}}function ae(){return{type:"INVALIDATE_RESOLUTION_FOR_STORE"}}function le(e){return{type:"INVALIDATE_RESOLUTION_FOR_STORE_SELECTOR",selectorName:e}}const fe=e=>{const t=[...e];for(let e=t.length-1;e>=0;e--)void 0===t[e]&&t.splice(e,1);return t},pe=(e,t)=>t instanceof Map?Object.fromEntries(t):t;function ge(r,n){const o={},i={},c={privateActions:o,registerPrivateActions:e=>{Object.assign(o,e)},privateSelectors:i,registerPrivateSelectors:e=>{Object.assign(i,e)}},a={name:r,instantiate:a=>{const l=n.reducer,f=function(e,t,r,n){const o={...t.controls,...U},i=(0,u.mapValues)(o,(e=>e.isRegistryControl?e(r):e)),c=[O(H(r,e),M,I()(i),K(n))];"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&c.push(window.__REDUX_DEVTOOLS_EXTENSION__({name:e,instanceId:e,serialize:{replacer:pe}}));const{reducer:a,initialState:l}=t;return m(s()({metadata:J,root:a}),{root:l},(0,T.compose)(c))}(r,n,a,{registry:a,get dispatch(){return Object.assign((e=>f.dispatch(e)),b())},get select(){return Object.assign((e=>e(f.__unstableOriginalGetState())),S())},get resolveSelect(){return w()}});k(f,c);const p=function(){const e={};return{isRunning(t,r){return e[t]&&e[t].get(fe(r))},clear(t,r){e[t]&&e[t].delete(fe(r))},markAsRunning(t,r){e[t]||(e[t]=new(E())),e[t].set(fe(r),!0)}}}();let g;const v=de({...t,...n.actions},f);k(v,new Proxy(o,{get:(e,t)=>de(o,f)[t]||v[t]}));let d=ve({...(0,u.mapValues)(e,(e=>function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o(e.isRegistrySelector&&(e.registry=a),function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;ove((0,u.mapValues)(i,(e=>function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;oe.fulfill?e:{...e,fulfill:e})),i=(t,i)=>{const s=e[i];if(!s)return t.hasResolver=!1,t;const u=function(){for(var e=arguments.length,u=new Array(e),c=0;c{n.clear(i,u),r.dispatch(re(i,u));try{await ye(r,o,i,...u),r.dispatch(ne(i,u))}catch(e){r.dispatch(oe(i,u,e))}})))}return a(...u),t(...u)};return u.hasResolver=!0,u};return{resolvers:o,selectors:(0,u.mapValues)(t,i)}}(n.resolvers,d,f,p);g=e.resolvers,d=e.selectors}const y=function(e,t){const{getIsResolving:r,hasStartedResolution:n,hasFinishedResolution:o,hasResolutionFailed:i,isResolving:s,getCachedResolvers:c,getResolutionState:a,getResolutionError:l,...f}=e;return(0,u.mapValues)(f,((r,n)=>r.hasResolver?function(){for(var o=arguments.length,i=new Array(o),s=0;s{const u=()=>e.hasFinishedResolution(n,i),c=t=>{if(e.hasResolutionFailed(n,i)){const t=e.getResolutionError(n,i);s(t)}else o(t)},a=()=>r.apply(null,i),l=a();if(u())return c(l);const f=t.subscribe((()=>{u()&&(f(),c(a()))}))}))}:async function(){for(var e=arguments.length,t=new Array(e),n=0;nr.hasResolver?function(){for(var o=arguments.length,i=new Array(o),s=0;s{const o=t.subscribe((()=>{e.hasFinishedResolution(n,i)&&(r(),o())}))}))}:r))}(d,f),S=()=>d,b=()=>v,w=()=>y;f.__unstableOriginalGetState=f.getState,f.getState=()=>f.__unstableOriginalGetState().root;const R=f&&(e=>{let t=f.__unstableOriginalGetState();return f.subscribe((()=>{const r=f.__unstableOriginalGetState(),n=r!==t;t=r,n&&e()}))});return{reducer:l,store:f,actions:v,selectors:d,resolvers:g,getSelectors:S,getResolveSelectors:w,getSuspendSelectors:()=>h,getActions:b,subscribe:R}}};return k(a,c),a}function ve(e,t){return(0,u.mapValues)(e,(e=>{const r=function(){const r=arguments.length,n=new Array(r+1);n[0]=t.__unstableOriginalGetState();for(let e=0;efunction(){return Promise.resolve(t.dispatch(e(...arguments)))}))}async function ye(e,t,r){const n=(0,u.get)(t,[r]);if(!n)return;for(var o=arguments.length,i=new Array(o>3?o-3:0),s=3;sArray.from(r).forEach((e=>e()));return{get isPaused(){return e},subscribe(e){return r.add(e),()=>r.delete(e)},pause(){e=!0},resume(){e=!1,t&&(t=!1,n())},emit(){e?t=!0:n()}}}function Se(e){return"string"==typeof e?e:e.name}function be(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const r={},n=he();let o=null;function i(){n.emit()}const s=(e,o)=>{if(!o)return n.subscribe(e);const i=Se(o),s=r[i];return s?s.subscribe(e):t?t.subscribe(e,o):n.subscribe(e)};function c(e){var n;const i=Se(e);null===(n=o)||void 0===n||n.add(i);const s=r[i];return s?s.getSelectors():null==t?void 0:t.select(i)}function l(e,t){o=new Set;try{return e.call(this)}finally{t.current=Array.from(o),o=null}}function f(e){var n;const i=Se(e);null===(n=o)||void 0===n||n.add(i);const s=r[i];return s?s.getResolveSelectors():t&&t.resolveSelect(i)}function p(e){var n;const i=Se(e);null===(n=o)||void 0===n||n.add(i);const s=r[i];return s?s.getSuspendSelectors():t&&t.suspendSelect(i)}function g(e){const n=Se(e),o=r[n];return o?o.getActions():t&&t.dispatch(n)}function v(e){return(0,u.mapValues)(e,((e,t)=>"function"!=typeof e?e:function(){return m[t].apply(null,arguments)}))}function d(e,n){if("function"!=typeof n.getSelectors)throw new TypeError("store.getSelectors must be a function");if("function"!=typeof n.getActions)throw new TypeError("store.getActions must be a function");if("function"!=typeof n.subscribe)throw new TypeError("store.subscribe must be a function");n.emitter=he();const o=n.subscribe;if(n.subscribe=e=>{const t=n.emitter.subscribe(e),r=o((()=>{n.emitter.isPaused?n.emitter.emit():e()}));return()=>{null==r||r(),null==t||t()}},r[e]=n,n.subscribe(i),t)try{D(n.store).registerPrivateActions(D(t).privateActionsOf(e)),D(n.store).registerPrivateSelectors(D(t).privateSelectorsOf(e))}catch(e){}}function y(e){d(e.name,e.instantiate(m))}function h(e,t){a()("wp.data.registerGenericStore",{since:"5.9",alternative:"wp.data.register( storeDescriptor )"}),d(e,t)}function S(e,t){if(!t.reducer)throw new TypeError("Must specify store reducer");const r=ge(e,t).instantiate(m);return d(e,r),r.store}function b(e){n.pause(),Object.values(r).forEach((e=>e.emitter.pause())),e(),n.resume(),Object.values(r).forEach((e=>e.emitter.resume()))}let m={batch:b,stores:r,namespaces:r,subscribe:s,select:c,resolveSelect:f,suspendSelect:p,dispatch:g,use:w,register:y,registerGenericStore:h,registerStore:S,__unstableMarkListeningStores:l};function w(e,t){if(e)return m={...m,...e(m,t)},m}m.register(G);for(const[t,r]of Object.entries(e))m.register(ge(t,r));t&&t.subscribe(i);const O=v(m);return k(O,{privateActionsOf:e=>{try{return D(r[e].store).privateActions}catch(e){return{}}},privateSelectorsOf:e=>{try{return D(r[e].store).privateSelectors}catch(e){return{}}}}),O}var me=be(); /*! * is-plain-object * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. */ function we(e){return"[object Object]"===Object.prototype.toString.call(e)}function Oe(e){var t,r;return!1!==we(e)&&(void 0===(t=e.constructor)||!1!==we(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))}let Re;const Ee={getItem(e){return Re&&Re[e]?Re[e]:null},setItem(e,t){Re||Ee.clear(),Re[e]=String(t)},clear(){Re=Object.create(null)}};var _e=Ee;let Ie;try{Ie=window.localStorage,Ie.setItem("__wpDataTestLocalStorage",""),Ie.removeItem("__wpDataTestLocalStorage")}catch(e){Ie=_e}const Te=Ie,Ne="WP_DATA";function Ae(e,t){const r=function(e){const{storage:t=Te,storageKey:r=Ne}=e;let n;return{get:function(){if(void 0===n){const e=t.getItem(r);if(null===e)n={};else try{n=JSON.parse(e)}catch(e){n={}}}return n},set:function(e,o){n={...n,[e]:o},t.setItem(r,JSON.stringify(n))}}}(t);return{registerStore(t,n){if(!n.persist)return e.registerStore(t,n);const o=r.get()[t];if(void 0!==o){let e=n.reducer(n.initialState,{type:"@@WP/PERSISTENCE_RESTORE"});e=Oe(e)&&Oe(o)?(0,u.merge)({},e,o):o,n={...n,initialState:e}}const i=e.registerStore(t,n);return i.subscribe(function(e,t,n){let o;if(Array.isArray(n)){const e=n.reduce(((e,t)=>Object.assign(e,{[t]:(e,r)=>r.nextState[t]})),{});i=rt(e),o=(e,t)=>t.nextState===e?e:i(e,t)}else o=(e,t)=>t.nextState;var i;let s=o(void 0,{nextState:e()});return()=>{const n=o(s,{nextState:e()});n!==s&&(r.set(t,n),s=n)}}(i.getState,t,n.persist)),i}}}Ae.__unstableMigrate=()=>{};var je=Ae;function Le(){return Le=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const f=()=>t(r,e);function p(e){if(c&&t===o)return i;const r=e();Ue()(i,r)||(i=r),c=!0}if(s&&!l&&(c=!1,ze.cancel(n)),!u||a&&t!==o){const t={current:null};p((()=>e.__unstableMarkListeningStores(f,t))),g=t.current,u=t=>{c=!1;const r=()=>{c=!1,t()},o=()=>{s?ze.add(n,r):r()},i=g.map((t=>e.subscribe(o,t)));return()=>{for(const e of i)null==e||e();ze.cancel(n)}}}else p(f);var g;return s=l,o=t,{subscribe:u,getValue:function(){return p(f),i}}}}function $e(e,t,r){const n=Ge(),o=(0,Pe.useContext)(He),i=(0,Pe.useMemo)((()=>Je(n,e)),[n]),s=(0,Pe.useCallback)(t,r),{subscribe:u,getValue:c}=i(s,!!r,o),a=(0,Pe.useSyncExternalStore)(u,c,c);return(0,Pe.useDebugValue)(a),a}function Be(e,t){const r="function"!=typeof e,n=(0,Pe.useRef)(r);if(r!==n.current){const e=n.current?"static":"mapping";throw new Error(`Switching useSelect from ${e} to ${r?"static":"mapping"} is not allowed`)}return r?(o=e,Ge().select(o)):$e(!1,e,t);var o}function Qe(e,t){return $e(!0,e,t)}var qe=e=>(0,T.createHigherOrderComponent)((t=>(0,T.pure)((r=>{const n=Be(((t,n)=>e(t,r,n)));return(0,Pe.createElement)(t,Le({},r,n))}))),"withSelect");var Ye=(e,t)=>{const r=Ge(),n=(0,Pe.useRef)(e);return(0,T.useIsomorphicLayoutEffect)((()=>{n.current=e})),(0,Pe.useMemo)((()=>{const e=n.current(r.dispatch,r);return(0,u.mapValues)(e,((e,t)=>("function"!=typeof e&&console.warn(`Property ${t} returned from dispatchMap in useDispatchWithMap must be a function.`),function(){return n.current(r.dispatch,r)[t](...arguments)})))}),[r,...t])};var Ze=e=>(0,T.createHigherOrderComponent)((t=>r=>{const n=Ye(((t,n)=>e(t,r,n)),[]);return(0,Pe.createElement)(t,Le({},r,n))}),"withDispatch");var et=(0,T.createHigherOrderComponent)((e=>t=>(0,Pe.createElement)(Me,null,(r=>(0,Pe.createElement)(e,Le({},t,{registry:r}))))),"withRegistry");var tt=e=>{const{dispatch:t}=Ge();return void 0===e?t:t(e)};const rt=s(),nt=me.select,ot=me.resolveSelect,it=me.suspendSelect,st=me.dispatch,ut=me.subscribe,ct=me.registerGenericStore,at=me.registerStore,lt=me.use,ft=me.register}(),(window.wp=window.wp||{}).data=n}();