mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-08 03:40:20 +01:00
a41c798835
In addition to all the packages being updated to the latest versions, this commit also includes some mandatory changes to avoid editor breakage: - Update React to to 18.2.0. - Add the right stylesheets to support iframed block editors. Props ntsekouras, mamaduka, flixos90, desrosj, peterwilsoncc. See #57471. Built from https://develop.svn.wordpress.org/trunk@55246 git-svn-id: http://core.svn.wordpress.org/trunk@54779 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2 lines
54 KiB
JavaScript
2 lines
54 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 n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(e,t){var n=e._map,r=e._arrayTreeMap,i=e._objectTreeMap;if(n.has(t))return n.get(t);for(var o=Object.keys(t).sort(),s=Array.isArray(t)?r:i,a=0;a<o.length;a++){var u=o[a];if(void 0===(s=s.get(u)))return;var c=t[u];if(void 0===(s=s.get(c)))return}var l=s.get("_ekm_value");return l?(n.delete(l[0]),l[0]=t,s.set("_ekm_value",l),n.set(t,l),l):void 0}var i=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 n=[];t.forEach((function(e,t){n.push([t,e])})),t=n}if(null!=t)for(var r=0;r<t.length;r++)this.set(t[r][0],t[r][1])}var i,o,s;return i=e,o=[{key:"set",value:function(n,r){if(null===n||"object"!==t(n))return this._map.set(n,r),this;for(var i=Object.keys(n).sort(),o=[n,r],s=Array.isArray(n)?this._arrayTreeMap:this._objectTreeMap,a=0;a<i.length;a++){var u=i[a];s.has(u)||s.set(u,new e),s=s.get(u);var c=n[u];s.has(c)||s.set(c,new e),s=s.get(c)}var l=s.get("_ekm_value");return l&&this._map.delete(l[0]),s.set("_ekm_value",o),this._map.set(n,o),this}},{key:"get",value:function(e){if(null===e||"object"!==t(e))return this._map.get(e);var n=r(this,e);return n?n[1]:void 0}},{key:"has",value:function(e){return null===e||"object"!==t(e)?this._map.has(e):void 0!==r(this,e)}},{key:"delete",value:function(e){return!!this.has(e)&&(this.set(e,void 0),!0)}},{key:"forEach",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;this._map.forEach((function(i,o){null!==o&&"object"===t(o)&&(i=i[1]),e.call(r,i,o,n)}))}},{key:"clear",value:function(){this._map=new Map,this._arrayTreeMap=new Map,this._objectTreeMap=new Map}},{key:"size",get:function(){return this._map.size}}],o&&n(i.prototype,o),s&&n(i,s),e}();e.exports=i},5619:function(e){"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}if(t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(i of t.entries())if(!n.has(i[0]))return!1;for(i of t.entries())if(!e(i[1],n.get(i[0])))return!1;return!0}if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(i of t.entries())if(!n.has(i[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){if((r=t.length)!=n.length)return!1;for(i=r;0!=i--;)if(t[i]!==n[i])return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!=i--;){var s=o[i];if(!e(t[s],n[s]))return!1}return!0}return t!=t&&n!=n}},9756:function(e){e.exports=function(e,t){var n,r,i=0;function o(){var o,s,a=n,u=arguments.length;e:for(;a;){if(a.args.length===arguments.length){for(s=0;s<u;s++)if(a.args[s]!==arguments[s]){a=a.next;continue e}return a!==n&&(a===r&&(r=a.prev),a.prev.next=a.next,a.next&&(a.next.prev=a.prev),a.next=n,a.prev=null,n.prev=a,n=a),a.val}a=a.next}for(o=new Array(u),s=0;s<u;s++)o[s]=arguments[s];return a={args:o,val:e.apply(null,o)},n?(n.prev=a,a.next=n):r=a,i===t.maxSize?(r=r.prev).next=null:i++,n=a,a.val}return t=t||{},o.clear=function(){n=null,r=null,i=0},o}}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};!function(){"use strict";n.r(r),n.d(r,{EntityProvider:function(){return hn},__experimentalFetchLinkSuggestions:function(){return Rn},__experimentalFetchUrlData:function(){return wn},__experimentalUseEntityRecord:function(){return Un},__experimentalUseEntityRecords:function(){return Pn},__experimentalUseResourcePermissions:function(){return Vn},store:function(){return qn},useEntityBlockEditor:function(){return mn},useEntityId:function(){return En},useEntityProp:function(){return gn},useEntityRecord:function(){return On},useEntityRecords:function(){return Ln},useResourcePermissions:function(){return jn}});var e={};n.r(e),n.d(e,{__experimentalBatch:function(){return ce},__experimentalReceiveCurrentGlobalStylesId:function(){return X},__experimentalReceiveThemeBaseGlobalStyles:function(){return J},__experimentalReceiveThemeGlobalStyleVariations:function(){return ee},__experimentalSaveSpecifiedEntityEdits:function(){return de},__unstableCreateUndoLevel:function(){return ae},addEntities:function(){return H},deleteEntityRecord:function(){return re},editEntityRecord:function(){return ie},receiveAutosaves:function(){return ve},receiveCurrentTheme:function(){return Z},receiveCurrentUser:function(){return z},receiveEmbedPreview:function(){return ne},receiveEntityRecords:function(){return W},receiveThemeSupports:function(){return te},receiveUploadPermissions:function(){return fe},receiveUserPermission:function(){return pe},receiveUserQuery:function(){return K},redo:function(){return se},saveEditedEntityRecord:function(){return le},saveEntityRecord:function(){return ue},undo:function(){return oe}});var t={};n.r(t),n.d(t,{__experimentalGetCurrentGlobalStylesId:function(){return _t},__experimentalGetCurrentThemeBaseGlobalStyles:function(){return Ut},__experimentalGetCurrentThemeGlobalStylesVariations:function(){return xt},__experimentalGetDirtyEntityRecords:function(){return rt},__experimentalGetEntitiesBeingSaved:function(){return it},__experimentalGetEntityRecordNoResolver:function(){return Je},__experimentalGetTemplateForLink:function(){return Ot},canUser:function(){return Tt},canUserEditEntityRecord:function(){return kt},getAuthors:function(){return Qe},getAutosave:function(){return It},getAutosaves:function(){return St},getBlockPatternCategories:function(){return Pt},getBlockPatterns:function(){return Lt},getCurrentTheme:function(){return mt},getCurrentUser:function(){return Ye},getEditedEntityRecord:function(){return ut},getEmbedPreview:function(){return bt},getEntitiesByKind:function(){return ze},getEntitiesConfig:function(){return He},getEntity:function(){return We},getEntityConfig:function(){return Ze},getEntityRecord:function(){return Xe},getEntityRecordEdits:function(){return ot},getEntityRecordNonTransientEdits:function(){return st},getEntityRecords:function(){return nt},getLastEntityDeleteError:function(){return pt},getLastEntitySaveError:function(){return ft},getRawEntityRecord:function(){return et},getRedoEdit:function(){return ht},getReferenceByDistinctEdits:function(){return Ct},getThemeSupports:function(){return Rt},getUndoEdit:function(){return yt},getUserQueryResults:function(){return Ke},hasEditsForEntityRecord:function(){return at},hasEntityRecords:function(){return tt},hasFetchedAutosaves:function(){return At},hasRedo:function(){return gt},hasUndo:function(){return Et},isAutosavingEntityRecord:function(){return ct},isDeletingEntityRecord:function(){return dt},isPreviewEmbedFallback:function(){return wt},isRequestingEmbedPreview:function(){return Fe},isSavingEntityRecord:function(){return lt}});var i={};n.r(i),n.d(i,{__experimentalGetCurrentGlobalStylesId:function(){return Zt},__experimentalGetCurrentThemeBaseGlobalStyles:function(){return Xt},__experimentalGetCurrentThemeGlobalStylesVariations:function(){return Jt},__experimentalGetTemplateForLink:function(){return Wt},canUser:function(){return Yt},canUserEditEntityRecord:function(){return Kt},getAuthors:function(){return Dt},getAutosave:function(){return Ht},getAutosaves:function(){return zt},getBlockPatternCategories:function(){return tn},getBlockPatterns:function(){return en},getCurrentTheme:function(){return $t},getCurrentUser:function(){return Nt},getEditedEntityRecord:function(){return Gt},getEmbedPreview:function(){return Qt},getEntityRecord:function(){return Mt},getEntityRecords:function(){return Bt},getRawEntityRecord:function(){return qt},getThemeSupports:function(){return Ft}});var o=window.wp.data,s=n(5619),a=n.n(s),u=window.lodash,c=window.wp.compose,l=window.wp.isShallowEqual,d=n.n(l);var f=e=>t=>(n,r)=>void 0===n||e(r)?t(n,r):n;var p=e=>t=>(n,r)=>t(n,e(r));function v(e,t){if(!e)return t;let n=!1;const r={};for(const i in t)a()(e[i],t[i])?r[i]=e[i]:(n=!0,r[i]=t[i]);if(!n)return e;for(const t in e)r.hasOwnProperty(t)||(r[t]=e[t]);return r}var y=e=>t=>function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;const i=r[e];if(void 0===i)return n;const o=t(n[i],r);return o===n[i]?n:{...n,[i]:o}};var h=function(){return h=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},h.apply(this,arguments)};Object.create;Object.create;function E(e){return e.toLowerCase()}var g=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],m=/[^A-Z0-9]+/gi;function _(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,r=void 0===n?g:n,i=t.stripRegexp,o=void 0===i?m:i,s=t.transform,a=void 0===s?E:s,u=t.delimiter,c=void 0===u?" ":u,l=R(R(e,r,"$1\0$2"),o,"\0"),d=0,f=l.length;"\0"===l.charAt(d);)d++;for(;"\0"===l.charAt(f-1);)f--;return l.slice(d,f).split("\0").map(a).join(c)}function R(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce((function(e,t){return e.replace(t,n)}),e)}function b(e){return function(e){return e.charAt(0).toUpperCase()+e.substr(1)}(e.toLowerCase())}function w(e,t){var n=e.charAt(0),r=e.substr(1).toLowerCase();return t>0&&n>="0"&&n<="9"?"_"+n+r:""+n.toUpperCase()+r}function T(e,t){return void 0===t&&(t={}),_(e,h({delimiter:"",transform:w},t))}var k,S=window.wp.apiFetch,I=n.n(S),A=window.wp.i18n,C=new Uint8Array(16);function O(){if(!k&&!(k="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return k(C)}var U=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var x=function(e){return"string"==typeof e&&U.test(e)},L=[],P=0;P<256;++P)L.push((P+256).toString(16).substr(1));var j=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(L[e[t+0]]+L[e[t+1]]+L[e[t+2]]+L[e[t+3]]+"-"+L[e[t+4]]+L[e[t+5]]+"-"+L[e[t+6]]+L[e[t+7]]+"-"+L[e[t+8]]+L[e[t+9]]+"-"+L[e[t+10]]+L[e[t+11]]+L[e[t+12]]+L[e[t+13]]+L[e[t+14]]+L[e[t+15]]).toLowerCase();if(!x(n))throw TypeError("Stringified UUID is invalid");return n};var V=function(e,t,n){var r=(e=e||{}).random||(e.rng||O)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return j(r)},D=window.wp.url,N=window.wp.deprecated,M=n.n(N);function q(e,t){return{type:"RECEIVE_ITEMS",items:Array.isArray(e)?e:[e],persistedEdits:t}}function G(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return{type:"REMOVE_ITEMS",itemIds:Array.isArray(n)?n:[n],kind:e,name:t,invalidateCache:r}}function B(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return{...q(e,n),query:t}}let $=null;async function F(e){if(null===$){const e=await I()({path:"/batch/v1",method:"OPTIONS"});$=e.endpoints[0].args.requests.maxItems}const t=[];for(const n of function(e,t){const n=[...e],r=[];for(;n.length;)r.push(n.splice(0,t));return r}(e,$)){const e=await I()({path:"/batch/v1",method:"POST",data:{validation:"require-all-validate",requests:n.map((e=>({path:e.path,body:e.data,method:e.method,headers:e.headers})))}});let r;r=e.failed?e.responses.map((e=>({error:null==e?void 0:e.body}))):e.responses.map((e=>{const t={};return e.status>=200&&e.status<300?t.output=e.body:t.error=e.body,t})),t.push(...r)}return t}class Q{constructor(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.set=new Set(...t),this.subscribers=new Set}get size(){return this.set.size}add(e){return this.set.add(e),this.subscribers.forEach((e=>e())),this}delete(e){const t=this.set.delete(e);return this.subscribers.forEach((e=>e())),t}subscribe(e){return this.subscribers.add(e),()=>{this.subscribers.delete(e)}}}const Y="core";function K(e,t){return{type:"RECEIVE_USER_QUERY",users:Array.isArray(t)?t:[t],queryID:e}}function z(e){return{type:"RECEIVE_CURRENT_USER",currentUser:e}}function H(e){return{type:"ADD_ENTITIES",entities:e}}function W(e,t,n,r){let i,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=arguments.length>5?arguments[5]:void 0;return"postType"===e&&(n=(Array.isArray(n)?n:[n]).map((e=>"auto-draft"===e.status?{...e,title:""}:e))),i=r?B(n,r,s):q(n,s),{...i,kind:e,name:t,invalidateCache:o}}function Z(e){return{type:"RECEIVE_CURRENT_THEME",currentTheme:e}}function X(e){return{type:"RECEIVE_CURRENT_GLOBAL_STYLES_ID",id:e}}function J(e,t){return{type:"RECEIVE_THEME_GLOBAL_STYLES",stylesheet:e,globalStyles:t}}function ee(e,t){return{type:"RECEIVE_THEME_GLOBAL_STYLE_VARIATIONS",stylesheet:e,variations:t}}function te(){return M()("wp.data.dispatch( 'core' ).receiveThemeSupports",{since:"5.9"}),{type:"DO_NOTHING"}}function ne(e,t){return{type:"RECEIVE_EMBED_PREVIEW",url:e,preview:t}}const re=function(e,t,n,r){let{__unstableFetch:i=I(),throwOnError:o=!1}=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return async s=>{let{dispatch:a}=s;const u=(await a(Re(e))).find((n=>n.kind===e&&n.name===t));let c,l=!1;if(!u||null!=u&&u.__experimentalNoFetch)return;const d=await a.__unstableAcquireStoreLock(Y,["entities","records",e,t,n],{exclusive:!0});try{a({type:"DELETE_ENTITY_RECORD_START",kind:e,name:t,recordId:n});let s=!1;try{let o=`${u.baseURL}/${n}`;r&&(o=(0,D.addQueryArgs)(o,r)),l=await i({path:o,method:"DELETE"}),await a(G(e,t,n,!0))}catch(e){s=!0,c=e}if(a({type:"DELETE_ENTITY_RECORD_FINISH",kind:e,name:t,recordId:n,error:c}),s&&o)throw c;return l}finally{a.__unstableReleaseStoreLock(d)}}},ie=function(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return o=>{let{select:s,dispatch:u}=o;const c=s.getEntityConfig(e,t);if(!c)throw new Error(`The entity being edited (${e}, ${t}) does not have a loaded config.`);const{transientEdits:l={},mergedEdits:d={}}=c,f=s.getRawEntityRecord(e,t,n),p=s.getEditedEntityRecord(e,t,n),v={kind:e,name:t,recordId:n,edits:Object.keys(r).reduce(((e,t)=>{const n=f[t],i=p[t],o=d[t]?{...i,...r[t]}:r[t];return e[t]=a()(n,o)?void 0:o,e}),{}),transientEdits:l};u({type:"EDIT_ENTITY_RECORD",...v,meta:{undo:!i.undoIgnore&&{...v,edits:Object.keys(r).reduce(((e,t)=>(e[t]=p[t],e)),{})}}})}},oe=()=>e=>{let{select:t,dispatch:n}=e;const r=t.getUndoEdit();r&&n({type:"EDIT_ENTITY_RECORD",...r,meta:{isUndo:!0}})},se=()=>e=>{let{select:t,dispatch:n}=e;const r=t.getRedoEdit();r&&n({type:"EDIT_ENTITY_RECORD",...r,meta:{isRedo:!0}})};function ae(){return{type:"CREATE_UNDO_LEVEL"}}const ue=function(e,t,n){let{isAutosave:r=!1,__unstableFetch:i=I(),throwOnError:o=!1}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return async s=>{let{select:a,resolveSelect:u,dispatch:c}=s;const l=(await c(Re(e))).find((n=>n.kind===e&&n.name===t));if(!l||null!=l&&l.__experimentalNoFetch)return;const d=l.key||ye,f=n[d],p=await c.__unstableAcquireStoreLock(Y,["entities","records",e,t,f||V()],{exclusive:!0});try{for(const[r,i]of Object.entries(n))if("function"==typeof i){const o=i(a.getEditedEntityRecord(e,t,f));c.editEntityRecord(e,t,f,{[r]:o},{undoIgnore:!0}),n[r]=o}let s,d;c({type:"SAVE_ENTITY_RECORD_START",kind:e,name:t,recordId:f,isAutosave:r});let v=!1;try{const o=`${l.baseURL}${f?"/"+f:""}`,d=a.getRawEntityRecord(e,t,f);if(r){const r=a.getCurrentUser(),l=r?r.id:void 0,f=await u.getAutosave(d.type,d.id,l);let p={...d,...f,...n};if(p=Object.keys(p).reduce(((e,t)=>(["title","excerpt","content"].includes(t)&&(e[t]=p[t]),e)),{status:"auto-draft"===p.status?"draft":p.status}),s=await i({path:`${o}/autosaves`,method:"POST",data:p}),d.id===s.id){let n={...d,...p,...s};n=Object.keys(n).reduce(((e,t)=>(["title","excerpt","content"].includes(t)?e[t]=n[t]:e[t]="status"===t?"auto-draft"===d.status&&"draft"===n.status?n.status:d.status:d[t],e)),{}),c.receiveEntityRecords(e,t,n,void 0,!0)}else c.receiveAutosaves(d.id,s)}else{let r=n;l.__unstablePrePersist&&(r={...r,...l.__unstablePrePersist(d,r)}),s=await i({path:o,method:f?"PUT":"POST",data:r}),c.receiveEntityRecords(e,t,s,void 0,!0,r)}}catch(e){v=!0,d=e}if(c({type:"SAVE_ENTITY_RECORD_FINISH",kind:e,name:t,recordId:f,error:d,isAutosave:r}),v&&o)throw d;return s}finally{c.__unstableReleaseStoreLock(p)}}},ce=e=>async t=>{let{dispatch:n}=t;const r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:F,t=0,n=[];const r=new Q;return{add(e){const i=++t;r.add(i);const o=e=>new Promise(((t,o)=>{n.push({input:e,resolve:t,reject:o}),r.delete(i)}));return"function"==typeof e?Promise.resolve(e(o)).finally((()=>{r.delete(i)})):o(e)},async run(){let t;r.size&&await new Promise((e=>{const t=r.subscribe((()=>{r.size||(t(),e(void 0))}))}));try{if(t=await e(n.map((e=>{let{input:t}=e;return t}))),t.length!==n.length)throw new Error("run: Array returned by processor must be same size as input array.")}catch(e){for(const{reject:t}of n)t(e);throw e}let i=!0;return t.forEach(((e,t)=>{const r=n[t];var o;null!=e&&e.error?(null==r||r.reject(e.error),i=!1):null==r||r.resolve(null!==(o=null==e?void 0:e.output)&&void 0!==o?o:e)})),n=[],i}}}(),i={saveEntityRecord(e,t,i,o){return r.add((r=>n.saveEntityRecord(e,t,i,{...o,__unstableFetch:r})))},saveEditedEntityRecord(e,t,i,o){return r.add((r=>n.saveEditedEntityRecord(e,t,i,{...o,__unstableFetch:r})))},deleteEntityRecord(e,t,i,o,s){return r.add((r=>n.deleteEntityRecord(e,t,i,o,{...s,__unstableFetch:r})))}},o=e.map((e=>e(i))),[,...s]=await Promise.all([r.run(),...o]);return s},le=(e,t,n,r)=>async i=>{let{select:o,dispatch:s}=i;if(!o.hasEditsForEntityRecord(e,t,n))return;const a=(await s(Re(e))).find((n=>n.kind===e&&n.name===t));if(!a)return;const u=a.key||ye,c=o.getEntityRecordNonTransientEdits(e,t,n),l={[u]:n,...c};return await s.saveEntityRecord(e,t,l,r)},de=(e,t,n,r,i)=>async o=>{let{select:s,dispatch:a}=o;if(!s.hasEditsForEntityRecord(e,t,n))return;const u=s.getEntityRecordNonTransientEdits(e,t,n),c={};for(const e in u)r.some((t=>t===e))&&(c[e]=u[e]);return await a.saveEntityRecord(e,t,c,i)};function fe(e){return M()("wp.data.dispatch( 'core' ).receiveUploadPermissions",{since:"5.9",alternative:"receiveUserPermission"}),pe("create/media",e)}function pe(e,t){return{type:"RECEIVE_USER_PERMISSION",key:e,isAllowed:t}}function ve(e,t){return{type:"RECEIVE_AUTOSAVES",postId:e,autosaves:Array.isArray(t)?t:[t]}}const ye="id",he=["title","excerpt","content"],Ee=[{label:(0,A.__)("Base"),kind:"root",name:"__unstableBase",baseURL:"/",baseURLParams:{_fields:["description","gmt_offset","home","name","site_icon","site_icon_url","site_logo","timezone_string","url"].join(",")}},{label:(0,A.__)("Site"),name:"site",kind:"root",baseURL:"/wp/v2/settings",getTitle:e=>(0,u.get)(e,["title"],(0,A.__)("Site Title"))},{label:(0,A.__)("Post Type"),name:"postType",kind:"root",key:"slug",baseURL:"/wp/v2/types",baseURLParams:{context:"edit"}},{name:"media",kind:"root",baseURL:"/wp/v2/media",baseURLParams:{context:"edit"},plural:"mediaItems",label:(0,A.__)("Media"),rawAttributes:["caption","title","description"]},{name:"taxonomy",kind:"root",key:"slug",baseURL:"/wp/v2/taxonomies",baseURLParams:{context:"edit"},plural:"taxonomies",label:(0,A.__)("Taxonomy")},{name:"sidebar",kind:"root",baseURL:"/wp/v2/sidebars",baseURLParams:{context:"edit"},plural:"sidebars",transientEdits:{blocks:!0},label:(0,A.__)("Widget areas")},{name:"widget",kind:"root",baseURL:"/wp/v2/widgets",baseURLParams:{context:"edit"},plural:"widgets",transientEdits:{blocks:!0},label:(0,A.__)("Widgets")},{name:"widgetType",kind:"root",baseURL:"/wp/v2/widget-types",baseURLParams:{context:"edit"},plural:"widgetTypes",label:(0,A.__)("Widget types")},{label:(0,A.__)("User"),name:"user",kind:"root",baseURL:"/wp/v2/users",baseURLParams:{context:"edit"},plural:"users"},{name:"comment",kind:"root",baseURL:"/wp/v2/comments",baseURLParams:{context:"edit"},plural:"comments",label:(0,A.__)("Comment")},{name:"menu",kind:"root",baseURL:"/wp/v2/menus",baseURLParams:{context:"edit"},plural:"menus",label:(0,A.__)("Menu")},{name:"menuItem",kind:"root",baseURL:"/wp/v2/menu-items",baseURLParams:{context:"edit"},plural:"menuItems",label:(0,A.__)("Menu Item"),rawAttributes:["title"]},{name:"menuLocation",kind:"root",baseURL:"/wp/v2/menu-locations",baseURLParams:{context:"edit"},plural:"menuLocations",label:(0,A.__)("Menu Location"),key:"name"},{label:(0,A.__)("Global Styles"),name:"globalStyles",kind:"root",baseURL:"/wp/v2/global-styles",baseURLParams:{context:"edit"},plural:"globalStylesVariations",getTitle:e=>{var t;return(null==e||null===(t=e.title)||void 0===t?void 0:t.rendered)||(null==e?void 0:e.title)}},{label:(0,A.__)("Themes"),name:"theme",kind:"root",baseURL:"/wp/v2/themes",baseURLParams:{context:"edit"},key:"stylesheet"},{label:(0,A.__)("Plugins"),name:"plugin",kind:"root",baseURL:"/wp/v2/plugins",baseURLParams:{context:"edit"},key:"plugin"}],ge=[{kind:"postType",loadEntities:async function(){const e=await I()({path:"/wp/v2/types?context=view"});return Object.entries(null!=e?e:{}).map((e=>{var t;let[n,r]=e;const i=["wp_template","wp_template_part"].includes(n);return{kind:"postType",baseURL:`/${null!==(t=null==r?void 0:r.rest_namespace)&&void 0!==t?t:"wp/v2"}/${r.rest_base}`,baseURLParams:{context:"edit"},name:n,label:r.name,transientEdits:{blocks:!0,selection:!0},mergedEdits:{meta:!0},rawAttributes:he,getTitle:e=>{var t,n,r,o;return(null==e||null===(t=e.title)||void 0===t?void 0:t.rendered)||(null==e?void 0:e.title)||(i?(r=null!==(n=e.slug)&&void 0!==n?n:"",void 0===o&&(o={}),_(r,h({delimiter:" ",transform:b},o))):String(e.id))},__unstablePrePersist:i?void 0:me,__unstable_rest_base:r.rest_base}}))}},{kind:"taxonomy",loadEntities:async function(){const e=await I()({path:"/wp/v2/taxonomies?context=view"});return Object.entries(null!=e?e:{}).map((e=>{var t;let[n,r]=e;return{kind:"taxonomy",baseURL:`/${null!==(t=null==r?void 0:r.rest_namespace)&&void 0!==t?t:"wp/v2"}/${r.rest_base}`,baseURLParams:{context:"edit"},name:n,label:r.name}}))}}],me=(e,t)=>{const n={};return"auto-draft"===(null==e?void 0:e.status)&&(t.status||n.status||(n.status="draft"),t.title&&"Auto Draft"!==t.title||n.title||null!=e&&e.title&&"Auto Draft"!==(null==e?void 0:e.title)||(n.title="")),n};const _e=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"get",r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const i=Ee.find((n=>n.kind===e&&n.name===t)),o="root"===e?"":T(e),s=T(t)+(r?"s":""),a=r&&"plural"in i&&null!=i&&i.plural?T(i.plural):s;return`${n}${o}${a}`},Re=e=>async t=>{let{select:n,dispatch:r}=t,i=n.getEntitiesConfig(e);if(i&&0!==i.length)return i;const o=ge.find((t=>t.kind===e));return o?(i=await o.loadEntities(),r(H(i)),i):[]};var be=function(e){return"string"==typeof e?e.split(","):Array.isArray(e)?e:null};var we=function(e){const t=new WeakMap;return n=>{let r;return t.has(n)?r=t.get(n):(r=e(n),null!==n&&"object"==typeof n&&t.set(n,r)),r}}((function(e){const t={stableKey:"",page:1,perPage:10,fields:null,include:null,context:"default"},n=Object.keys(e).sort();for(let o=0;o<n.length;o++){const s=n[o];let a=e[s];switch(s){case"page":t[s]=Number(a);break;case"per_page":t.perPage=Number(a);break;case"context":t.context=a;break;default:var r,i;if("_fields"===s)t.fields=null!==(r=be(a))&&void 0!==r?r:[],a=t.fields.join();if("include"===s)"number"==typeof a&&(a=a.toString()),t.include=(null!==(i=be(a))&&void 0!==i?i:[]).map(Number),a=t.include.join();t.stableKey+=(t.stableKey?"&":"")+(0,D.addQueryArgs)("",{[s]:a}).slice(1)}}return t}));function Te(e){const{query:t}=e;if(!t)return"default";return we(t).context}function ke(e,t,n,r){var i;if(1===n&&-1===r)return t;const o=(n-1)*r,s=Math.max(null!==(i=null==e?void 0:e.length)&&void 0!==i?i:0,o+t.length),a=new Array(s);for(let n=0;n<s;n++){const r=n>=o&&n<o+t.length;a[n]=r?t[n-o]:null==e?void 0:e[n]}return a}function Se(e,t){return Object.fromEntries(Object.entries(e).filter((e=>{let[n]=e;return!t.some((e=>Number.isInteger(e)?e===+n:e===n))})))}const Ie=(0,c.compose)([f((e=>"query"in e)),p((e=>e.query?{...e,...we(e.query)}:e)),y("context"),y("stableKey")])((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;const{type:n,page:r,perPage:i,key:o=ye}=t;return"RECEIVE_ITEMS"!==n?e:ke(e||[],t.items.map((e=>e[o])),r,i)}));var Ae=(0,o.combineReducers)({items:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_ITEMS":{const n=Te(t),r=t.key||ye;return{...e,[n]:{...e[n],...t.items.reduce(((t,i)=>{var o;const s=i[r];return t[s]=v(null==e||null===(o=e[n])||void 0===o?void 0:o[s],i),t}),{})}}}case"REMOVE_ITEMS":return(0,u.mapValues)(e,(e=>Se(e,t.itemIds)))}return e},itemIsComplete:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_ITEMS":{const n=Te(t),{query:r,key:i=ye}=t,o=r?we(r):{},s=!r||!Array.isArray(o.fields);return{...e,[n]:{...e[n],...t.items.reduce(((t,r)=>{var o;const a=r[i];return t[a]=(null==e||null===(o=e[n])||void 0===o?void 0:o[a])||s,t}),{})}}}case"REMOVE_ITEMS":return(0,u.mapValues)(e,(e=>Se(e,t.itemIds)))}return e},queries:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_ITEMS":return Ie(e,t);case"REMOVE_ITEMS":const n=t.itemIds.reduce(((e,t)=>(e[t]=!0,e)),{});return(0,u.mapValues)(e,(e=>(0,u.mapValues)(e,(e=>e.filter((e=>!n[e]))))));default:return e}}});function Ce(e){return(0,c.compose)([f((t=>t.name&&t.kind&&t.name===e.name&&t.kind===e.kind)),p((t=>({...t,key:e.key||ye})))])((0,o.combineReducers)({queriedData:Ae,edits:function(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;switch(r.type){case"RECEIVE_ITEMS":if("default"!==(null!==(e=null==r||null===(t=r.query)||void 0===t?void 0:t.context)&&void 0!==e?e:"default"))return n;const i={...n};for(const e of r.items){const t=e[r.key],n=i[t];if(!n)continue;const o=Object.keys(n).reduce(((t,i)=>(a()(n[i],(0,u.get)(e[i],"raw",e[i]))||r.persistedEdits&&a()(n[i],r.persistedEdits[i])||(t[i]=n[i]),t)),{});Object.keys(o).length?i[t]=o:delete i[t]}return i;case"EDIT_ENTITY_RECORD":const o={...n[r.recordId],...r.edits};return Object.keys(o).forEach((e=>{void 0===o[e]&&delete o[e]})),{...n,[r.recordId]:o}}return n},saving:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SAVE_ENTITY_RECORD_START":case"SAVE_ENTITY_RECORD_FINISH":return{...e,[t.recordId]:{pending:"SAVE_ENTITY_RECORD_START"===t.type,error:t.error,isAutosave:t.isAutosave}}}return e},deleting:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"DELETE_ENTITY_RECORD_START":case"DELETE_ENTITY_RECORD_FINISH":return{...e,[t.recordId]:{pending:"DELETE_ENTITY_RECORD_START"===t.type,error:t.error}}}return e}}))}function Oe(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ee,t=arguments.length>1?arguments[1]:void 0;return"ADD_ENTITIES"===t.type?[...e,...t.entities]:e}const Ue=Object.assign([],{offset:0});let xe;var Le=(0,o.combineReducers)({terms:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_TERMS"===t.type?{...e,[t.taxonomy]:t.terms}:e},users:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{byId:{},queries:{}},t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_USER_QUERY"===t.type?{byId:{...e.byId,...t.users.reduce(((e,t)=>({...e,[t.id]:t})),{})},queries:{...e.queries,[t.queryID]:t.users.map((e=>e.id))}}:e},currentTheme:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_CURRENT_THEME"===t.type?t.currentTheme.stylesheet:e},currentGlobalStylesId:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_CURRENT_GLOBAL_STYLES_ID"===t.type?t.id:e},currentUser:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_CURRENT_USER"===t.type?t.currentUser:e},themeGlobalStyleVariations:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_THEME_GLOBAL_STYLE_VARIATIONS"===t.type?{...e,[t.stylesheet]:t.variations}:e},themeBaseGlobalStyles:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_THEME_GLOBAL_STYLES"===t.type?{...e,[t.stylesheet]:t.globalStyles}:e},taxonomies:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_TAXONOMIES"===t.type?t.taxonomies:e},entities:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;const n=Oe(e.config,t);let r=e.reducer;if(!r||n!==e.config){const e=(0,u.groupBy)(n,"kind");r=(0,o.combineReducers)(Object.entries(e).reduce(((e,t)=>{let[n,r]=t;const i=(0,o.combineReducers)(r.reduce(((e,t)=>({...e,[t.name]:Ce(t)})),{}));return e[n]=i,e}),{}))}const i=r(e.records,t);return i===e.records&&n===e.config&&r===e.reducer?e:{reducer:r,records:i,config:n}},undo:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ue,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"EDIT_ENTITY_RECORD":case"CREATE_UNDO_LEVEL":let n="CREATE_UNDO_LEVEL"===t.type;const r=!n&&(t.meta.isUndo||t.meta.isRedo);let i;if(n?t=xe:r||(xe=Object.keys(t.edits).some((e=>!t.transientEdits[e]))?t:{...t,edits:{...xe&&xe.edits,...t.edits}}),r){if(i=[...e],i.offset=e.offset+(t.meta.isUndo?-1:1),!e.flattenedUndo)return i;n=!0,xe.meta.undo||(xe.meta.undo={edits:{}}),t=xe}if(!t.meta.undo)return e;if(!n&&!Object.keys(t.edits).some((e=>!t.transientEdits[e])))return i=[...e],i.flattenedUndo={...e.flattenedUndo,...t.edits},i.offset=e.offset,i;i=i||e.slice(0,e.offset||void 0),i.offset=i.offset||0,i.pop(),n||i.push({kind:t.meta.undo.kind,name:t.meta.undo.name,recordId:t.meta.undo.recordId,edits:{...e.flattenedUndo,...t.meta.undo.edits}});const o=Object.values(t.meta.undo.edits).filter((e=>"function"!=typeof e)),s=Object.values(t.edits).filter((e=>"function"!=typeof e));return d()(o,s)||i.push({kind:t.kind,name:t.name,recordId:t.recordId,edits:n?{...e.flattenedUndo,...t.edits}:t.edits}),i}return e},embedPreviews:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if("RECEIVE_EMBED_PREVIEW"===t.type){const{url:n,preview:r}=t;return{...e,[n]:r}}return e},userPermissions:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_USER_PERMISSION"===t.type?{...e,[t.key]:t.isAllowed}:e},autosaves:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if("RECEIVE_AUTOSAVES"===t.type){const{postId:n,autosaves:r}=t;return{...e,[n]:r}}return e},blockPatterns:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_BLOCK_PATTERNS"===t.type?t.patterns:e},blockPatternCategories:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_BLOCK_PATTERN_CATEGORIES"===t.type?t.categories:e}}),Pe={};function je(e){return[e]}function Ve(e,t,n){var r;if(e.length!==t.length)return!1;for(r=n;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function De(e,t){var n,r=t||je;function i(e){var t,r,i,o,s,a=n,u=!0;for(t=0;t<e.length;t++){if(r=e[t],!(s=r)||"object"!=typeof s){u=!1;break}a.has(r)?a=a.get(r):(i=new WeakMap,a.set(r,i),a=i)}return a.has(Pe)||((o=function(){var e={clear:function(){e.head=null}};return e}()).isUniqueByDependants=u,a.set(Pe,o)),a.get(Pe)}function o(){n=new WeakMap}function s(){var t,n,o,s,a,u=arguments.length;for(s=new Array(u),o=0;o<u;o++)s[o]=arguments[o];for((t=i(a=r.apply(null,s))).isUniqueByDependants||(t.lastDependants&&!Ve(a,t.lastDependants,0)&&t.clear(),t.lastDependants=a),n=t.head;n;){if(Ve(n.args,s,1))return n!==t.head&&(n.prev.next=n.next,n.next&&(n.next.prev=n.prev),n.next=t.head,n.prev=null,t.head.prev=n,t.head=n),n.val;n=n.next}return n={val:e.apply(null,s)},s[0]=null,n.args=s,t.head&&(t.head.prev=n,n.next=t.head),t.head=n,n.val}return s.getDependants=r,s.clear=o,o(),s}var Ne=n(2167),Me=n.n(Ne);const qe=new WeakMap;function Ge(e,t){var n,r;const{stableKey:i,page:o,perPage:s,include:a,fields:c,context:l}=we(t);let d;if(null!==(n=e.queries)&&void 0!==n&&null!==(r=n[l])&&void 0!==r&&r[i]&&(d=e.queries[l][i]),!d)return null;const f=-1===s?0:(o-1)*s,p=-1===s?d.length:Math.min(f+s,d.length),v=[];for(let t=f;t<p;t++){var y;const n=d[t];if(Array.isArray(a)&&!a.includes(n))continue;if(null===(y=e.items[l])||void 0===y||!y.hasOwnProperty(n))return null;const r=e.items[l][n];let i;if(Array.isArray(c)){i={};for(let e=0;e<c.length;e++){const t=c[e].split("."),n=(0,u.get)(r,t);(0,u.set)(i,t,n)}}else{var h;if(null===(h=e.itemIsComplete[l])||void 0===h||!h[n])return null;i=r}v.push(i)}return v}const Be=De((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=qe.get(e);if(n){const e=n.get(t);if(void 0!==e)return e}else n=new(Me()),qe.set(e,n);const r=Ge(e,t);return n.set(t,r),r}));const $e={},Fe=(0,o.createRegistrySelector)((e=>(t,n)=>e(Y).isResolving("getEmbedPreview",[n])));function Qe(e,t){M()("select( 'core' ).getAuthors()",{since:"5.9",alternative:"select( 'core' ).getUsers({ who: 'authors' })"});const n=(0,D.addQueryArgs)("/wp/v2/users/?who=authors&per_page=100",t);return Ke(e,n)}function Ye(e){return e.currentUser}const Ke=De(((e,t)=>{var n;return(null!==(n=e.users.queries[t])&&void 0!==n?n:[]).map((t=>e.users.byId[t]))}),((e,t)=>[e.users.queries[t],e.users.byId]));function ze(e,t){return M()("wp.data.select( 'core' ).getEntitiesByKind()",{since:"6.0",alternative:"wp.data.select( 'core' ).getEntitiesConfig()"}),He(e,t)}function He(e,t){return e.entities.config.filter((e=>e.kind===t))}function We(e,t,n){return M()("wp.data.select( 'core' ).getEntity()",{since:"6.0",alternative:"wp.data.select( 'core' ).getEntityConfig()"}),Ze(e,t,n)}function Ze(e,t,n){var r;return null===(r=e.entities.config)||void 0===r?void 0:r.find((e=>e.kind===t&&e.name===n))}const Xe=De(((e,t,n,r,i)=>{var o,s;const a=(0,u.get)(e.entities.records,[t,n,"queriedData"]);if(!a)return;const c=null!==(o=null==i?void 0:i.context)&&void 0!==o?o:"default";if(void 0===i){var l;if(null===(l=a.itemIsComplete[c])||void 0===l||!l[r])return;return a.items[c][r]}const d=null===(s=a.items[c])||void 0===s?void 0:s[r];if(d&&i._fields){var f;const e={},t=null!==(f=be(i._fields))&&void 0!==f?f:[];for(let n=0;n<t.length;n++){const r=t[n].split("."),i=(0,u.get)(d,r);(0,u.set)(e,r,i)}return e}return d}),((e,t,n,r,i)=>{var o;const s=null!==(o=null==i?void 0:i.context)&&void 0!==o?o:"default";return[(0,u.get)(e.entities.records,[t,n,"queriedData","items",s,r]),(0,u.get)(e.entities.records,[t,n,"queriedData","itemIsComplete",s,r])]}));function Je(e,t,n,r){return Xe(e,t,n,r)}const et=De(((e,t,n,r)=>{const i=Xe(e,t,n,r);return i&&Object.keys(i).reduce(((r,o)=>(!function(e,t){return(e.rawAttributes||[]).includes(t)}(Ze(e,t,n),o)?r[o]=i[o]:r[o]=(0,u.get)(i[o],"raw",i[o]),r)),{})}),((e,t,n,r,i)=>{var o;const s=null!==(o=null==i?void 0:i.context)&&void 0!==o?o:"default";return[e.entities.config,(0,u.get)(e.entities.records,[t,n,"queriedData","items",s,r]),(0,u.get)(e.entities.records,[t,n,"queriedData","itemIsComplete",s,r])]}));function tt(e,t,n,r){return Array.isArray(nt(e,t,n,r))}const nt=(e,t,n,r)=>{const i=(0,u.get)(e.entities.records,[t,n,"queriedData"]);return i?Be(i,r):null},rt=De((e=>{const{entities:{records:t}}=e,n=[];return Object.keys(t).forEach((r=>{Object.keys(t[r]).forEach((i=>{const o=Object.keys(t[r][i].edits).filter((t=>Xe(e,r,i,t)&&at(e,r,i,t)));if(o.length){const t=Ze(e,r,i);o.forEach((o=>{var s;const a=ut(e,r,i,o);n.push({key:a?a[t.key||ye]:void 0,title:(null==t||null===(s=t.getTitle)||void 0===s?void 0:s.call(t,a))||"",name:i,kind:r})}))}}))})),n}),(e=>[e.entities.records])),it=De((e=>{const{entities:{records:t}}=e,n=[];return Object.keys(t).forEach((r=>{Object.keys(t[r]).forEach((i=>{const o=Object.keys(t[r][i].saving).filter((t=>lt(e,r,i,t)));if(o.length){const t=Ze(e,r,i);o.forEach((o=>{var s;const a=ut(e,r,i,o);n.push({key:a?a[t.key||ye]:void 0,title:(null==t||null===(s=t.getTitle)||void 0===s?void 0:s.call(t,a))||"",name:i,kind:r})}))}}))})),n}),(e=>[e.entities.records]));function ot(e,t,n,r){return(0,u.get)(e.entities.records,[t,n,"edits",r])}const st=De(((e,t,n,r)=>{const{transientEdits:i}=Ze(e,t,n)||{},o=ot(e,t,n,r)||{};return i?Object.keys(o).reduce(((e,t)=>(i[t]||(e[t]=o[t]),e)),{}):o}),((e,t,n,r)=>[e.entities.config,(0,u.get)(e.entities.records,[t,n,"edits",r])]));function at(e,t,n,r){return lt(e,t,n,r)||Object.keys(st(e,t,n,r)).length>0}const ut=De(((e,t,n,r)=>({...et(e,t,n,r),...ot(e,t,n,r)})),((e,t,n,r,i)=>{var o;const s=null!==(o=null==i?void 0:i.context)&&void 0!==o?o:"default";return[e.entities.config,(0,u.get)(e.entities.records,[t,n,"queriedData","items",s,r]),(0,u.get)(e.entities.records,[t,n,"queriedData","itemIsComplete",s,r]),(0,u.get)(e.entities.records,[t,n,"edits",r])]}));function ct(e,t,n,r){const{pending:i,isAutosave:o}=(0,u.get)(e.entities.records,[t,n,"saving",r],{});return Boolean(i&&o)}function lt(e,t,n,r){return(0,u.get)(e.entities.records,[t,n,"saving",r,"pending"],!1)}function dt(e,t,n,r){return(0,u.get)(e.entities.records,[t,n,"deleting",r,"pending"],!1)}function ft(e,t,n,r){return(0,u.get)(e.entities.records,[t,n,"saving",r,"error"])}function pt(e,t,n,r){return(0,u.get)(e.entities.records,[t,n,"deleting",r,"error"])}function vt(e){return e.undo.offset}function yt(e){return e.undo[e.undo.length-2+vt(e)]}function ht(e){return e.undo[e.undo.length+vt(e)]}function Et(e){return Boolean(yt(e))}function gt(e){return Boolean(ht(e))}function mt(e){return Xe(e,"root","theme",e.currentTheme)}function _t(e){return e.currentGlobalStylesId}function Rt(e){var t,n;return null!==(t=null===(n=mt(e))||void 0===n?void 0:n.theme_supports)&&void 0!==t?t:$e}function bt(e,t){return e.embedPreviews[t]}function wt(e,t){const n=e.embedPreviews[t],r='<a href="'+t+'">'+t+"</a>";return!!n&&n.html===r}function Tt(e,t,n,r){const i=[t,n,r].filter(Boolean).join("/");return(0,u.get)(e,["userPermissions",i])}function kt(e,t,n,r){const i=Ze(e,t,n);if(!i)return!1;return Tt(e,"update",i.__unstable_rest_base,r)}function St(e,t,n){return e.autosaves[n]}function It(e,t,n,r){if(void 0===r)return;const i=e.autosaves[n];return null==i?void 0:i.find((e=>e.author===r))}const At=(0,o.createRegistrySelector)((e=>(t,n,r)=>e(Y).hasFinishedResolution("getAutosaves",[n,r]))),Ct=De((e=>[]),(e=>[e.undo.length,e.undo.offset,e.undo.flattenedUndo]));function Ot(e,t){const n=nt(e,"postType","wp_template",{"find-template":t});return null!=n&&n.length?ut(e,"postType","wp_template",n[0].id):null}function Ut(e){const t=mt(e);return t?e.themeBaseGlobalStyles[t.stylesheet]:null}function xt(e){const t=mt(e);return t?e.themeGlobalStyleVariations[t.stylesheet]:null}function Lt(e){return e.blockPatterns}function Pt(e){return e.blockPatternCategories}function jt(e,t){return 0===t?e.toLowerCase():w(e,t)}var Vt=e=>function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return async t=>{let{resolveSelect:r}=t;await r[e](...n)}};const Dt=e=>async t=>{let{dispatch:n}=t;const r=(0,D.addQueryArgs)("/wp/v2/users/?who=authors&per_page=100",e),i=await I()({path:r});n.receiveUserQuery(r,i)},Nt=()=>async e=>{let{dispatch:t}=e;const n=await I()({path:"/wp/v2/users/me"});t.receiveCurrentUser(n)},Mt=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3?arguments[3]:void 0;return async i=>{let{select:o,dispatch:s}=i;const a=(await s(Re(e))).find((n=>n.name===t&&n.kind===e));if(!a||null!=a&&a.__experimentalNoFetch)return;const u=await s.__unstableAcquireStoreLock(Y,["entities","records",e,t,n],{exclusive:!1});try{void 0!==r&&r._fields&&(r={...r,_fields:[...new Set([...be(r._fields)||[],a.key||ye])].join()});const i=(0,D.addQueryArgs)(a.baseURL+(n?"/"+n:""),{...a.baseURLParams,...r});if(void 0!==r){r={...r,include:[n]};if(o.hasEntityRecords(e,t,r))return}const c=await I()({path:i});s.receiveEntityRecords(e,t,c,r)}finally{s.__unstableReleaseStoreLock(u)}}},qt=Vt("getEntityRecord"),Gt=Vt("getEntityRecord"),Bt=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return async r=>{let{dispatch:i}=r;const o=(await i(Re(e))).find((n=>n.name===t&&n.kind===e));if(!o||null!=o&&o.__experimentalNoFetch)return;const s=await i.__unstableAcquireStoreLock(Y,["entities","records",e,t],{exclusive:!1});try{var a;n._fields&&(n={...n,_fields:[...new Set([...be(n._fields)||[],o.key||ye])].join()});const r=(0,D.addQueryArgs)(o.baseURL,{...o.baseURLParams,...n});let u=Object.values(await I()({path:r}));if(n._fields&&(u=u.map((e=>(n._fields.split(",").forEach((t=>{e.hasOwnProperty(t)||(e[t]=void 0)})),e)))),i.receiveEntityRecords(e,t,u,n),!(null!==(a=n)&&void 0!==a&&a._fields||n.context)){const n=o.key||ye,r=u.filter((e=>e[n])).map((r=>[e,t,r[n]]));i({type:"START_RESOLUTIONS",selectorName:"getEntityRecord",args:r}),i({type:"FINISH_RESOLUTIONS",selectorName:"getEntityRecord",args:r})}}finally{i.__unstableReleaseStoreLock(s)}}};Bt.shouldInvalidate=(e,t,n)=>("RECEIVE_ITEMS"===e.type||"REMOVE_ITEMS"===e.type)&&e.invalidateCache&&t===e.kind&&n===e.name;const $t=()=>async e=>{let{dispatch:t,resolveSelect:n}=e;const r=await n.getEntityRecords("root","theme",{status:"active"});t.receiveCurrentTheme(r[0])},Ft=Vt("getCurrentTheme"),Qt=e=>async t=>{let{dispatch:n}=t;try{const t=await I()({path:(0,D.addQueryArgs)("/oembed/1.0/proxy",{url:e})});n.receiveEmbedPreview(e,t)}catch(t){n.receiveEmbedPreview(e,!1)}},Yt=(e,t,n)=>async r=>{var i;let{dispatch:o,registry:s}=r;const{hasStartedResolution:a}=s.select(Y),u=n?`${t}/${n}`:t,c=["create","read","update","delete"];if(!c.includes(e))throw new Error(`'${e}' is not a valid action.`);for(const r of c){if(r===e)continue;if(a("canUser",[r,t,n]))return}let l;try{l=await I()({path:`/wp/v2/${u}`,method:"OPTIONS",parse:!1})}catch(e){return}const d=null===(i=l.headers)||void 0===i?void 0:i.get("allow"),f=(null==d?void 0:d.allow)||d||"",p={},v={create:"POST",read:"GET",update:"PUT",delete:"DELETE"};for(const[e,t]of Object.entries(v))p[e]=f.includes(t);for(const e of c)o.receiveUserPermission(`${e}/${u}`,p[e])},Kt=(e,t,n)=>async r=>{let{dispatch:i}=r;const o=(await i(Re(e))).find((n=>n.name===t&&n.kind===e));if(!o)return;const s=o.__unstable_rest_base;await i(Yt("update",s,n))},zt=(e,t)=>async n=>{let{dispatch:r,resolveSelect:i}=n;const{rest_base:o,rest_namespace:s="wp/v2"}=await i.getPostType(e),a=await I()({path:`/${s}/${o}/${t}/autosaves?context=edit`});a&&a.length&&r.receiveAutosaves(t,a)},Ht=(e,t)=>async n=>{let{resolveSelect:r}=n;await r.getAutosaves(e,t)},Wt=e=>async t=>{let n,{dispatch:r,resolveSelect:i}=t;try{n=await window.fetch((0,D.addQueryArgs)(e,{"_wp-find-template":!0})).then((e=>e.json())).then((e=>{let{data:t}=e;return t}))}catch(e){}if(!n)return;const o=await i.getEntityRecord("postType","wp_template",n.id);o&&r.receiveEntityRecords("postType","wp_template",[o],{"find-template":e})};Wt.shouldInvalidate=e=>("RECEIVE_ITEMS"===e.type||"REMOVE_ITEMS"===e.type)&&e.invalidateCache&&"postType"===e.kind&&"wp_template"===e.name;const Zt=()=>async e=>{var t,n,r,i;let{dispatch:o,resolveSelect:s}=e;const a=await s.getEntityRecords("root","theme",{status:"active"}),u=null==a||null===(t=a[0])||void 0===t||null===(n=t._links)||void 0===n||null===(r=n["wp:user-global-styles"])||void 0===r||null===(i=r[0])||void 0===i?void 0:i.href;if(u){const e=await I()({url:u});o.__experimentalReceiveCurrentGlobalStylesId(e.id)}},Xt=()=>async e=>{let{resolveSelect:t,dispatch:n}=e;const r=await t.getCurrentTheme(),i=await I()({path:`/wp/v2/global-styles/themes/${r.stylesheet}`});n.__experimentalReceiveThemeBaseGlobalStyles(r.stylesheet,i)},Jt=()=>async e=>{let{resolveSelect:t,dispatch:n}=e;const r=await t.getCurrentTheme(),i=await I()({path:`/wp/v2/global-styles/themes/${r.stylesheet}/variations`});n.__experimentalReceiveThemeGlobalStyleVariations(r.stylesheet,i)},en=()=>async e=>{let{dispatch:t}=e;const n=await I()({path:"/wp/v2/block-patterns/patterns"});t({type:"RECEIVE_BLOCK_PATTERNS",patterns:null==n?void 0:n.map((e=>Object.fromEntries(Object.entries(e).map((e=>{let[t,n]=e;return[(r=t,void 0===i&&(i={}),T(r,h({transform:jt},i))),n];var r,i})))))})},tn=()=>async e=>{let{dispatch:t}=e;t({type:"RECEIVE_BLOCK_PATTERN_CATEGORIES",categories:await I()({path:"/wp/v2/block-patterns/categories"})})};function nn(e,t){const n={...e};let r=n;for(const e of t)r.children={...r.children,[e]:{locks:[],children:{},...r.children[e]}},r=r.children[e];return n}function rn(e,t){let n=e;for(const e of t){const t=n.children[e];if(!t)return null;n=t}return n}function on(e,t){let{exclusive:n}=e;return!(!n||!t.length)||!(n||!t.filter((e=>e.exclusive)).length)}const sn={requests:[],tree:{locks:[],children:{}}};function an(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:sn,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ENQUEUE_LOCK_REQUEST":{const{request:n}=t;return{...e,requests:[n,...e.requests]}}case"GRANT_LOCK_REQUEST":{const{lock:n,request:r}=t,{store:i,path:o}=r,s=[i,...o],a=nn(e.tree,s),u=rn(a,s);return u.locks=[...u.locks,n],{...e,requests:e.requests.filter((e=>e!==r)),tree:a}}case"RELEASE_LOCK":{const{lock:n}=t,r=[n.store,...n.path],i=nn(e.tree,r),o=rn(i,r);return o.locks=o.locks.filter((e=>e!==n)),{...e,tree:i}}}return e}function un(e,t,n,r){let{exclusive:i}=r;const o=[t,...n],s=e.tree;for(const e of function*(e,t){let n=e;yield n;for(const e of t){const t=n.children[e];if(!t)break;yield t,n=t}}(s,o))if(on({exclusive:i},e.locks))return!1;const a=rn(s,o);if(!a)return!0;for(const e of function*(e){const t=Object.values(e.children);for(;t.length;){const e=t.pop();yield e,t.push(...Object.values(e.children))}}(a))if(on({exclusive:i},e.locks))return!1;return!0}function cn(){let e=an(void 0,{type:"@@INIT"});function t(){for(const t of function(e){return e.requests}(e)){const{store:n,path:r,exclusive:i,notifyAcquired:o}=t;if(un(e,n,r,{exclusive:i})){const s={store:n,path:r,exclusive:i};e=an(e,{type:"GRANT_LOCK_REQUEST",lock:s,request:t}),o(s)}}}return{acquire:function(n,r,i){return new Promise((o=>{e=an(e,{type:"ENQUEUE_LOCK_REQUEST",request:{store:n,path:r,exclusive:i,notifyAcquired:o}}),t()}))},release:function(n){e=an(e,{type:"RELEASE_LOCK",lock:n}),t()}}}function ln(){const e=cn();return{__unstableAcquireStoreLock:function(t,n,r){let{exclusive:i}=r;return()=>e.acquire(t,n,i)},__unstableReleaseStoreLock:function(t){return()=>e.release(t)}}}var dn=window.wp.element,fn=window.wp.blocks;const pn=[],vn={...Ee.reduce(((e,t)=>(e[t.kind]||(e[t.kind]={}),e[t.kind][t.name]={context:(0,dn.createContext)(void 0)},e)),{}),...ge.reduce(((e,t)=>(e[t.kind]={},e)),{})},yn=(e,t)=>{if(!vn[e])throw new Error(`Missing entity config for kind: ${e}.`);return vn[e][t]||(vn[e][t]={context:(0,dn.createContext)(void 0)}),vn[e][t].context};function hn(e){let{kind:t,type:n,id:r,children:i}=e;const o=yn(t,n).Provider;return(0,dn.createElement)(o,{value:r},i)}function En(e,t){return(0,dn.useContext)(yn(e,t))}function gn(e,t,n,r){const i=En(e,t),s=null!=r?r:i,{value:a,fullValue:u}=(0,o.useSelect)((r=>{const{getEntityRecord:i,getEditedEntityRecord:o}=r(Y),a=i(e,t,s),u=o(e,t,s);return a&&u?{value:u[n],fullValue:a[n]}:{}}),[e,t,s,n]),{editEntityRecord:c}=(0,o.useDispatch)(Y);return[a,(0,dn.useCallback)((r=>{c(e,t,s,{[n]:r})}),[e,t,s,n]),u]}function mn(e,t){let{id:n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=En(e,t),i=null!=n?n:r,{content:s,blocks:a}=(0,o.useSelect)((n=>{const{getEditedEntityRecord:r}=n(Y),o=r(e,t,i);return{blocks:o.blocks,content:o.content}}),[e,t,i]),{__unstableCreateUndoLevel:u,editEntityRecord:c}=(0,o.useDispatch)(Y);(0,dn.useEffect)((()=>{if(s&&"function"!=typeof s&&!a){const n=(0,fn.parse)(s);c(e,t,i,{blocks:n},{undoIgnore:!0})}}),[s]);const l=(0,dn.useCallback)(((n,r)=>{const{selection:o}=r,s={blocks:n,selection:o};if(a===s.blocks)return u(e,t,i);s.content=e=>{let{blocks:t=[]}=e;return(0,fn.__unstableSerializeAndClean)(t)},c(e,t,i,s)}),[e,t,i,a]),d=(0,dn.useCallback)(((n,r)=>{const{selection:o}=r;c(e,t,i,{blocks:n,selection:o})}),[e,t,i]);return[null!=a?a:pn,d,l]}var _n=window.wp.htmlEntities;var Rn=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{isInitialSuggestions:r=!1,type:i,subtype:o,page:s,perPage:a=(r?3:20)}=t,{disablePostFormats:u=!1}=n,c=[];return i&&"post"!==i||c.push(I()({path:(0,D.addQueryArgs)("/wp/v2/search",{search:e,page:s,per_page:a,type:"post",subtype:o})}).then((e=>e.map((e=>({...e,meta:{kind:"post-type",subtype:o}}))))).catch((()=>[]))),i&&"term"!==i||c.push(I()({path:(0,D.addQueryArgs)("/wp/v2/search",{search:e,page:s,per_page:a,type:"term",subtype:o})}).then((e=>e.map((e=>({...e,meta:{kind:"taxonomy",subtype:o}}))))).catch((()=>[]))),u||i&&"post-format"!==i||c.push(I()({path:(0,D.addQueryArgs)("/wp/v2/search",{search:e,page:s,per_page:a,type:"post-format",subtype:o})}).then((e=>e.map((e=>({...e,meta:{kind:"taxonomy",subtype:o}}))))).catch((()=>[]))),i&&"attachment"!==i||c.push(I()({path:(0,D.addQueryArgs)("/wp/v2/media",{search:e,page:s,per_page:a})}).then((e=>e.map((e=>({...e,meta:{kind:"media"}}))))).catch((()=>[]))),Promise.all(c).then((e=>e.reduce(((e,t)=>e.concat(t)),[]).filter((e=>!!e.id)).slice(0,a).map((e=>{var t;const n="attachment"===e.type;return{id:e.id,url:n?e.source_url:e.url,title:(0,_n.decodeEntities)(n?e.title.rendered:e.title||"")||(0,A.__)("(no title)"),type:e.subtype||e.type,kind:null==e||null===(t=e.meta)||void 0===t?void 0:t.kind}}))))};const bn=new Map;var wn=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n="/wp-block-editor/v1/url-details",r={url:(0,D.prependHTTP)(e)};if(!(0,D.isURL)(e))return Promise.reject(`${e} is not a valid URL.`);const i=(0,D.getProtocol)(e);return i&&(0,D.isValidProtocol)(i)&&i.startsWith("http")&&/^https?:\/\/[^\/\s]/i.test(e)?bn.has(e)?bn.get(e):I()({path:(0,D.addQueryArgs)(n,r),...t}).then((t=>(bn.set(e,t),t))):Promise.reject(`${e} does not have a valid protocol. URLs must be "http" based`)},Tn=n(9756),kn=n.n(Tn)();let Sn;!function(e){e.Idle="IDLE",e.Resolving="RESOLVING",e.Error="ERROR",e.Success="SUCCESS"}(Sn||(Sn={}));const In=["getIsResolving","hasStartedResolution","hasFinishedResolution","isResolving","getCachedResolvers"];function An(e,t){return(0,o.useSelect)(((t,n)=>e((e=>Cn(t(e))),n)),t)}const Cn=kn((e=>{const t={};for(const n in e)In.includes(n)||Object.defineProperty(t,n,{get:()=>function(){const{getIsResolving:t,hasFinishedResolution:r}=e;for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];const a=!!t(n,o),u=!a&&r(n,o),c=e[n](...o);let l;return l=a?Sn.Resolving:u?c?Sn.Success:Sn.Error:Sn.Idle,{data:c,status:l,isResolving:a,hasResolved:u}}});return t}));function On(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{enabled:!0};const{editEntityRecord:i,saveEditedEntityRecord:s}=(0,o.useDispatch)(qn),a=(0,dn.useMemo)((()=>({edit:r=>i(e,t,n,r),save:function(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s(e,t,n,{throwOnError:!0,...r})}})),[n]),{editedRecord:u,hasEdits:c}=(0,o.useSelect)((r=>({editedRecord:r(qn).getEditedEntityRecord(e,t,n),hasEdits:r(qn).hasEditsForEntityRecord(e,t,n)})),[e,t,n]),{data:l,...d}=An((i=>r.enabled?i(qn).getEntityRecord(e,t,n):null),[e,t,n,r.enabled]);return{record:l,editedRecord:u,hasEdits:c,...d,...a}}function Un(e,t,n,r){return M()("wp.data.__experimentalUseEntityRecord",{alternative:"wp.data.useEntityRecord",since:"6.1"}),On(e,t,n,r)}const xn=[];function Ln(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{enabled:!0};const i=(0,D.addQueryArgs)("",n),{data:o,...s}=An((i=>r.enabled?i(qn).getEntityRecords(e,t,n):{data:xn}),[e,t,i,r.enabled]);return{records:o,...s}}function Pn(e,t,n,r){return M()("wp.data.__experimentalUseEntityRecords",{alternative:"wp.data.useEntityRecords",since:"6.1"}),Ln(e,t,n,r)}function jn(e,t){return An((n=>{const{canUser:r}=n(qn),i=r("create",e);if(!t){const t=r("read",e),n=i.isResolving||t.isResolving,o=i.hasResolved&&t.hasResolved;let s=Sn.Idle;return n?s=Sn.Resolving:o&&(s=Sn.Success),{status:s,isResolving:n,hasResolved:o,canCreate:i.hasResolved&&i.data,canRead:t.hasResolved&&t.data}}const o=r("read",e,t),s=r("update",e,t),a=r("delete",e,t),u=o.isResolving||i.isResolving||s.isResolving||a.isResolving,c=o.hasResolved&&i.hasResolved&&s.hasResolved&&a.hasResolved;let l=Sn.Idle;return u?l=Sn.Resolving:c&&(l=Sn.Success),{status:l,isResolving:u,hasResolved:c,canRead:c&&o.data,canCreate:c&&i.data,canUpdate:c&&s.data,canDelete:c&&a.data}}),[e,t])}function Vn(e,t){return M()("wp.data.__experimentalUseResourcePermissions",{alternative:"wp.data.useResourcePermissions",since:"6.1"}),jn(e,t)}const Dn=Ee.reduce(((e,t)=>{const{kind:n,name:r}=t;return e[_e(n,r)]=(e,t,i)=>Xe(e,n,r,t,i),e[_e(n,r,"get",!0)]=(e,t)=>nt(e,n,r,t),e}),{}),Nn=Ee.reduce(((e,t)=>{const{kind:n,name:r}=t;e[_e(n,r)]=(e,t)=>Mt(n,r,e,t);const i=_e(n,r,"get",!0);return e[i]=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return Bt(n,r,...t)},e[i].shouldInvalidate=e=>Bt.shouldInvalidate(e,n,r),e}),{}),Mn=Ee.reduce(((e,t)=>{const{kind:n,name:r}=t;return e[_e(n,r,"save")]=e=>ue(n,r,e),e[_e(n,r,"delete")]=(e,t)=>re(n,r,e,t),e}),{}),qn=(0,o.createReduxStore)(Y,{reducer:Le,actions:{...e,...Mn,...ln()},selectors:{...t,...Dn},resolvers:{...i,...Nn}});(0,o.register)(qn)}(),(window.wp=window.wp||{}).coreData=r}(); |