2 lines
22 KiB
JavaScript
2 lines
22 KiB
JavaScript
/*! 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;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function n(e,t){var r=e._map,n=e._arrayTreeMap,o=e._objectTreeMap;if(r.has(t))return r.get(t);for(var i=Object.keys(t).sort(),u=Array.isArray(t)?n:o,s=0;s<i.length;s++){var c=i[s];if(void 0===(u=u.get(c)))return;var a=t[c];if(void 0===(u=u.get(a)))return}var l=u.get("_ekm_value");return l?(r.delete(l[0]),l[0]=t,u.set("_ekm_value",l),r.set(t,l),l):void 0}var o=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.clear(),t instanceof e){var r=[];t.forEach((function(e,t){r.push([t,e])})),t=r}if(null!=t)for(var n=0;n<t.length;n++)this.set(t[n][0],t[n][1])}var o,i,u;return o=e,i=[{key:"set",value:function(r,n){if(null===r||"object"!==t(r))return this._map.set(r,n),this;for(var o=Object.keys(r).sort(),i=[r,n],u=Array.isArray(r)?this._arrayTreeMap:this._objectTreeMap,s=0;s<o.length;s++){var c=o[s];u.has(c)||u.set(c,new e),u=u.get(c);var a=r[c];u.has(a)||u.set(a,new e),u=u.get(a)}var l=u.get("_ekm_value");return l&&this._map.delete(l[0]),u.set("_ekm_value",i),this._map.set(r,i),this}},{key:"get",value:function(e){if(null===e||"object"!==t(e))return this._map.get(e);var r=n(this,e);return r?r[1]:void 0}},{key:"has",value:function(e){return null===e||"object"!==t(e)?this._map.has(e):void 0!==n(this,e)}},{key:"delete",value:function(e){return!!this.has(e)&&(this.set(e,void 0),!0)}},{key:"forEach",value:function(e){var r=this,n=arguments.length>1&&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),u&&r(o,u),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;t<r.length;t++)e+=(n=JSON.stringify(r[t]))+":r["+n+"](s["+n+"],a),";return e+="}",new Function("r,s,a",e)}(),function(n,o){var i,u,s;if(void 0===n)return t(e,{},o);for(i=t(e,n,o),u=r.length;u--;)if(n[s=r[u]]!==i[s])return i;return n}}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};!function(){"use strict";r.r(n),r.d(n,{AsyncModeProvider:function(){return Le},RegistryConsumer:function(){return Ee},RegistryProvider:function(){return Te},combineReducers:function(){return u()},controls:function(){return N},createReduxStore:function(){return $},createRegistry:function(){return Z},createRegistryControl:function(){return _},createRegistrySelector:function(){return R},dispatch:function(){return Ge},plugins:function(){return o},register:function(){return ze},registerGenericStore:function(){return Ke},registerStore:function(){return We},resolveSelect:function(){return Ve},select:function(){return Fe},subscribe:function(){return He},use:function(){return Xe},useDispatch:function(){return Me},useRegistry:function(){return Ie},useSelect:function(){return xe},withDispatch:function(){return Ue},withRegistry:function(){return De},withSelect:function(){return Ce}});var e={};r.r(e),r.d(e,{getCachedResolvers:function(){return V},getIsResolving:function(){return U},hasFinishedResolution:function(){return M},hasStartedResolution:function(){return D},isResolving:function(){return F}});var t={};r.r(t),r.d(t,{finishResolution:function(){return H},finishResolutions:function(){return W},invalidateResolution:function(){return X},invalidateResolutionForStore:function(){return z},invalidateResolutionForStoreSelector:function(){return B},startResolution:function(){return G},startResolutions:function(){return K}});var o={};r.r(o),r.d(o,{controls:function(){return ne},persistence:function(){return ge}});var i=r(9125),u=r.n(i),s=window.lodash;function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function f(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var p="function"==typeof Symbol&&Symbol.observable||"@@observable",g=function(){return Math.random().toString(36).substring(7).split("").join(".")},d={INIT:"@@redux/INIT"+g(),REPLACE:"@@redux/REPLACE"+g(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+g()}};function h(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function v(e,t,r){var n;if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error(f(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error(f(1));return r(v)(e,t)}if("function"!=typeof e)throw new Error(f(2));var o=e,i=t,u=[],s=u,c=!1;function a(){s===u&&(s=u.slice())}function l(){if(c)throw new Error(f(3));return i}function g(e){if("function"!=typeof e)throw new Error(f(4));if(c)throw new Error(f(5));var t=!0;return a(),s.push(e),function(){if(t){if(c)throw new Error(f(6));t=!1,a();var r=s.indexOf(e);s.splice(r,1),u=null}}}function y(e){if(!h(e))throw new Error(f(7));if(void 0===e.type)throw new Error(f(8));if(c)throw new Error(f(9));try{c=!0,i=o(i,e)}finally{c=!1}for(var t=u=s,r=0;r<t.length;r++){(0,t[r])()}return e}function S(e){if("function"!=typeof e)throw new Error(f(10));o=e,y({type:d.REPLACE})}function b(){var e,t=g;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(f(11));function r(){e.next&&e.next(l())}return r(),{unsubscribe:t(r)}}})[p]=function(){return this},e}return y({type:d.INIT}),(n={dispatch:y,subscribe:g,getState:l,replaceReducer:S})[p]=b,n}function y(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function S(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return function(){var r=e.apply(void 0,arguments),n=function(){throw new Error(f(15))},o={getState:r.getState,dispatch:function(){return n.apply(void 0,arguments)}},i=t.map((function(e){return e(o)}));return n=y.apply(void 0,i)(r.dispatch),l(l({},r),{},{dispatch:n})}}}var b=r(2167),m=r.n(b),O=window.wp.reduxRoutine,w=r.n(O);function R(e){const t=function(){return e(t.registry.select)(...arguments)};return t.isRegistrySelector=!0,t}function _(e){return e.isRegistryControl=!0,e}const E="@@data/SELECT",T="@@data/RESOLVE_SELECT",I="@@data/DISPATCH";const N={select:function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];return{type:E,storeKey:(0,s.isObject)(e)?e.name:e,selectorName:t,args:n}},resolveSelect:function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];return{type:T,storeKey:(0,s.isObject)(e)?e.name:e,selectorName:t,args:n}},dispatch:function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];return{type:I,storeKey:(0,s.isObject)(e)?e.name:e,actionName:t,args:n}}},A={[E]:_((e=>t=>{let{storeKey:r,selectorName:n,args:o}=t;return e.select(r)[n](...o)})),[T]:_((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)})),[I]:_((e=>t=>{let{storeKey:r,actionName:n,args:o}=t;return e.dispatch(r)[n](...o)}))};var j=()=>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 L="core/data";var P=(e,t)=>()=>r=>n=>{const o=e.select(L).getCachedResolvers(t);return Object.entries(o).forEach((r=>{let[o,i]=r;const u=(0,s.get)(e.stores,[t,"resolvers",o]);u&&u.shouldInvalidate&&i.forEach(((r,i)=>{!1===r&&u.shouldInvalidate(n,...i)&&e.dispatch(L).invalidateResolution(t,o,i)}))})),r(n)};const x=(C="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[C];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(m()),t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_RESOLUTION":case"FINISH_RESOLUTION":{const r="START_RESOLUTION"===t.type,n=new(m())(e);return n.set(t.args,r),n}case"START_RESOLUTIONS":case"FINISH_RESOLUTIONS":{const r="START_RESOLUTIONS"===t.type,n=new(m())(e);for(const e of t.args)n.set(e,r);return n}case"INVALIDATE_RESOLUTION":{const r=new(m())(e);return r.delete(t.args),r}}return e}));var C;var k=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":return(0,s.has)(e,[t.selectorName])?(0,s.omit)(e,[t.selectorName]):e;case"START_RESOLUTION":case"FINISH_RESOLUTION":case"START_RESOLUTIONS":case"FINISH_RESOLUTIONS":case"INVALIDATE_RESOLUTION":return x(e,t)}return e};function U(e,t,r){const n=(0,s.get)(e,[t]);if(n)return n.get(r)}function D(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return void 0!==U(e,t,r)}function M(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return!1===U(e,t,r)}function F(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return!0===U(e,t,r)}function V(e){return e}function G(e,t){return{type:"START_RESOLUTION",selectorName:e,args:t}}function H(e,t){return{type:"FINISH_RESOLUTION",selectorName:e,args:t}}function K(e,t){return{type:"START_RESOLUTIONS",selectorName:e,args:t}}function W(e,t){return{type:"FINISH_RESOLUTIONS",selectorName:e,args:t}}function X(e,t){return{type:"INVALIDATE_RESOLUTION",selectorName:e,args:t}}function z(){return{type:"INVALIDATE_RESOLUTION_FOR_STORE"}}function B(e){return{type:"INVALIDATE_RESOLUTION_FOR_STORE_SELECTOR",selectorName:e}}const J=e=>{const t=[...e];for(let e=t.length-1;e>=0;e--)void 0===t[e]&&t.splice(e,1);return t};function $(r,n){return{name:r,instantiate:o=>{const i=n.reducer,c=function(e,t,r,n){const o={...t.controls,...A},i=(0,s.mapValues)(o,(e=>e.isRegistryControl?e(r):e)),c=[P(r,e),j,w()(i)];t.__experimentalUseThunks&&c.push((a=n,()=>e=>t=>"function"==typeof t?t(a):e(t)));var a;const l=[S(...c)];"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&l.push(window.__REDUX_DEVTOOLS_EXTENSION__({name:e,instanceId:e}));const{reducer:f,initialState:p}=t;return v(u()({metadata:k,root:f}),{root:p},(0,s.flowRight)(l))}(r,n,o,{registry:o,get dispatch(){return Object.assign((e=>c.dispatch(e)),h())},get select(){return Object.assign((e=>e(c.__unstableOriginalGetState())),d())},get resolveSelect(){return y()}}),a=function(){const e={};return{isRunning:(t,r)=>e[t]&&e[t].get(J(r)),clear(t,r){e[t]&&e[t].delete(J(r))},markAsRunning(t,r){e[t]||(e[t]=new(m())),e[t].set(J(r),!0)}}}();let l;const f=function(e,t){const r=e=>function(){return Promise.resolve(t.dispatch(e(...arguments)))};return(0,s.mapValues)(e,r)}({...t,...n.actions},c);let p=function(e,t){const r=e=>{const r=function(){const r=arguments.length,n=new Array(r+1);n[0]=t.__unstableOriginalGetState();for(let e=0;e<r;e++)n[e+1]=arguments[e];return e(...n)};return r.hasResolver=!1,r};return(0,s.mapValues)(e,r)}({...(0,s.mapValues)(e,(e=>function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return e(t.metadata,...n)})),...(0,s.mapValues)(n.selectors,(e=>(e.isRegistrySelector&&(e.registry=o),function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return e(t.root,...n)})))},c);if(n.resolvers){const e=function(e,t,r,n){const o=(0,s.mapValues)(e,(e=>e.fulfill?e:{...e,fulfill:e})),i=(t,i)=>{const u=e[i];if(!u)return t.hasResolver=!1,t;const s=function(){for(var e=arguments.length,s=new Array(e),c=0;c<e;c++)s[c]=arguments[c];async function a(){const e=r.getState();if(n.isRunning(i,s)||"function"==typeof u.isFulfilled&&u.isFulfilled(e,...s))return;const{metadata:t}=r.__unstableOriginalGetState();D(t,i,s)||(n.markAsRunning(i,s),setTimeout((async()=>{n.clear(i,s),r.dispatch(G(i,s)),await q(r,o,i,...s),r.dispatch(H(i,s))})))}return a(...s),t(...s)};return s.hasResolver=!0,s};return{resolvers:o,selectors:(0,s.mapValues)(t,i)}}(n.resolvers,p,c,a);l=e.resolvers,p=e.selectors}const g=function(e,t){return(0,s.mapValues)((0,s.omit)(e,["getIsResolving","hasStartedResolution","hasFinishedResolution","isResolving","getCachedResolvers"]),((r,n)=>function(){for(var o=arguments.length,i=new Array(o),u=0;u<o;u++)i[u]=arguments[u];return new Promise((o=>{const u=()=>e.hasFinishedResolution(n,i),s=()=>r.apply(null,i),c=s();if(u())return o(c);const a=t.subscribe((()=>{u()&&(a(),o(s()))}))}))}))}(p,c),d=()=>p,h=()=>f,y=()=>g;c.__unstableOriginalGetState=c.getState,c.getState=()=>c.__unstableOriginalGetState().root;const b=c&&(e=>{let t=c.__unstableOriginalGetState();return c.subscribe((()=>{const r=c.__unstableOriginalGetState(),n=r!==t;t=r,n&&e()}))});return{reducer:i,store:c,actions:f,selectors:p,resolvers:l,getSelectors:d,getResolveSelectors:y,getActions:h,subscribe:b}}}}async function q(e,t,r){const n=(0,s.get)(t,[r]);if(!n)return;for(var o=arguments.length,i=new Array(o>3?o-3:0),u=3;u<o;u++)i[u-3]=arguments[u];const c=n.fulfill(...i);c&&await e.dispatch(c)}var Q=function(e){const t=t=>function(r){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return e.select(r)[t](...o)},r=t=>function(r){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return e.dispatch(r)[t](...o)};return{getSelectors:()=>["getIsResolving","hasStartedResolution","hasFinishedResolution","isResolving","getCachedResolvers"].reduce(((e,r)=>({...e,[r]:t(r)})),{}),getActions:()=>["startResolution","finishResolution","invalidateResolution","invalidateResolutionForStore","invalidateResolutionForStoreSelector"].reduce(((e,t)=>({...e,[t]:r(t)})),{}),subscribe:()=>()=>{}}};function Y(){let e=!1,t=!1;const r=new Set,n=()=>Array.from(r).forEach((e=>e()));return{get isPaused(){return e},subscribe:e=>(r.add(e),()=>r.delete(e)),pause(){e=!0},resume(){e=!1,t&&(t=!1,n())},emit(){e?t=!0:n()}}}function Z(){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=Y(),o=new Set;function i(){n.emit()}const u=e=>n.subscribe(e);function c(e){const n=(0,s.isObject)(e)?e.name:e;o.add(n);const i=r[n];return i?i.getSelectors():t&&t.select(n)}function a(e,t){o.clear();const r=e.call(this);return t.current=Array.from(o),r}function l(e){const n=(0,s.isObject)(e)?e.name:e;o.add(n);const i=r[n];return i?i.getResolveSelectors():t&&t.resolveSelect(n)}function f(e){const n=(0,s.isObject)(e)?e.name:e,o=r[n];return o?o.getActions():t&&t.dispatch(n)}function p(e){return(0,s.mapValues)(e,((e,t)=>"function"!=typeof e?e:function(){return y[t].apply(null,arguments)}))}function g(e,t){if("function"!=typeof t.getSelectors)throw new TypeError("config.getSelectors must be a function");if("function"!=typeof t.getActions)throw new TypeError("config.getActions must be a function");if("function"!=typeof t.subscribe)throw new TypeError("config.subscribe must be a function");t.emitter=Y();const n=t.subscribe;t.subscribe=e=>{const r=t.emitter.subscribe(e),o=n((()=>{t.emitter.isPaused?t.emitter.emit():e()}));return()=>{o&&o(),r()}},r[e]=t,t.subscribe(i)}function d(e){g(e.name,e.instantiate(y))}function h(e,n){return e in r?r[e].subscribe(n):t?t.__experimentalSubscribeStore(e,n):u(n)}function v(e){n.pause(),(0,s.forEach)(r,(e=>e.emitter.pause())),e(),n.resume(),(0,s.forEach)(r,(e=>e.emitter.resume()))}let y={batch:v,registerGenericStore:g,stores:r,namespaces:r,subscribe:u,select:c,resolveSelect:l,dispatch:f,use:S,register:d,__experimentalMarkListeningStores:a,__experimentalSubscribeStore:h};function S(e,t){return y={...y,...e(y,t)},y}return y.registerStore=(e,t)=>{if(!t.reducer)throw new TypeError("Must specify store reducer");const r=$(e,t).instantiate(y);return g(e,r),r.store},g(L,Q(y)),Object.entries(e).forEach((e=>{let[t,r]=e;return y.registerStore(t,r)})),t&&t.subscribe(i),p(y)}var ee=Z(),te=window.wp.deprecated,re=r.n(te),ne=e=>(re()("wp.data.plugins.controls",{since:"5.4",hint:"The controls plugins is now baked-in."}),e);let oe;const ie={getItem:e=>oe&&oe[e]?oe[e]:null,setItem(e,t){oe||ie.clear(),oe[e]=String(t)},clear(){oe=Object.create(null)}};var ue=ie;let se;try{se=window.localStorage,se.setItem("__wpDataTestLocalStorage",""),se.removeItem("__wpDataTestLocalStorage")}catch(e){se=ue}const ce=se,ae="WP_DATA";function le(e){const{storage:t=ce,storageKey:r=ae}=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))}}}function fe(e,t){const r=le(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=(0,s.isPlainObject)(e)&&(0,s.isPlainObject)(o)?(0,s.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=u()(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}}}function pe(e,t){var r;const n="core/interface",o=e.get(),i=null===(r=o[t])||void 0===r?void 0:r.preferences,u=null==i?void 0:i.features;if(u){var s,c;const r=null===(s=o["core/interface"])||void 0===s||null===(c=s.preferences)||void 0===c?void 0:c.features;null!=r&&r[t]||(e.set(n,{preferences:{features:{...r,[t]:u}}}),e.set(t,{preferences:{...i,features:void 0}}))}}fe.__unstableMigrate=e=>{const t=le(e);pe(t,"core/edit-widgets"),pe(t,"core/customize-widgets"),pe(t,"core/edit-post")};var ge=fe;function de(){return de=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},de.apply(this,arguments)}var he=window.wp.element,ve=window.wp.compose,ye=window.React;function Se(e,t){var r=(0,ye.useState)((function(){return{inputs:t,result:e()}}))[0],n=(0,ye.useRef)(!0),o=(0,ye.useRef)(r),i=n.current||Boolean(t&&o.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}(t,o.current.inputs))?o.current:{inputs:t,result:e()};return(0,ye.useEffect)((function(){n.current=!1,o.current=i}),[i]),i.result}var be=window.wp.priorityQueue,me=window.wp.isShallowEqual,Oe=r.n(me);const we=(0,he.createContext)(ee),{Consumer:Re,Provider:_e}=we,Ee=Re;var Te=_e;function Ie(){return(0,he.useContext)(we)}const Ne=(0,he.createContext)(!1),{Consumer:Ae,Provider:je}=Ne;var Le=je;const Pe=(0,be.createQueue)();function xe(e,t){const r="function"!=typeof e;r&&(t=[]);const n=(0,he.useCallback)(e,t),o=Ie(),i=(0,he.useContext)(Ne),u=Se((()=>({queue:!0})),[o]),[,s]=(0,he.useReducer)((e=>e+1),0),c=(0,he.useRef)(),a=(0,he.useRef)(i),l=(0,he.useRef)(),f=(0,he.useRef)(),p=(0,he.useRef)(),g=(0,he.useRef)([]),d=(0,he.useCallback)((e=>o.__experimentalMarkListeningStores(e,g)),[o]),h=(0,he.useMemo)((()=>({})),t||[]);let v;if(!r)try{v=c.current!==n||f.current?d((()=>n(o.select,o))):l.current}catch(e){let t=`An error occurred while running 'mapSelect': ${e.message}`;f.current&&(t+="\nThe error may be correlated with this previous error:\n",t+=`${f.current.stack}\n\n`,t+="Original stack trace:"),console.error(t),v=l.current}return(0,ve.useIsomorphicLayoutEffect)((()=>{r||(c.current=n,l.current=v,f.current=void 0,p.current=!0,a.current!==i&&(a.current=i,Pe.flush(u)))})),(0,ve.useIsomorphicLayoutEffect)((()=>{if(r)return;const e=()=>{if(p.current){try{const e=d((()=>c.current(o.select,o)));if(Oe()(l.current,e))return;l.current=e}catch(e){f.current=e}s()}};a.current?Pe.add(u,e):e();const t=()=>{a.current?Pe.add(u,e):e()},n=g.current.map((e=>o.__experimentalSubscribeStore(e,t)));return()=>{p.current=!1,n.forEach((e=>null==e?void 0:e())),Pe.flush(u)}}),[o,d,h,r]),r?o.select(e):v}var Ce=e=>(0,ve.createHigherOrderComponent)((t=>(0,ve.pure)((r=>{const n=xe(((t,n)=>e(t,r,n)));return(0,he.createElement)(t,de({},r,n))}))),"withSelect");var ke=(e,t)=>{const r=Ie(),n=(0,he.useRef)(e);return(0,ve.useIsomorphicLayoutEffect)((()=>{n.current=e})),(0,he.useMemo)((()=>{const e=n.current(r.dispatch,r);return(0,s.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 Ue=e=>(0,ve.createHigherOrderComponent)((t=>r=>{const n=ke(((t,n)=>e(t,r,n)),[]);return(0,he.createElement)(t,de({},r,n))}),"withDispatch");var De=(0,ve.createHigherOrderComponent)((e=>t=>(0,he.createElement)(Ee,null,(r=>(0,he.createElement)(e,de({},t,{registry:r}))))),"withRegistry");var Me=e=>{const{dispatch:t}=Ie();return void 0===e?t:t(e)};const Fe=ee.select,Ve=ee.resolveSelect,Ge=ee.dispatch,He=ee.subscribe,Ke=ee.registerGenericStore,We=ee.registerStore,Xe=ee.use,ze=ee.register}(),(window.wp=window.wp||{}).data=n}(); |