PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/cryptoclarityhub.com/wp-includes/js/dist/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : //home/trave494/cryptoclarityhub.com/wp-includes/js/dist/core-data.min.js |
/*! This file is auto-generated */ !function(){"use strict";var e={5360:function(e,t,n){n.d(t,{createUndoManager:function(){return a}});var r=n(9127),i=n.n(r);function s(e,t){const n={...e};return Object.entries(t).forEach((([e,t])=>{n[e]?n[e]={...n[e],to:t.to}:n[e]=t})),n}const o=(e,t)=>{const n=e?.findIndex((({id:e})=>"string"==typeof e?e===t.id:i()(e,t.id))),r=[...e];return-1!==n?r[n]={id:t.id,changes:s(r[n].changes,t.changes)}:r.push(t),r};function a(){let e=[],t=[],n=0;const r=()=>{e=e.slice(0,n||void 0),n=0},s=()=>{var n;const r=0===e.length?0:e.length-1;let i=null!==(n=e[r])&&void 0!==n?n:[];t.forEach((e=>{i=o(i,e)})),t=[],e[r]=i};return{addRecord(n,a=!1){const c=!n||(e=>!e.filter((({changes:e})=>Object.values(e).some((({from:e,to:t})=>"function"!=typeof e&&"function"!=typeof t&&!i()(e,t))))).length)(n);if(a){if(c)return;n.forEach((e=>{t=o(t,e)}))}else{if(r(),t.length&&s(),c)return;e.push(n)}},undo(){t.length&&(r(),s());const i=e[e.length-1+n];if(i)return n-=1,i},redo(){const t=e[e.length+n];if(t)return n+=1,t},hasUndo(){return!!e[e.length-1+n]},hasRedo(){return!!e[e.length+n]}}}},2167:function(e){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 s=Object.keys(t).sort(),o=Array.isArray(t)?r:i,a=0;a<s.length;a++){var c=s[a];if(void 0===(o=o.get(c)))return;var u=t[c];if(void 0===(o=o.get(u)))return}var l=o.get("_ekm_value");return l?(n.delete(l[0]),l[0]=t,o.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,s,o;return i=e,s=[{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(),s=[n,r],o=Array.isArray(n)?this._arrayTreeMap:this._objectTreeMap,a=0;a<i.length;a++){var c=i[a];o.has(c)||o.set(c,new e),o=o.get(c);var u=n[c];o.has(u)||o.set(u,new e),o=o.get(u)}var l=o.get("_ekm_value");return l&&this._map.delete(l[0]),o.set("_ekm_value",s),this._map.set(n,s),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,s){null!==s&&"object"===t(s)&&(i=i[1]),e.call(r,i,s,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}}],s&&n(i.prototype,s),o&&n(i,o),e}();e.exports=i},5619:function(e){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,s;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=(s=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,s[i]))return!1;for(i=r;0!=i--;){var o=s[i];if(!e(t[o],n[o]))return!1}return!0}return t!=t&&n!=n}},9127:function(e){e.exports=window.wp.isShallowEqual}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var s=t[r]={exports:{}};return e[r](s,s.exports,n),s.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(){n.r(r),n.d(r,{EntityProvider:function(){return Cn},__experimentalFetchLinkSuggestions:function(){return Pn},__experimentalFetchUrlData:function(){return Dn},__experimentalUseEntityRecord:function(){return $n},__experimentalUseEntityRecords:function(){return Yn},__experimentalUseResourcePermissions:function(){return zn},store:function(){return Zn},useEntityBlockEditor:function(){return Un},useEntityId:function(){return An},useEntityProp:function(){return xn},useEntityRecord:function(){return Bn},useEntityRecords:function(){return Qn},useResourcePermissions:function(){return Kn}});var e={};n.r(e),n.d(e,{__experimentalBatch:function(){return ae},__experimentalReceiveCurrentGlobalStylesId:function(){return H},__experimentalReceiveThemeBaseGlobalStyles:function(){return W},__experimentalReceiveThemeGlobalStyleVariations:function(){return J},__experimentalSaveSpecifiedEntityEdits:function(){return ue},__unstableCreateUndoLevel:function(){return se},addEntities:function(){return Y},deleteEntityRecord:function(){return te},editEntityRecord:function(){return ne},receiveAutosaves:function(){return fe},receiveCurrentTheme:function(){return z},receiveCurrentUser:function(){return Q},receiveEmbedPreview:function(){return ee},receiveEntityRecords:function(){return K},receiveNavigationFallbackId:function(){return pe},receiveThemeGlobalStyleRevisions:function(){return X},receiveThemeSupports:function(){return Z},receiveUploadPermissions:function(){return le},receiveUserPermission:function(){return de},receiveUserQuery:function(){return F},redo:function(){return ie},saveEditedEntityRecord:function(){return ce},saveEntityRecord:function(){return oe},undo:function(){return re}});var t={};n.r(t),n.d(t,{__experimentalGetCurrentGlobalStylesId:function(){return Et},__experimentalGetCurrentThemeBaseGlobalStyles:function(){return It},__experimentalGetCurrentThemeGlobalStylesVariations:function(){return kt},__experimentalGetDirtyEntityRecords:function(){return Xe},__experimentalGetEntitiesBeingSaved:function(){return et},__experimentalGetEntityRecordNoResolver:function(){return He},__experimentalGetTemplateForLink:function(){return St},canUser:function(){return gt},canUserEditEntityRecord:function(){return _t},getAuthors:function(){return qe},getAutosave:function(){return Rt},getAutosaves:function(){return bt},getBlockPatternCategories:function(){return Ct},getBlockPatterns:function(){return Ot},getCurrentTheme:function(){return yt},getCurrentThemeGlobalStylesRevisions:function(){return xt},getCurrentUser:function(){return Be},getEditedEntityRecord:function(){return it},getEmbedPreview:function(){return vt},getEntitiesByKind:function(){return Fe},getEntitiesConfig:function(){return Qe},getEntity:function(){return Ye},getEntityConfig:function(){return Ke},getEntityRecord:function(){return ze},getEntityRecordEdits:function(){return tt},getEntityRecordNonTransientEdits:function(){return nt},getEntityRecords:function(){return Ze},getLastEntityDeleteError:function(){return ut},getLastEntitySaveError:function(){return ct},getRawEntityRecord:function(){return We},getRedoEdit:function(){return dt},getReferenceByDistinctEdits:function(){return Tt},getThemeSupports:function(){return ht},getUndoEdit:function(){return lt},getUserPatternCategories:function(){return At},getUserQueryResults:function(){return $e},hasEditsForEntityRecord:function(){return rt},hasEntityRecords:function(){return Je},hasFetchedAutosaves:function(){return wt},hasRedo:function(){return pt},hasUndo:function(){return ft},isAutosavingEntityRecord:function(){return st},isDeletingEntityRecord:function(){return at},isPreviewEmbedFallback:function(){return mt},isRequestingEmbedPreview:function(){return Ge},isSavingEntityRecord:function(){return ot}});var i={};n.r(i),n.d(i,{getNavigationFallbackId:function(){return Lt},getUndoManager:function(){return Ut}});var s={};n.r(s),n.d(s,{__experimentalGetCurrentGlobalStylesId:function(){return Jt},__experimentalGetCurrentThemeBaseGlobalStyles:function(){return Zt},__experimentalGetCurrentThemeGlobalStylesVariations:function(){return Xt},__experimentalGetTemplateForLink:function(){return Wt},canUser:function(){return Yt},canUserEditEntityRecord:function(){return Kt},getAuthors:function(){return Nt},getAutosave:function(){return Ht},getAutosaves:function(){return zt},getBlockPatternCategories:function(){return nn},getBlockPatterns:function(){return tn},getCurrentTheme:function(){return $t},getCurrentThemeGlobalStylesRevisions:function(){return en},getCurrentUser:function(){return Mt},getEditedEntityRecord:function(){return qt},getEmbedPreview:function(){return Qt},getEntityRecord:function(){return Vt},getEntityRecords:function(){return Bt},getNavigationFallbackId:function(){return sn},getRawEntityRecord:function(){return Gt},getThemeSupports:function(){return Ft},getUserPatternCategories:function(){return rn}});var o=window.wp.data,a=n(5619),c=n.n(a),u=window.wp.compose,l=n(5360);var d=e=>t=>(n,r)=>void 0===n||e(r)?t(n,r):n;var f=e=>t=>(n,r)=>t(n,e(r));var p=e=>t=>(n={},r)=>{const i=r[e];if(void 0===i)return n;const s=t(n[i],r);return s===n[i]?n:{...n,[i]:s}};var y=function(){return y=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},y.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;function E(e){return e.toLowerCase()}var h=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],v=/[^A-Z0-9]+/gi;function m(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,r=void 0===n?h:n,i=t.stripRegexp,s=void 0===i?v:i,o=t.transform,a=void 0===o?E:o,c=t.delimiter,u=void 0===c?" ":c,l=g(g(e,r,"$1\0$2"),s,"\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(u)}function g(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce((function(e,t){return e.replace(t,n)}),e)}function _(e){return function(e){return e.charAt(0).toUpperCase()+e.substr(1)}(e.toLowerCase())}function b(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 R(e,t){return void 0===t&&(t={}),m(e,y({delimiter:"",transform:b},t))}var w=window.wp.apiFetch,T=n.n(w),S=window.wp.i18n;var I={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let k;const O=new Uint8Array(16);function C(){if(!k&&(k="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!k))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return k(O)}const A=[];for(let e=0;e<256;++e)A.push((e+256).toString(16).slice(1));function x(e,t=0){return A[e[t+0]]+A[e[t+1]]+A[e[t+2]]+A[e[t+3]]+"-"+A[e[t+4]]+A[e[t+5]]+"-"+A[e[t+6]]+A[e[t+7]]+"-"+A[e[t+8]]+A[e[t+9]]+"-"+A[e[t+10]]+A[e[t+11]]+A[e[t+12]]+A[e[t+13]]+A[e[t+14]]+A[e[t+15]]}var U=function(e,t,n){if(I.randomUUID&&!t&&!e)return I.randomUUID();const r=(e=e||{}).random||(e.rng||C)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return x(r)},L=window.wp.url,P=window.wp.deprecated,j=n.n(P);function D(e,t,n){if(!e||"object"!=typeof e)return e;const r=Array.isArray(t)?t:t.split(".");return r.reduce(((e,t,i)=>(void 0===e[t]&&(Number.isInteger(r[i+1])?e[t]=[]:e[t]={}),i===r.length-1&&(e[t]=n),e[t])),e),e}function N(e,t,n){if(!e||"object"!=typeof e||"string"!=typeof t&&!Array.isArray(t))return e;const r=Array.isArray(t)?t:t.split(".");let i=e;return r.forEach((e=>{i=i?.[e]})),void 0!==i?i:n}function M(e,t){return{type:"RECEIVE_ITEMS",items:Array.isArray(e)?e:[e],persistedEdits:t}}let V=null;async function G(e){if(null===V){const e=await T()({path:"/batch/v1",method:"OPTIONS"});V=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,V)){const e=await T()({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: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}function q(e=G){let t=0,n=[];const r=new B;return{add(e){const i=++t;r.add(i);const s=e=>new Promise(((t,s)=>{n.push({input:e,resolve:t,reject:s}),r.delete(i)}));return"function"==typeof e?Promise.resolve(e(s)).finally((()=>{r.delete(i)})):s(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((({input:e})=>e))),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 s;e?.error?(r?.reject(e.error),i=!1):r?.resolve(null!==(s=e?.output)&&void 0!==s?s:e)})),n=[],i}}}class B{constructor(...e){this.set=new Set(...e),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 $="core";function F(e,t){return{type:"RECEIVE_USER_QUERY",users:Array.isArray(t)?t:[t],queryID:e}}function Q(e){return{type:"RECEIVE_CURRENT_USER",currentUser:e}}function Y(e){return{type:"ADD_ENTITIES",entities:e}}function K(e,t,n,r,i=!1,s){let o;return"postType"===e&&(n=(Array.isArray(n)?n:[n]).map((e=>"auto-draft"===e.status?{...e,title:""}:e))),o=r?function(e,t={},n){return{...M(e,n),query:t}}(n,r,s):M(n,s),{...o,kind:e,name:t,invalidateCache:i}}function z(e){return{type:"RECEIVE_CURRENT_THEME",currentTheme:e}}function H(e){return{type:"RECEIVE_CURRENT_GLOBAL_STYLES_ID",id:e}}function W(e,t){return{type:"RECEIVE_THEME_GLOBAL_STYLES",stylesheet:e,globalStyles:t}}function J(e,t){return{type:"RECEIVE_THEME_GLOBAL_STYLE_VARIATIONS",stylesheet:e,variations:t}}function Z(){return j()("wp.data.dispatch( 'core' ).receiveThemeSupports",{since:"5.9"}),{type:"DO_NOTHING"}}function X(e,t){return{type:"RECEIVE_THEME_GLOBAL_STYLE_REVISIONS",currentId:e,revisions:t}}function ee(e,t){return{type:"RECEIVE_EMBED_PREVIEW",url:e,preview:t}}const te=(e,t,n,r,{__unstableFetch:i=T(),throwOnError:s=!1}={})=>async({dispatch:o})=>{const a=(await o(_e(e))).find((n=>n.kind===e&&n.name===t));let c,u=!1;if(!a||a?.__experimentalNoFetch)return;const l=await o.__unstableAcquireStoreLock($,["entities","records",e,t,n],{exclusive:!0});try{o({type:"DELETE_ENTITY_RECORD_START",kind:e,name:t,recordId:n});let l=!1;try{let s=`${a.baseURL}/${n}`;r&&(s=(0,L.addQueryArgs)(s,r)),u=await i({path:s,method:"DELETE"}),await o(function(e,t,n,r=!1){return{type:"REMOVE_ITEMS",itemIds:Array.isArray(n)?n:[n],kind:e,name:t,invalidateCache:r}}(e,t,n,!0))}catch(e){l=!0,c=e}if(o({type:"DELETE_ENTITY_RECORD_FINISH",kind:e,name:t,recordId:n,error:c}),l&&s)throw c;return u}finally{o.__unstableReleaseStoreLock(l)}},ne=(e,t,n,r,i={})=>({select:s,dispatch:o})=>{const a=s.getEntityConfig(e,t);if(!a)throw new Error(`The entity being edited (${e}, ${t}) does not have a loaded config.`);const{mergedEdits:u={}}=a,l=s.getRawEntityRecord(e,t,n),d=s.getEditedEntityRecord(e,t,n),f={kind:e,name:t,recordId:n,edits:Object.keys(r).reduce(((e,t)=>{const n=l[t],i=d[t],s=u[t]?{...i,...r[t]}:r[t];return e[t]=c()(n,s)?void 0:s,e}),{})};window.__experimentalEnableSync&&a.syncConfig||(i.undoIgnore||s.getUndoManager().addRecord([{id:{kind:e,name:t,recordId:n},changes:Object.keys(r).reduce(((e,t)=>(e[t]={from:d[t],to:r[t]},e)),{})}],i.isCached),o({type:"EDIT_ENTITY_RECORD",...f}))},re=()=>({select:e,dispatch:t})=>{const n=e.getUndoManager().undo();n&&t({type:"UNDO",record:n})},ie=()=>({select:e,dispatch:t})=>{const n=e.getUndoManager().redo();n&&t({type:"REDO",record:n})},se=()=>({select:e})=>{e.getUndoManager().addRecord()},oe=(e,t,n,{isAutosave:r=!1,__unstableFetch:i=T(),throwOnError:s=!1}={})=>async({select:o,resolveSelect:a,dispatch:c})=>{const u=(await c(_e(e))).find((n=>n.kind===e&&n.name===t));if(!u||u?.__experimentalNoFetch)return;const l=u.key||ye,d=n[l],f=await c.__unstableAcquireStoreLock($,["entities","records",e,t,d||U()],{exclusive:!0});try{for(const[r,i]of Object.entries(n))if("function"==typeof i){const s=i(o.getEditedEntityRecord(e,t,d));c.editEntityRecord(e,t,d,{[r]:s},{undoIgnore:!0}),n[r]=s}let l,f;c({type:"SAVE_ENTITY_RECORD_START",kind:e,name:t,recordId:d,isAutosave:r});let p=!1;try{const s=`${u.baseURL}${d?"/"+d:""}`,f=o.getRawEntityRecord(e,t,d);if(r){const r=o.getCurrentUser(),u=r?r.id:void 0,d=await a.getAutosave(f.type,f.id,u);let p={...f,...d,...n};if(p=Object.keys(p).reduce(((e,t)=>(["title","excerpt","content","meta"].includes(t)&&(e[t]=p[t]),e)),{status:"auto-draft"===p.status?"draft":p.status}),l=await i({path:`${s}/autosaves`,method:"POST",data:p}),f.id===l.id){let n={...f,...p,...l};n=Object.keys(n).reduce(((e,t)=>(["title","excerpt","content"].includes(t)?e[t]=n[t]:e[t]="status"===t?"auto-draft"===f.status&&"draft"===n.status?n.status:f.status:f[t],e)),{}),c.receiveEntityRecords(e,t,n,void 0,!0)}else c.receiveAutosaves(f.id,l)}else{let r=n;u.__unstablePrePersist&&(r={...r,...u.__unstablePrePersist(f,r)}),l=await i({path:s,method:d?"PUT":"POST",data:r}),c.receiveEntityRecords(e,t,l,void 0,!0,r)}}catch(e){p=!0,f=e}if(c({type:"SAVE_ENTITY_RECORD_FINISH",kind:e,name:t,recordId:d,error:f,isAutosave:r}),p&&s)throw f;return l}finally{c.__unstableReleaseStoreLock(f)}},ae=e=>async({dispatch:t})=>{const n=q(),r={saveEntityRecord(e,r,i,s){return n.add((n=>t.saveEntityRecord(e,r,i,{...s,__unstableFetch:n})))},saveEditedEntityRecord(e,r,i,s){return n.add((n=>t.saveEditedEntityRecord(e,r,i,{...s,__unstableFetch:n})))},deleteEntityRecord(e,r,i,s,o){return n.add((n=>t.deleteEntityRecord(e,r,i,s,{...o,__unstableFetch:n})))}},i=e.map((e=>e(r))),[,...s]=await Promise.all([n.run(),...i]);return s},ce=(e,t,n,r)=>async({select:i,dispatch:s})=>{if(!i.hasEditsForEntityRecord(e,t,n))return;const o=(await s(_e(e))).find((n=>n.kind===e&&n.name===t));if(!o)return;const a=o.key||ye,c=i.getEntityRecordNonTransientEdits(e,t,n),u={[a]:n,...c};return await s.saveEntityRecord(e,t,u,r)},ue=(e,t,n,r,i)=>async({select:s,dispatch:o})=>{if(!s.hasEditsForEntityRecord(e,t,n))return;const a=s.getEntityRecordNonTransientEdits(e,t,n),c={};for(const e of r)D(c,e,N(a,e));const u=(await o(_e(e))).find((n=>n.kind===e&&n.name===t));return n&&(c[u?.key||ye]=n),await o.saveEntityRecord(e,t,c,i)};function le(e){return j()("wp.data.dispatch( 'core' ).receiveUploadPermissions",{since:"5.9",alternative:"receiveUserPermission"}),de("create/media",e)}function de(e,t){return{type:"RECEIVE_USER_PERMISSION",key:e,isAllowed:t}}function fe(e,t){return{type:"RECEIVE_AUTOSAVES",postId:e,autosaves:Array.isArray(t)?t:[t]}}function pe(e){return{type:"RECEIVE_NAVIGATION_FALLBACK_ID",fallbackId:e}}const ye="id",Ee=["title","excerpt","content"],he=[{label:(0,S.__)("Base"),kind:"root",name:"__unstableBase",baseURL:"/",baseURLParams:{_fields:["description","gmt_offset","home","name","site_icon","site_icon_url","site_logo","timezone_string","url"].join(",")},syncConfig:{fetch:async()=>T()({path:"/"}),applyChangesToDoc:(e,t)=>{const n=e.getMap("document");Object.entries(t).forEach((([e,t])=>{n.get(e)!==t&&n.set(e,t)}))},fromCRDTDoc:e=>e.getMap("document").toJSON()},syncObjectType:"root/base",getSyncObjectId:()=>"index"},{label:(0,S.__)("Site"),name:"site",kind:"root",baseURL:"/wp/v2/settings",getTitle:e=>{var t;return null!==(t=e?.title)&&void 0!==t?t:(0,S.__)("Site Title")},syncConfig:{fetch:async()=>T()({path:"/wp/v2/settings"}),applyChangesToDoc:(e,t)=>{const n=e.getMap("document");Object.entries(t).forEach((([e,t])=>{n.get(e)!==t&&n.set(e,t)}))},fromCRDTDoc:e=>e.getMap("document").toJSON()},syncObjectType:"root/site",getSyncObjectId:()=>"index"},{label:(0,S.__)("Post Type"),name:"postType",kind:"root",key:"slug",baseURL:"/wp/v2/types",baseURLParams:{context:"edit"},syncConfig:{fetch:async e=>T()({path:`/wp/v2/types/${e}?context=edit`}),applyChangesToDoc:(e,t)=>{const n=e.getMap("document");Object.entries(t).forEach((([e,t])=>{n.get(e)!==t&&n.set(e,t)}))},fromCRDTDoc:e=>e.getMap("document").toJSON()},syncObjectType:"root/postType",getSyncObjectId:e=>e},{name:"media",kind:"root",baseURL:"/wp/v2/media",baseURLParams:{context:"edit"},plural:"mediaItems",label:(0,S.__)("Media"),rawAttributes:["caption","title","description"]},{name:"taxonomy",kind:"root",key:"slug",baseURL:"/wp/v2/taxonomies",baseURLParams:{context:"edit"},plural:"taxonomies",label:(0,S.__)("Taxonomy")},{name:"sidebar",kind:"root",baseURL:"/wp/v2/sidebars",baseURLParams:{context:"edit"},plural:"sidebars",transientEdits:{blocks:!0},label:(0,S.__)("Widget areas")},{name:"widget",kind:"root",baseURL:"/wp/v2/widgets",baseURLParams:{context:"edit"},plural:"widgets",transientEdits:{blocks:!0},label:(0,S.__)("Widgets")},{name:"widgetType",kind:"root",baseURL:"/wp/v2/widget-types",baseURLParams:{context:"edit"},plural:"widgetTypes",label:(0,S.__)("Widget types")},{label:(0,S.__)("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,S.__)("Comment")},{name:"menu",kind:"root",baseURL:"/wp/v2/menus",baseURLParams:{context:"edit"},plural:"menus",label:(0,S.__)("Menu")},{name:"menuItem",kind:"root",baseURL:"/wp/v2/menu-items",baseURLParams:{context:"edit"},plural:"menuItems",label:(0,S.__)("Menu Item"),rawAttributes:["title"]},{name:"menuLocation",kind:"root",baseURL:"/wp/v2/menu-locations",baseURLParams:{context:"edit"},plural:"menuLocations",label:(0,S.__)("Menu Location"),key:"name"},{label:(0,S.__)("Global Styles"),name:"globalStyles",kind:"root",baseURL:"/wp/v2/global-styles",baseURLParams:{context:"edit"},plural:"globalStylesVariations",getTitle:e=>e?.title?.rendered||e?.title},{label:(0,S.__)("Themes"),name:"theme",kind:"root",baseURL:"/wp/v2/themes",baseURLParams:{context:"edit"},key:"stylesheet"},{label:(0,S.__)("Plugins"),name:"plugin",kind:"root",baseURL:"/wp/v2/plugins",baseURLParams:{context:"edit"},key:"plugin"}],ve=[{kind:"postType",loadEntities:async function(){const e=await T()({path:"/wp/v2/types?context=view"});return Object.entries(null!=e?e:{}).map((([e,t])=>{var n;const r=["wp_template","wp_template_part"].includes(e),i=null!==(n=t?.rest_namespace)&&void 0!==n?n:"wp/v2";return{kind:"postType",baseURL:`/${i}/${t.rest_base}`,baseURLParams:{context:"edit"},name:e,label:t.name,transientEdits:{blocks:!0,selection:!0},mergedEdits:{meta:!0},rawAttributes:Ee,getTitle:e=>{var t,n,i;return e?.title?.rendered||e?.title||(r?(n=null!==(t=e.slug)&&void 0!==t?t:"",void 0===i&&(i={}),m(n,y({delimiter:" ",transform:_},i))):String(e.id))},__unstablePrePersist:r?void 0:me,__unstable_rest_base:t.rest_base,syncConfig:{fetch:async e=>T()({path:`/${i}/${t.rest_base}/${e}?context=edit`}),applyChangesToDoc:(e,t)=>{const n=e.getMap("document");Object.entries(t).forEach((([e,t])=>{n.get(e)!==t&&"function"!=typeof t&&n.set(e,t)}))},fromCRDTDoc:e=>e.getMap("document").toJSON()},syncObjectType:"postType/"+t.name,getSyncObjectId:e=>e}}))}},{kind:"taxonomy",loadEntities:async function(){const e=await T()({path:"/wp/v2/taxonomies?context=view"});return Object.entries(null!=e?e:{}).map((([e,t])=>{var n;return{kind:"taxonomy",baseURL:`/${null!==(n=t?.rest_namespace)&&void 0!==n?n:"wp/v2"}/${t.rest_base}`,baseURLParams:{context:"edit"},name:e,label:t.name}}))}}],me=(e,t)=>{const n={};return"auto-draft"===e?.status&&(t.status||n.status||(n.status="draft"),t.title&&"Auto Draft"!==t.title||n.title||e?.title&&"Auto Draft"!==e?.title||(n.title="")),n};const ge=(e,t,n="get",r=!1)=>{const i=he.find((n=>n.kind===e&&n.name===t)),s="root"===e?"":R(e),o=R(t)+(r?"s":"");return`${n}${s}${r&&"plural"in i&&i?.plural?R(i.plural):o}`};const _e=e=>async({select:t,dispatch:n})=>{let r=t.getEntitiesConfig(e);if(r&&0!==r.length)return window.__experimentalEnableSync,r;const i=ve.find((t=>t.kind===e));return i?(r=await i.loadEntities(),window.__experimentalEnableSync,n(Y(r)),r):[]};var be=function(e){return"string"==typeof e?e.split(","):Array.isArray(e)?e:null};var Re=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}};var we=Re((function(e){const t={stableKey:"",page:1,perPage:10,fields:null,include:null,context:"default"},n=Object.keys(e).sort();for(let s=0;s<n.length;s++){const o=n[s];let a=e[o];switch(o){case"page":t[o]=Number(a);break;case"per_page":t.perPage=Number(a);break;case"context":t.context=a;break;default:var r,i;if("_fields"===o)t.fields=null!==(r=be(a))&&void 0!==r?r:[],a=t.fields.join();if("include"===o)"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,L.addQueryArgs)("",{[o]:a}).slice(1)}}return t}));function Te(e){const{query:t}=e;if(!t)return"default";return we(t).context}function Se(e,t){return Object.fromEntries(Object.entries(e).filter((([e])=>!t.some((t=>Number.isInteger(t)?t===+e:t===e)))))}const Ie=(0,u.compose)([d((e=>"query"in e)),f((e=>e.query?{...e,...we(e.query)}:e)),p("context"),p("stableKey")])(((e=null,t)=>{const{type:n,page:r,perPage:i,key:s=ye}=t;return"RECEIVE_ITEMS"!==n?e:function(e,t,n,r){var i;if(1===n&&-1===r)return t;const s=(n-1)*r,o=Math.max(null!==(i=e?.length)&&void 0!==i?i:0,s+t.length),a=new Array(o);for(let n=0;n<o;n++){const r=n>=s&&n<s+t.length;a[n]=r?t[n-s]:e?.[n]}return a}(e||[],t.items.map((e=>e[s])),r,i)}));var ke=(0,o.combineReducers)({items:function(e={},t){switch(t.type){case"RECEIVE_ITEMS":{const n=Te(t),r=t.key||ye;return{...e,[n]:{...e[n],...t.items.reduce(((t,i)=>{const s=i[r];return t[s]=function(e,t){if(!e)return t;let n=!1;const r={};for(const i in t)c()(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}(e?.[n]?.[s],i),t}),{})}}}case"REMOVE_ITEMS":return Object.fromEntries(Object.entries(e).map((([e,n])=>[e,Se(n,t.itemIds)])))}return e},itemIsComplete:function(e={},t){switch(t.type){case"RECEIVE_ITEMS":{const n=Te(t),{query:r,key:i=ye}=t,s=r?we(r):{},o=!r||!Array.isArray(s.fields);return{...e,[n]:{...e[n],...t.items.reduce(((t,r)=>{const s=r[i];return t[s]=e?.[n]?.[s]||o,t}),{})}}}case"REMOVE_ITEMS":return Object.fromEntries(Object.entries(e).map((([e,n])=>[e,Se(n,t.itemIds)])))}return e},queries:(e={},t)=>{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 Object.fromEntries(Object.entries(e).map((([e,t])=>[e,Object.fromEntries(Object.entries(t).map((([e,t])=>[e,t.filter((e=>!n[e]))])))])));default:return e}}});const Oe=e=>(t,n)=>{if("UNDO"===n.type||"REDO"===n.type){const{record:r}=n;let i=t;return r.forEach((({id:{kind:t,name:r,recordId:s},changes:o})=>{i=e(i,{type:"EDIT_ENTITY_RECORD",kind:t,name:r,recordId:s,edits:Object.entries(o).reduce(((e,[t,r])=>(e[t]="UNDO"===n.type?r.from:r.to,e)),{})})})),i}return e(t,n)};function Ce(e){return(0,u.compose)([Oe,d((t=>t.name&&t.kind&&t.name===e.name&&t.kind===e.kind)),f((t=>({...t,key:e.key||ye})))])((0,o.combineReducers)({queriedData:ke,edits:(e={},t)=>{var n;switch(t.type){case"RECEIVE_ITEMS":if("default"!==(null!==(n=t?.query?.context)&&void 0!==n?n:"default"))return e;const r={...e};for(const e of t.items){const n=e[t.key],i=r[n];if(!i)continue;const s=Object.keys(i).reduce(((n,r)=>{var s;return c()(i[r],null!==(s=e[r]?.raw)&&void 0!==s?s:e[r])||t.persistedEdits&&c()(i[r],t.persistedEdits[r])||(n[r]=i[r]),n}),{});Object.keys(s).length?r[n]=s:delete r[n]}return r;case"EDIT_ENTITY_RECORD":const i={...e[t.recordId],...t.edits};return Object.keys(i).forEach((e=>{void 0===i[e]&&delete i[e]})),{...e,[t.recordId]:i}}return e},saving:(e={},t)=>{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:(e={},t)=>{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}}))}var Ae=(0,o.combineReducers)({terms:function(e={},t){return"RECEIVE_TERMS"===t.type?{...e,[t.taxonomy]:t.terms}:e},users:function(e={byId:{},queries:{}},t){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(e=void 0,t){return"RECEIVE_CURRENT_THEME"===t.type?t.currentTheme.stylesheet:e},currentGlobalStylesId:function(e=void 0,t){return"RECEIVE_CURRENT_GLOBAL_STYLES_ID"===t.type?t.id:e},currentUser:function(e={},t){return"RECEIVE_CURRENT_USER"===t.type?t.currentUser:e},themeGlobalStyleVariations:function(e={},t){return"RECEIVE_THEME_GLOBAL_STYLE_VARIATIONS"===t.type?{...e,[t.stylesheet]:t.variations}:e},themeBaseGlobalStyles:function(e={},t){return"RECEIVE_THEME_GLOBAL_STYLES"===t.type?{...e,[t.stylesheet]:t.globalStyles}:e},themeGlobalStyleRevisions:function(e={},t){return"RECEIVE_THEME_GLOBAL_STYLE_REVISIONS"===t.type?{...e,[t.currentId]:t.revisions}:e},taxonomies:function(e=[],t){return"RECEIVE_TAXONOMIES"===t.type?t.taxonomies:e},entities:(e={},t)=>{const n=function(e=he,t){return"ADD_ENTITIES"===t.type?[...e,...t.entities]:e}(e.config,t);let r=e.reducer;if(!r||n!==e.config){const e=n.reduce(((e,t)=>{const{kind:n}=t;return e[n]||(e[n]=[]),e[n].push(t),e}),{});r=(0,o.combineReducers)(Object.entries(e).reduce(((e,[t,n])=>{const r=(0,o.combineReducers)(n.reduce(((e,t)=>({...e,[t.name]:Ce(t)})),{}));return e[t]=r,e}),{}))}const i=r(e.records,t);return i===e.records&&n===e.config&&r===e.reducer?e:{reducer:r,records:i,config:n}},editsReference:function(e={},t){switch(t.type){case"EDIT_ENTITY_RECORD":case"UNDO":case"REDO":return{}}return e},undoManager:function(e=(0,l.createUndoManager)()){return e},embedPreviews:function(e={},t){if("RECEIVE_EMBED_PREVIEW"===t.type){const{url:n,preview:r}=t;return{...e,[n]:r}}return e},userPermissions:function(e={},t){return"RECEIVE_USER_PERMISSION"===t.type?{...e,[t.key]:t.isAllowed}:e},autosaves:function(e={},t){if("RECEIVE_AUTOSAVES"===t.type){const{postId:n,autosaves:r}=t;return{...e,[n]:r}}return e},blockPatterns:function(e=[],t){return"RECEIVE_BLOCK_PATTERNS"===t.type?t.patterns:e},blockPatternCategories:function(e=[],t){return"RECEIVE_BLOCK_PATTERN_CATEGORIES"===t.type?t.categories:e},userPatternCategories:function(e=[],t){return"RECEIVE_USER_PATTERN_CATEGORIES"===t.type?t.patternCategories:e},navigationFallbackId:function(e=null,t){return"RECEIVE_NAVIGATION_FALLBACK_ID"===t.type?t.fallbackId:e}}),xe={};function Ue(e){return[e]}function Le(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 Pe(e,t){var n,r=t||Ue;function i(){n=new WeakMap}function s(){var t,i,s,o,a,c=arguments.length;for(o=new Array(c),s=0;s<c;s++)o[s]=arguments[s];for(t=function(e){var t,r,i,s,o,a=n,c=!0;for(t=0;t<e.length;t++){if(!(o=r=e[t])||"object"!=typeof o){c=!1;break}a.has(r)?a=a.get(r):(i=new WeakMap,a.set(r,i),a=i)}return a.has(xe)||((s=function(){var e={clear:function(){e.head=null}};return e}()).isUniqueByDependants=c,a.set(xe,s)),a.get(xe)}(a=r.apply(null,o)),t.isUniqueByDependants||(t.lastDependants&&!Le(a,t.lastDependants,0)&&t.clear(),t.lastDependants=a),i=t.head;i;){if(Le(i.args,o,1))return i!==t.head&&(i.prev.next=i.next,i.next&&(i.next.prev=i.prev),i.next=t.head,i.prev=null,t.head.prev=i,t.head=i),i.val;i=i.next}return i={val:e.apply(null,o)},o[0]=null,i.args=o,t.head&&(t.head.prev=i,i.next=t.head),t.head=i,i.val}return s.getDependants=r,s.clear=i,i(),s}var je=n(2167),De=n.n(je);const Ne=new WeakMap;const Me=Pe(((e,t={})=>{let n=Ne.get(e);if(n){const e=n.get(t);if(void 0!==e)return e}else n=new(De()),Ne.set(e,n);const r=function(e,t){const{stableKey:n,page:r,perPage:i,include:s,fields:o,context:a}=we(t);let c;if(e.queries?.[a]?.[n]&&(c=e.queries[a][n]),!c)return null;const u=-1===i?0:(r-1)*i,l=-1===i?c.length:Math.min(u+i,c.length),d=[];for(let t=u;t<l;t++){const n=c[t];if(Array.isArray(s)&&!s.includes(n))continue;if(!e.items[a]?.hasOwnProperty(n))return null;const r=e.items[a][n];let i;if(Array.isArray(o)){i={};for(let e=0;e<o.length;e++){const t=o[e].split(".");let n=r;t.forEach((e=>{n=n?.[e]})),D(i,t,n)}}else{if(!e.itemIsComplete[a]?.[n])return null;i=r}d.push(i)}return d}(e,t);return n.set(t,r),r}));const Ve={},Ge=(0,o.createRegistrySelector)((e=>(t,n)=>e($).isResolving("getEmbedPreview",[n])));function qe(e,t){j()("select( 'core' ).getAuthors()",{since:"5.9",alternative:"select( 'core' ).getUsers({ who: 'authors' })"});const n=(0,L.addQueryArgs)("/wp/v2/users/?who=authors&per_page=100",t);return $e(e,n)}function Be(e){return e.currentUser}const $e=Pe(((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 Fe(e,t){return j()("wp.data.select( 'core' ).getEntitiesByKind()",{since:"6.0",alternative:"wp.data.select( 'core' ).getEntitiesConfig()"}),Qe(e,t)}function Qe(e,t){return e.entities.config.filter((e=>e.kind===t))}function Ye(e,t,n){return j()("wp.data.select( 'core' ).getEntity()",{since:"6.0",alternative:"wp.data.select( 'core' ).getEntityConfig()"}),Ke(e,t,n)}function Ke(e,t,n){return e.entities.config?.find((e=>e.kind===t&&e.name===n))}const ze=Pe(((e,t,n,r,i)=>{var s;const o=e.entities.records?.[t]?.[n]?.queriedData;if(!o)return;const a=null!==(s=i?.context)&&void 0!==s?s:"default";if(void 0===i){if(!o.itemIsComplete[a]?.[r])return;return o.items[a][r]}const c=o.items[a]?.[r];if(c&&i._fields){var u;const e={},t=null!==(u=be(i._fields))&&void 0!==u?u:[];for(let n=0;n<t.length;n++){const r=t[n].split(".");let i=c;r.forEach((e=>{i=i?.[e]})),D(e,r,i)}return e}return c}),((e,t,n,r,i)=>{var s;const o=null!==(s=i?.context)&&void 0!==s?s:"default";return[e.entities.records?.[t]?.[n]?.queriedData?.items[o]?.[r],e.entities.records?.[t]?.[n]?.queriedData?.itemIsComplete[o]?.[r]]}));function He(e,t,n,r){return ze(e,t,n,r)}const We=Pe(((e,t,n,r)=>{const i=ze(e,t,n,r);return i&&Object.keys(i).reduce(((r,s)=>{var o;(function(e,t){return(e.rawAttributes||[]).includes(t)})(Ke(e,t,n),s)?r[s]=null!==(o=i[s]?.raw)&&void 0!==o?o:i[s]:r[s]=i[s];return r}),{})}),((e,t,n,r,i)=>{var s;const o=null!==(s=i?.context)&&void 0!==s?s:"default";return[e.entities.config,e.entities.records?.[t]?.[n]?.queriedData?.items[o]?.[r],e.entities.records?.[t]?.[n]?.queriedData?.itemIsComplete[o]?.[r]]}));function Je(e,t,n,r){return Array.isArray(Ze(e,t,n,r))}const Ze=(e,t,n,r)=>{const i=e.entities.records?.[t]?.[n]?.queriedData;return i?Me(i,r):null},Xe=Pe((e=>{const{entities:{records:t}}=e,n=[];return Object.keys(t).forEach((r=>{Object.keys(t[r]).forEach((i=>{const s=Object.keys(t[r][i].edits).filter((t=>ze(e,r,i,t)&&rt(e,r,i,t)));if(s.length){const t=Ke(e,r,i);s.forEach((s=>{const o=it(e,r,i,s);n.push({key:o?o[t.key||ye]:void 0,title:t?.getTitle?.(o)||"",name:i,kind:r})}))}}))})),n}),(e=>[e.entities.records])),et=Pe((e=>{const{entities:{records:t}}=e,n=[];return Object.keys(t).forEach((r=>{Object.keys(t[r]).forEach((i=>{const s=Object.keys(t[r][i].saving).filter((t=>ot(e,r,i,t)));if(s.length){const t=Ke(e,r,i);s.forEach((s=>{const o=it(e,r,i,s);n.push({key:o?o[t.key||ye]:void 0,title:t?.getTitle?.(o)||"",name:i,kind:r})}))}}))})),n}),(e=>[e.entities.records]));function tt(e,t,n,r){return e.entities.records?.[t]?.[n]?.edits?.[r]}const nt=Pe(((e,t,n,r)=>{const{transientEdits:i}=Ke(e,t,n)||{},s=tt(e,t,n,r)||{};return i?Object.keys(s).reduce(((e,t)=>(i[t]||(e[t]=s[t]),e)),{}):s}),((e,t,n,r)=>[e.entities.config,e.entities.records?.[t]?.[n]?.edits?.[r]]));function rt(e,t,n,r){return ot(e,t,n,r)||Object.keys(nt(e,t,n,r)).length>0}const it=Pe(((e,t,n,r)=>({...We(e,t,n,r),...tt(e,t,n,r)})),((e,t,n,r,i)=>{var s;const o=null!==(s=i?.context)&&void 0!==s?s:"default";return[e.entities.config,e.entities.records?.[t]?.[n]?.queriedData.items[o]?.[r],e.entities.records?.[t]?.[n]?.queriedData.itemIsComplete[o]?.[r],e.entities.records?.[t]?.[n]?.edits?.[r]]}));function st(e,t,n,r){var i;const{pending:s,isAutosave:o}=null!==(i=e.entities.records?.[t]?.[n]?.saving?.[r])&&void 0!==i?i:{};return Boolean(s&&o)}function ot(e,t,n,r){var i;return null!==(i=e.entities.records?.[t]?.[n]?.saving?.[r]?.pending)&&void 0!==i&&i}function at(e,t,n,r){var i;return null!==(i=e.entities.records?.[t]?.[n]?.deleting?.[r]?.pending)&&void 0!==i&&i}function ct(e,t,n,r){return e.entities.records?.[t]?.[n]?.saving?.[r]?.error}function ut(e,t,n,r){return e.entities.records?.[t]?.[n]?.deleting?.[r]?.error}function lt(e){j()("select( 'core' ).getUndoEdit()",{since:"6.3"})}function dt(e){j()("select( 'core' ).getRedoEdit()",{since:"6.3"})}function ft(e){return e.undoManager.hasUndo()}function pt(e){return e.undoManager.hasRedo()}function yt(e){return ze(e,"root","theme",e.currentTheme)}function Et(e){return e.currentGlobalStylesId}function ht(e){var t;return null!==(t=yt(e)?.theme_supports)&&void 0!==t?t:Ve}function vt(e,t){return e.embedPreviews[t]}function mt(e,t){const n=e.embedPreviews[t],r='<a href="'+t+'">'+t+"</a>";return!!n&&n.html===r}function gt(e,t,n,r){const i=[t,n,r].filter(Boolean).join("/");return e.userPermissions[i]}function _t(e,t,n,r){const i=Ke(e,t,n);if(!i)return!1;return gt(e,"update",i.__unstable_rest_base,r)}function bt(e,t,n){return e.autosaves[n]}function Rt(e,t,n,r){if(void 0===r)return;const i=e.autosaves[n];return i?.find((e=>e.author===r))}const wt=(0,o.createRegistrySelector)((e=>(t,n,r)=>e($).hasFinishedResolution("getAutosaves",[n,r])));function Tt(e){return e.editsReference}function St(e,t){const n=Ze(e,"postType","wp_template",{"find-template":t});return n?.length?it(e,"postType","wp_template",n[0].id):null}function It(e){const t=yt(e);return t?e.themeBaseGlobalStyles[t.stylesheet]:null}function kt(e){const t=yt(e);return t?e.themeGlobalStyleVariations[t.stylesheet]:null}function Ot(e){return e.blockPatterns}function Ct(e){return e.blockPatternCategories}function At(e){return e.userPatternCategories}function xt(e){const t=Et(e);return t?e.themeGlobalStyleRevisions[t]:null}function Ut(e){return e.undoManager}function Lt(e){return e.navigationFallbackId}function Pt(e,t){return 0===t?e.toLowerCase():b(e,t)}function jt(e,t){return void 0===t&&(t={}),R(e,y({transform:Pt},t))}var Dt=e=>(...t)=>async({resolveSelect:n})=>{await n[e](...t)};const Nt=e=>async({dispatch:t})=>{const n=(0,L.addQueryArgs)("/wp/v2/users/?who=authors&per_page=100",e),r=await T()({path:n});t.receiveUserQuery(n,r)},Mt=()=>async({dispatch:e})=>{const t=await T()({path:"/wp/v2/users/me"});e.receiveCurrentUser(t)},Vt=(e,t,n="",r)=>async({select:i,dispatch:s})=>{const o=(await s(_e(e))).find((n=>n.name===t&&n.kind===e));if(!o||o?.__experimentalNoFetch)return;const a=await s.__unstableAcquireStoreLock($,["entities","records",e,t,n],{exclusive:!1});try{if(window.__experimentalEnableSync&&o.syncConfig&&!r)0;else{void 0!==r&&r._fields&&(r={...r,_fields:[...new Set([...be(r._fields)||[],o.key||ye])].join()});const a=(0,L.addQueryArgs)(o.baseURL+(n?"/"+n:""),{...o.baseURLParams,...r});if(void 0!==r){r={...r,include:[n]};if(i.hasEntityRecords(e,t,r))return}const c=await T()({path:a});s.receiveEntityRecords(e,t,c,r)}}finally{s.__unstableReleaseStoreLock(a)}},Gt=Dt("getEntityRecord"),qt=Dt("getEntityRecord"),Bt=(e,t,n={})=>async({dispatch:r})=>{const i=(await r(_e(e))).find((n=>n.name===t&&n.kind===e));if(!i||i?.__experimentalNoFetch)return;const s=await r.__unstableAcquireStoreLock($,["entities","records",e,t],{exclusive:!1});try{n._fields&&(n={...n,_fields:[...new Set([...be(n._fields)||[],i.key||ye])].join()});const s=(0,L.addQueryArgs)(i.baseURL,{...i.baseURLParams,...n});let o=Object.values(await T()({path:s}));if(n._fields&&(o=o.map((e=>(n._fields.split(",").forEach((t=>{e.hasOwnProperty(t)||(e[t]=void 0)})),e)))),r.receiveEntityRecords(e,t,o,n),!n?._fields&&!n.context){const n=i.key||ye,s=o.filter((e=>e[n])).map((r=>[e,t,r[n]]));r({type:"START_RESOLUTIONS",selectorName:"getEntityRecord",args:s}),r({type:"FINISH_RESOLUTIONS",selectorName:"getEntityRecord",args:s})}}finally{r.__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({dispatch:e,resolveSelect:t})=>{const n=await t.getEntityRecords("root","theme",{status:"active"});e.receiveCurrentTheme(n[0])},Ft=Dt("getCurrentTheme"),Qt=e=>async({dispatch:t})=>{try{const n=await T()({path:(0,L.addQueryArgs)("/oembed/1.0/proxy",{url:e})});t.receiveEmbedPreview(e,n)}catch(n){t.receiveEmbedPreview(e,!1)}},Yt=(e,t,n)=>async({dispatch:r,registry:i})=>{const{hasStartedResolution:s}=i.select($),o=n?`${t}/${n}`:t,a=["create","read","update","delete"];if(!a.includes(e))throw new Error(`'${e}' is not a valid action.`);for(const r of a){if(r===e)continue;if(s("canUser",[r,t,n]))return}let c;try{c=await T()({path:`/wp/v2/${o}`,method:"OPTIONS",parse:!1})}catch(e){return}const u=c.headers?.get("allow"),l=u?.allow||u||"",d={},f={create:"POST",read:"GET",update:"PUT",delete:"DELETE"};for(const[e,t]of Object.entries(f))d[e]=l.includes(t);for(const e of a)r.receiveUserPermission(`${e}/${o}`,d[e])},Kt=(e,t,n)=>async({dispatch:r})=>{const i=(await r(_e(e))).find((n=>n.name===t&&n.kind===e));if(!i)return;const s=i.__unstable_rest_base;await r(Yt("update",s,n))},zt=(e,t)=>async({dispatch:n,resolveSelect:r})=>{const{rest_base:i,rest_namespace:s="wp/v2"}=await r.getPostType(e),o=await T()({path:`/${s}/${i}/${t}/autosaves?context=edit`});o&&o.length&&n.receiveAutosaves(t,o)},Ht=(e,t)=>async({resolveSelect:n})=>{await n.getAutosaves(e,t)},Wt=e=>async({dispatch:t,resolveSelect:n})=>{let r;try{r=await T()({url:(0,L.addQueryArgs)(e,{"_wp-find-template":!0})}).then((({data:e})=>e))}catch(e){}if(!r)return;const i=await n.getEntityRecord("postType","wp_template",r.id);i&&t.receiveEntityRecords("postType","wp_template",[i],{"find-template":e})};Wt.shouldInvalidate=e=>("RECEIVE_ITEMS"===e.type||"REMOVE_ITEMS"===e.type)&&e.invalidateCache&&"postType"===e.kind&&"wp_template"===e.name;const Jt=()=>async({dispatch:e,resolveSelect:t})=>{const n=await t.getEntityRecords("root","theme",{status:"active"}),r=n?.[0]?._links?.["wp:user-global-styles"]?.[0]?.href;if(r){const t=await T()({url:r});e.__experimentalReceiveCurrentGlobalStylesId(t.id)}},Zt=()=>async({resolveSelect:e,dispatch:t})=>{const n=await e.getCurrentTheme(),r=await T()({path:`/wp/v2/global-styles/themes/${n.stylesheet}`});t.__experimentalReceiveThemeBaseGlobalStyles(n.stylesheet,r)},Xt=()=>async({resolveSelect:e,dispatch:t})=>{const n=await e.getCurrentTheme(),r=await T()({path:`/wp/v2/global-styles/themes/${n.stylesheet}/variations`});t.__experimentalReceiveThemeGlobalStyleVariations(n.stylesheet,r)},en=()=>async({resolveSelect:e,dispatch:t})=>{const n=await e.__experimentalGetCurrentGlobalStylesId(),r=n?await e.getEntityRecord("root","globalStyles",n):void 0,i=r?._links?.["version-history"]?.[0]?.href;if(i){const e=await T()({url:i}),r=e?.map((e=>Object.fromEntries(Object.entries(e).map((([e,t])=>[jt(e),t])))));t.receiveThemeGlobalStyleRevisions(n,r)}};en.shouldInvalidate=e=>"SAVE_ENTITY_RECORD_FINISH"===e.type&&"root"===e.kind&&!e.error&&"globalStyles"===e.name;const tn=()=>async({dispatch:e})=>{const t=await T()({path:"/wp/v2/block-patterns/patterns"}),n=t?.map((e=>Object.fromEntries(Object.entries(e).map((([e,t])=>[jt(e),t])))));e({type:"RECEIVE_BLOCK_PATTERNS",patterns:n})},nn=()=>async({dispatch:e})=>{e({type:"RECEIVE_BLOCK_PATTERN_CATEGORIES",categories:await T()({path:"/wp/v2/block-patterns/categories"})})},rn=()=>async({dispatch:e,resolveSelect:t})=>{const n=await t.getEntityRecords("taxonomy","wp_pattern_category",{per_page:-1,_fields:"id,name,description,slug",context:"view"});e({type:"RECEIVE_USER_PATTERN_CATEGORIES",patternCategories:n?.map((e=>({...e,label:e.name,name:e.slug})))||[]})},sn=()=>async({dispatch:e,select:t})=>{const n=await T()({path:(0,L.addQueryArgs)("/wp-block-editor/v1/navigation-fallback",{_embed:!0})}),r=n?._embedded?.self;if(e.receiveNavigationFallbackId(n?.id),r){const i=!t.getEntityRecord("postType","wp_navigation",n?.id);e.receiveEntityRecords("postType","wp_navigation",r,void 0,i),e.finishResolution("getEntityRecord",["postType","wp_navigation",n?.id])}};function on(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 an(e,t){let n=e;for(const e of t){const t=n.children[e];if(!t)return null;n=t}return n}function cn({exclusive:e},t){return!(!e||!t.length)||!(e||!t.filter((e=>e.exclusive)).length)}const un={requests:[],tree:{locks:[],children:{}}};function ln(e=un,t){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:s}=r,o=[i,...s],a=on(e.tree,o),c=an(a,o);return c.locks=[...c.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=on(e.tree,r),s=an(i,r);return s.locks=s.locks.filter((e=>e!==n)),{...e,tree:i}}}return e}function dn(e,t,n,{exclusive:r}){const i=[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,i))if(cn({exclusive:r},e.locks))return!1;const o=an(s,i);if(!o)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))}}(o))if(cn({exclusive:r},e.locks))return!1;return!0}function fn(){let e=ln(void 0,{type:"@@INIT"});function t(){for(const t of function(e){return e.requests}(e)){const{store:n,path:r,exclusive:i,notifyAcquired:s}=t;if(dn(e,n,r,{exclusive:i})){const o={store:n,path:r,exclusive:i};e=ln(e,{type:"GRANT_LOCK_REQUEST",lock:o,request:t}),s(o)}}}return{acquire:function(n,r,i){return new Promise((s=>{e=ln(e,{type:"ENQUEUE_LOCK_REQUEST",request:{store:n,path:r,exclusive:i,notifyAcquired:s}}),t()}))},release:function(n){e=ln(e,{type:"RELEASE_LOCK",lock:n}),t()}}}function pn(){const e=fn();return{__unstableAcquireStoreLock:function(t,n,{exclusive:r}){return()=>e.acquire(t,n,r)},__unstableReleaseStoreLock:function(t){return()=>e.release(t)}}}var yn=window.wp.privateApis;const{lock:En,unlock:hn}=(0,yn.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.","@wordpress/core-data");var vn=window.wp.element,mn=window.wp.blocks,gn=window.wp.blockEditor;let _n;const bn=new WeakMap;const Rn=new WeakMap;function wn(e){if(!Rn.has(e)){const t=function(e){if(_n||(_n=hn(gn.privateApis)),!bn.has(e)){const t=_n.getRichTextValues([e]);bn.set(e,t)}return bn.get(e)}(e).join(""),n=[];if(-1!==t.indexOf("data-fn")){const e=/data-fn="([^"]+)"/g;let r;for(;null!==(r=e.exec(t));)n.push(r[1])}Rn.set(e,n)}return Rn.get(e)}let Tn={};function Sn(e,t){const n={blocks:e};if(!t)return n;if(void 0===t.footnotes)return n;const r=function(e){return e.flatMap(wn)}(e),i=t.footnotes?JSON.parse(t.footnotes):[];if(i.map((e=>e.id)).join("")===r.join(""))return n;const s=r.map((e=>i.find((t=>t.id===e))||Tn[e]||{id:e,content:""}));function o(e){if(!e||Array.isArray(e)||"object"!=typeof e)return e;e={...e};for(const t in e){const n=e[t];if(Array.isArray(n)){e[t]=n.map(o);continue}if("string"!=typeof n)continue;if(-1===n.indexOf("data-fn"))continue;const i=/(<sup[^>]+data-fn="([^"]+)"[^>]*><a[^>]*>)[\d*]*<\/a><\/sup>/g;e[t]=n.replace(i,((e,t,n)=>`${t}${r.indexOf(n)+1}</a></sup>`));const s=/<a[^>]+data-fn="([^"]+)"[^>]*>\*<\/a>/g;e[t]=e[t].replace(s,((e,t)=>`<sup data-fn="${t}" class="fn"><a href="#${t}" id="${t}-link">${r.indexOf(t)+1}</a></sup>`))}return e}const a=function e(t){return t.map((t=>({...t,attributes:o(t.attributes),innerBlocks:e(t.innerBlocks)})))}(e);return Tn={...Tn,...i.reduce(((e,t)=>(r.includes(t.id)||(e[t.id]=t),e)),{})},{meta:{...t,footnotes:JSON.stringify(s)},blocks:a}}const In=[],kn={...he.reduce(((e,t)=>(e[t.kind]||(e[t.kind]={}),e[t.kind][t.name]={context:(0,vn.createContext)(void 0)},e)),{}),...ve.reduce(((e,t)=>(e[t.kind]={},e)),{})},On=(e,t)=>{if(!kn[e])throw new Error(`Missing entity config for kind: ${e}.`);return kn[e][t]||(kn[e][t]={context:(0,vn.createContext)(void 0)}),kn[e][t].context};function Cn({kind:e,type:t,id:n,children:r}){const i=On(e,t).Provider;return(0,vn.createElement)(i,{value:n},r)}function An(e,t){return(0,vn.useContext)(On(e,t))}function xn(e,t,n,r){const i=An(e,t),s=null!=r?r:i,{value:a,fullValue:c}=(0,o.useSelect)((r=>{const{getEntityRecord:i,getEditedEntityRecord:o}=r($),a=i(e,t,s),c=o(e,t,s);return a&&c?{value:c[n],fullValue:a[n]}:{}}),[e,t,s,n]),{editEntityRecord:u}=(0,o.useDispatch)($);return[a,(0,vn.useCallback)((r=>{u(e,t,s,{[n]:r})}),[u,e,t,s,n]),c]}function Un(e,t,{id:n}={}){const r=An(e,t),i=null!=n?n:r,{content:s,editedBlocks:a,meta:c}=(0,o.useSelect)((n=>{const{getEditedEntityRecord:r}=n($),s=r(e,t,i);return{editedBlocks:s.blocks,content:s.content,meta:s.meta}}),[e,t,i]),{__unstableCreateUndoLevel:u,editEntityRecord:l}=(0,o.useDispatch)($),d=(0,vn.useMemo)((()=>a||(s&&"function"!=typeof s?(0,mn.parse)(s):In)),[a,s]),f=(0,vn.useCallback)((e=>Sn(e,c)),[c]),p=(0,vn.useCallback)(((n,r)=>{if(d===n)return u(e,t,i);const{selection:s}=r,o={selection:s,content:({blocks:e=[]})=>(0,mn.__unstableSerializeAndClean)(e),...f(n)};l(e,t,i,o,{isCached:!1})}),[e,t,i,d,f,u,l]),y=(0,vn.useCallback)(((n,r)=>{const{selection:s}=r,o={selection:s,...f(n)};l(e,t,i,o,{isCached:!0})}),[e,t,i,f,l]);return[d,y,p]}var Ln=window.wp.htmlEntities;var Pn=async(e,t={},n={})=>{const{isInitialSuggestions:r=!1,type:i,subtype:s,page:o,perPage:a=(r?3:20)}=t,{disablePostFormats:c=!1}=n,u=[];return i&&"post"!==i||u.push(T()({path:(0,L.addQueryArgs)("/wp/v2/search",{search:e,page:o,per_page:a,type:"post",subtype:s})}).then((e=>e.map((e=>({...e,meta:{kind:"post-type",subtype:s}}))))).catch((()=>[]))),i&&"term"!==i||u.push(T()({path:(0,L.addQueryArgs)("/wp/v2/search",{search:e,page:o,per_page:a,type:"term",subtype:s})}).then((e=>e.map((e=>({...e,meta:{kind:"taxonomy",subtype:s}}))))).catch((()=>[]))),c||i&&"post-format"!==i||u.push(T()({path:(0,L.addQueryArgs)("/wp/v2/search",{search:e,page:o,per_page:a,type:"post-format",subtype:s})}).then((e=>e.map((e=>({...e,meta:{kind:"taxonomy",subtype:s}}))))).catch((()=>[]))),i&&"attachment"!==i||u.push(T()({path:(0,L.addQueryArgs)("/wp/v2/media",{search:e,page:o,per_page:a})}).then((e=>e.map((e=>({...e,meta:{kind:"media"}}))))).catch((()=>[]))),Promise.all(u).then((e=>e.reduce(((e,t)=>e.concat(t)),[]).filter((e=>!!e.id)).slice(0,a).map((e=>{const t="attachment"===e.type;return{id:e.id,url:t?e.source_url:e.url,title:(0,Ln.decodeEntities)(t?e.title.rendered:e.title||"")||(0,S.__)("(no title)"),type:e.subtype||e.type,kind:e?.meta?.kind}}))))};const jn=new Map;var Dn=async(e,t={})=>{const n={url:(0,L.prependHTTP)(e)};if(!(0,L.isURL)(e))return Promise.reject(`${e} is not a valid URL.`);const r=(0,L.getProtocol)(e);return r&&(0,L.isValidProtocol)(r)&&r.startsWith("http")&&/^https?:\/\/[^\/\s]/i.test(e)?jn.has(e)?jn.get(e):T()({path:(0,L.addQueryArgs)("/wp-block-editor/v1/url-details",n),...t}).then((t=>(jn.set(e,t),t))):Promise.reject(`${e} does not have a valid protocol. URLs must be "http" based`)};var Nn=function(e,t){var n,r,i=0;function s(){var s,o,a=n,c=arguments.length;e:for(;a;){if(a.args.length===arguments.length){for(o=0;o<c;o++)if(a.args[o]!==arguments[o]){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(s=new Array(c),o=0;o<c;o++)s[o]=arguments[o];return a={args:s,val:e.apply(null,s)},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||{},s.clear=function(){n=null,r=null,i=0},s};let Mn=function(e){return e.Idle="IDLE",e.Resolving="RESOLVING",e.Error="ERROR",e.Success="SUCCESS",e}({});const Vn=["getIsResolving","hasStartedResolution","hasFinishedResolution","isResolving","getCachedResolvers"];function Gn(e,t){return(0,o.useSelect)(((t,n)=>e((e=>qn(t(e))),n)),t)}const qn=Nn((e=>{const t={};for(const n in e)Vn.includes(n)||Object.defineProperty(t,n,{get:()=>(...t)=>{const{getIsResolving:r,hasFinishedResolution:i}=e,s=!!r(n,t),o=!s&&i(n,t),a=e[n](...t);let c;return c=s?Mn.Resolving:o?a?Mn.Success:Mn.Error:Mn.Idle,{data:a,status:c,isResolving:s,hasResolved:o}}});return t}));function Bn(e,t,n,r={enabled:!0}){const{editEntityRecord:i,saveEditedEntityRecord:s}=(0,o.useDispatch)(Zn),a=(0,vn.useMemo)((()=>({edit:(r,s={})=>i(e,t,n,r,s),save:(r={})=>s(e,t,n,{throwOnError:!0,...r})})),[i,e,t,n,s]),{editedRecord:c,hasEdits:u,edits:l}=(0,o.useSelect)((r=>({editedRecord:r(Zn).getEditedEntityRecord(e,t,n),hasEdits:r(Zn).hasEditsForEntityRecord(e,t,n),edits:r(Zn).getEntityRecordNonTransientEdits(e,t,n)})),[e,t,n]),{data:d,...f}=Gn((i=>r.enabled?i(Zn).getEntityRecord(e,t,n):{data:null}),[e,t,n,r.enabled]);return{record:d,editedRecord:c,hasEdits:u,edits:l,...f,...a}}function $n(e,t,n,r){return j()("wp.data.__experimentalUseEntityRecord",{alternative:"wp.data.useEntityRecord",since:"6.1"}),Bn(e,t,n,r)}const Fn=[];function Qn(e,t,n={},r={enabled:!0}){const i=(0,L.addQueryArgs)("",n),{data:s,...o}=Gn((i=>r.enabled?i(Zn).getEntityRecords(e,t,n):{data:Fn}),[e,t,i,r.enabled]);return{records:s,...o}}function Yn(e,t,n,r){return j()("wp.data.__experimentalUseEntityRecords",{alternative:"wp.data.useEntityRecords",since:"6.1"}),Qn(e,t,n,r)}function Kn(e,t){return Gn((n=>{const{canUser:r}=n(Zn),i=r("create",e);if(!t){const t=r("read",e),n=i.isResolving||t.isResolving,s=i.hasResolved&&t.hasResolved;let o=Mn.Idle;return n?o=Mn.Resolving:s&&(o=Mn.Success),{status:o,isResolving:n,hasResolved:s,canCreate:i.hasResolved&&i.data,canRead:t.hasResolved&&t.data}}const s=r("read",e,t),o=r("update",e,t),a=r("delete",e,t),c=s.isResolving||i.isResolving||o.isResolving||a.isResolving,u=s.hasResolved&&i.hasResolved&&o.hasResolved&&a.hasResolved;let l=Mn.Idle;return c?l=Mn.Resolving:u&&(l=Mn.Success),{status:l,isResolving:c,hasResolved:u,canRead:u&&s.data,canCreate:u&&i.data,canUpdate:u&&o.data,canDelete:u&&a.data}}),[e,t])}function zn(e,t){return j()("wp.data.__experimentalUseResourcePermissions",{alternative:"wp.data.useResourcePermissions",since:"6.1"}),Kn(e,t)}const Hn=he.reduce(((e,t)=>{const{kind:n,name:r}=t;return e[ge(n,r)]=(e,t,i)=>ze(e,n,r,t,i),e[ge(n,r,"get",!0)]=(e,t)=>Ze(e,n,r,t),e}),{}),Wn=he.reduce(((e,t)=>{const{kind:n,name:r}=t;e[ge(n,r)]=(e,t)=>Vt(n,r,e,t);const i=ge(n,r,"get",!0);return e[i]=(...e)=>Bt(n,r,...e),e[i].shouldInvalidate=e=>Bt.shouldInvalidate(e,n,r),e}),{}),Jn=he.reduce(((e,t)=>{const{kind:n,name:r}=t;return e[ge(n,r,"save")]=e=>oe(n,r,e),e[ge(n,r,"delete")]=(e,t)=>te(n,r,e,t),e}),{}),Zn=(0,o.createReduxStore)($,{reducer:Ae,actions:{...e,...Jn,...pn()},selectors:{...t,...Hn},resolvers:{...s,...Wn}});hn(Zn).registerPrivateSelectors(i),(0,o.register)(Zn)}(),(window.wp=window.wp||{}).coreData=r}();