WordPress/wp-includes/js/dist/core-data.min.js
jorgefilipecosta fb05ac9233 Block Editor: Update WordPress Packages WordPress 5.4 RC 3.
The following package versions were changed:
@wordpress/block-directory: 1.5.4 -> 1.5.5
@wordpress/block-editor: 3.7.4 -> 3.7.5
@wordpress/block-library: 2.14.4 -> 2.14.5
@wordpress/components: 9.2.3 -> 9.2.4
@wordpress/dependency-extraction-webpack-plugin: 2.3.0 -> 2.4.0
@wordpress/edit-post: 3.13.5 -> 3.13.6
@wordpress/editor: 9.12.4 -> 9.12.5
@wordpress/format-library: 1.14.4 -> 1.14.5
@wordpress/list-reusable-blocks: 1.13.3 -> 1.13.4
@wordpress/nux: 3.12.3 -> 3.12.4
@wordpress/server-side-render: 1.8.3 -> 1.8.4

Props aduth.
Merges [47462] to the 5.4 branch.
Fixes: #49657.
Built from https://develop.svn.wordpress.org/branches/5.4@47463


git-svn-id: http://core.svn.wordpress.org/branches/5.4@47250 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-03-17 19:08:20 +00:00

2 lines
40 KiB
JavaScript

/*! This file is auto-generated */
this.wp=this.wp||{},this.wp.coreData=function(e){var t={};function r(n){if(t[n])return t[n].exports;var c=t[n]={i:n,l:!1,exports:{}};return e[n].call(c.exports,c,c.exports,r),c.l=!0,c.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var c in e)r.d(n,c,function(t){return e[t]}.bind(null,c));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=426)}({0:function(e,t){!function(){e.exports=this.wp.element}()},10:function(e,t){!function(){e.exports=this.wp.blocks}()},18:function(e,t,r){"use strict";var n=r(33);function c(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||Object(n.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}r.d(t,"a",(function(){return c}))},2:function(e,t){!function(){e.exports=this.lodash}()},20:function(e,t,r){"use strict";var n=r(36);var c=r(37);function o(e,t){return Object(n.a)(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var r=[],n=!0,c=!1,o=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){c=!0,o=e}finally{try{n||null==u.return||u.return()}finally{if(c)throw o}}return r}}(e,t)||Object(c.a)()}r.d(t,"a",(function(){return o}))},23:function(e,t){!function(){e.exports=this.regeneratorRuntime}()},28:function(e,t){!function(){e.exports=this.wp.url}()},33:function(e,t,r){"use strict";function n(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}r.d(t,"a",(function(){return n}))},35:function(e,t){!function(){e.exports=this.wp.deprecated}()},36:function(e,t,r){"use strict";function n(e){if(Array.isArray(e))return e}r.d(t,"a",(function(){return n}))},37:function(e,t,r){"use strict";function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}r.d(t,"a",(function(){return n}))},38:function(e,t,r){"use strict";var n,c;function o(e){return[e]}function a(){var e={clear:function(){e.head=null}};return e}function u(e,t,r){var n;if(e.length!==t.length)return!1;for(n=r;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}n={},c="undefined"!=typeof WeakMap,t.a=function(e,t){var r,i;function s(){r=c?new WeakMap:a()}function f(){var r,n,c,o,a,s=arguments.length;for(o=new Array(s),c=0;c<s;c++)o[c]=arguments[c];for(a=t.apply(null,o),(r=i(a)).isUniqueByDependants||(r.lastDependants&&!u(a,r.lastDependants,0)&&r.clear(),r.lastDependants=a),n=r.head;n;){if(u(n.args,o,1))return n!==r.head&&(n.prev.next=n.next,n.next&&(n.next.prev=n.prev),n.next=r.head,n.prev=null,r.head.prev=n,r.head=n),n.val;n=n.next}return n={val:e.apply(null,o)},o[0]=null,n.args=o,r.head&&(r.head.prev=n,n.next=r.head),r.head=n,n.val}return t||(t=o),i=c?function(e){var t,c,o,u,i,s=r,f=!0;for(t=0;t<e.length;t++){if(c=e[t],!(i=c)||"object"!=typeof i){f=!1;break}s.has(c)?s=s.get(c):(o=new WeakMap,s.set(c,o),s=o)}return s.has(n)||((u=a()).isUniqueByDependants=f,s.set(n,u)),s.get(n)}:function(){return r},f.getDependants=t,f.clear=s,s(),f}},4:function(e,t){!function(){e.exports=this.wp.data}()},40:function(e,t){!function(){e.exports=this.wp.apiFetch}()},426:function(e,t,r){"use strict";r.r(t);var n={};r.r(n),r.d(n,"receiveUserQuery",(function(){return Q})),r.d(n,"receiveCurrentUser",(function(){return W})),r.d(n,"addEntities",(function(){return H})),r.d(n,"receiveEntityRecords",(function(){return G})),r.d(n,"receiveThemeSupports",(function(){return z})),r.d(n,"receiveEmbedPreview",(function(){return X})),r.d(n,"editEntityRecord",(function(){return J})),r.d(n,"undo",(function(){return Z})),r.d(n,"redo",(function(){return $})),r.d(n,"__unstableCreateUndoLevel",(function(){return ee})),r.d(n,"saveEntityRecord",(function(){return te})),r.d(n,"saveEditedEntityRecord",(function(){return re})),r.d(n,"receiveUploadPermissions",(function(){return ne})),r.d(n,"receiveUserPermission",(function(){return ce})),r.d(n,"receiveAutosaves",(function(){return oe}));var c={};r.r(c),r.d(c,"isRequestingEmbedPreview",(function(){return Ie})),r.d(c,"getAuthors",(function(){return De})),r.d(c,"getCurrentUser",(function(){return Ae})),r.d(c,"getUserQueryResults",(function(){return Ue})),r.d(c,"getEntitiesByKind",(function(){return Ce})),r.d(c,"getEntity",(function(){return Me})),r.d(c,"getEntityRecord",(function(){return Ne})),r.d(c,"__experimentalGetEntityRecordNoResolver",(function(){return Ve})),r.d(c,"getRawEntityRecord",(function(){return Le})),r.d(c,"getEntityRecords",(function(){return qe})),r.d(c,"getEntityRecordChangesByRecord",(function(){return Be})),r.d(c,"getEntityRecordEdits",(function(){return Ye})),r.d(c,"getEntityRecordNonTransientEdits",(function(){return Fe})),r.d(c,"hasEditsForEntityRecord",(function(){return Ke})),r.d(c,"getEditedEntityRecord",(function(){return Qe})),r.d(c,"isAutosavingEntityRecord",(function(){return We})),r.d(c,"isSavingEntityRecord",(function(){return He})),r.d(c,"getLastEntitySaveError",(function(){return Ge})),r.d(c,"getUndoEdit",(function(){return Xe})),r.d(c,"getRedoEdit",(function(){return Je})),r.d(c,"hasUndo",(function(){return Ze})),r.d(c,"hasRedo",(function(){return $e})),r.d(c,"getThemeSupports",(function(){return et})),r.d(c,"getEmbedPreview",(function(){return tt})),r.d(c,"isPreviewEmbedFallback",(function(){return rt})),r.d(c,"hasUploadPermissions",(function(){return nt})),r.d(c,"canUser",(function(){return ct})),r.d(c,"getAutosaves",(function(){return ot})),r.d(c,"getAutosave",(function(){return at})),r.d(c,"hasFetchedAutosaves",(function(){return ut})),r.d(c,"getReferenceByDistinctEdits",(function(){return it}));var o={};r.r(o),r.d(o,"getAuthors",(function(){return jt})),r.d(o,"getCurrentUser",(function(){return mt})),r.d(o,"getEntityRecord",(function(){return wt})),r.d(o,"getEntityRecords",(function(){return xt})),r.d(o,"getThemeSupports",(function(){return kt})),r.d(o,"getEmbedPreview",(function(){return Rt})),r.d(o,"hasUploadPermissions",(function(){return Pt})),r.d(o,"canUser",(function(){return _t})),r.d(o,"getAutosaves",(function(){return St})),r.d(o,"getAutosave",(function(){return Tt}));var a=r(5),u=r(4),i=r(20),s=r(18),f=r(2),d=r(49),p=r.n(d);var l=function(e){return function(t){return function(r,n){return void 0===r||e(n)?t(r,n):r}}};function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach((function(t){Object(a.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var y=function(e){return function(t){return function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,c=n[e];if(void 0===c)return r;var o=t(r[c],n);return o===r[c]?r:v({},r,Object(a.a)({},c,o))}}},O=function(e){return function(t){return function(r,n){return t(r,e(n))}}};var g=function(e){var t=new WeakMap;return function(r){var n;return t.has(r)?n=t.get(r):(n=e(r),Object(f.isObjectLike)(r)&&t.set(r,n)),n}};function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function E(e){return{type:"RECEIVE_ITEMS",items:Object(f.castArray)(e)}}function j(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach((function(t){Object(a.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},E(e),{query:t})}var m=r(38),w=r(62),x=r.n(w),k=r(28);var R=g((function(e){for(var t={stableKey:"",page:1,perPage:10},r=Object.keys(e).sort(),n=0;n<r.length;n++){var c=r[n],o=e[c];switch(c){case"page":t[c]=Number(o);break;case"per_page":t.perPage=Number(o);break;default:t.stableKey+=(t.stableKey?"&":"")+Object(k.addQueryArgs)("",Object(a.a)({},c,o)).slice(1)}}return t})),P=new WeakMap;function _(e,t){var r=R(t),n=r.stableKey,c=r.page,o=r.perPage;if(!e.queries[n])return null;var a=e.queries[n];if(!a)return null;for(var u=-1===o?0:(c-1)*o,i=-1===o?a.length:Math.min(u+o,a.length),s=[],f=u;f<i;f++){var d=a[f];s.push(e.items[d])}return s}var S=Object(m.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=P.get(e);if(r){var n=r.get(t);if(void 0!==n)return n}else r=new x.a,P.set(e,r);var c=_(e,t);return r.set(t,c),c})),T=r(23),I=r.n(T),D=r(40),A=r.n(D);function U(e){return{type:"API_FETCH",request:e}}function C(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return{type:"SELECT",selectorName:e,args:r}}function M(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return{type:"RESOLVE_SELECT",selectorName:e,args:r}}var N={API_FETCH:function(e){var t=e.request;return A()(t)},SELECT:Object(u.createRegistryControl)((function(e){return function(t){var r,n=t.selectorName,c=t.args;return(r=e.select("core"))[n].apply(r,Object(s.a)(c))}})),RESOLVE_SELECT:Object(u.createRegistryControl)((function(e){return function(t){var r,n=t.selectorName,c=t.args;return(r=e.__experimentalResolveSelect("core"))[n].apply(r,Object(s.a)(c))}}))},V=I.a.mark(J),L=I.a.mark(Z),q=I.a.mark($),B=I.a.mark(te),Y=I.a.mark(re);function F(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function K(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?F(Object(r),!0).forEach((function(t){Object(a.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):F(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Q(e,t){return{type:"RECEIVE_USER_QUERY",users:Object(f.castArray)(t),queryID:e}}function W(e){return{type:"RECEIVE_CURRENT_USER",currentUser:e}}function H(e){return{type:"ADD_ENTITIES",entities:e}}function G(e,t,r,n){var c=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return"postType"===e&&(r=Object(f.castArray)(r).map((function(e){return"auto-draft"===e.status?K({},e,{title:""}):e}))),K({},n?j(r,n):E(r),{kind:e,name:t,invalidateCache:c})}function z(e){return{type:"RECEIVE_THEME_SUPPORTS",themeSupports:e}}function X(e,t){return{type:"RECEIVE_EMBED_PREVIEW",url:e,preview:t}}function J(e,t,r,n){var c,o,a,u,i,s,d,p,l,b=arguments;return I.a.wrap((function(v){for(;;)switch(v.prev=v.next){case 0:return c=b.length>4&&void 0!==b[4]?b[4]:{},v.next=3,C("getEntity",e,t);case 3:if(o=v.sent){v.next=6;break}throw new Error("The entity being edited (".concat(e,", ").concat(t,") does not have a loaded config."));case 6:return a=o.transientEdits,u=void 0===a?{}:a,i=o.mergedEdits,s=void 0===i?{}:i,v.next=9,C("getRawEntityRecord",e,t,r);case 9:return d=v.sent,v.next=12,C("getEditedEntityRecord",e,t,r);case 12:return p=v.sent,l={kind:e,name:t,recordId:r,edits:Object.keys(n).reduce((function(e,t){var r=d[t],c=p[t],o=s[t]?K({},c,{},n[t]):n[t];return e[t]=Object(f.isEqual)(r,o)?void 0:o,e}),{}),transientEdits:u},v.abrupt("return",K({type:"EDIT_ENTITY_RECORD"},l,{meta:{undo:!c.undoIgnore&&K({},l,{edits:Object.keys(n).reduce((function(e,t){return e[t]=p[t],e}),{})})}}));case 15:case"end":return v.stop()}}),V)}function Z(){var e;return I.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,C("getUndoEdit");case 2:if(e=t.sent){t.next=5;break}return t.abrupt("return");case 5:return t.next=7,K({type:"EDIT_ENTITY_RECORD"},e,{meta:{isUndo:!0}});case 7:case"end":return t.stop()}}),L)}function $(){var e;return I.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,C("getRedoEdit");case 2:if(e=t.sent){t.next=5;break}return t.abrupt("return");case 5:return t.next=7,K({type:"EDIT_ENTITY_RECORD"},e,{meta:{isRedo:!0}});case 7:case"end":return t.stop()}}),q)}function ee(){return{type:"CREATE_UNDO_LEVEL"}}function te(e,t,r){var n,c,o,u,s,d,p,l,b,v,y,O,g,h,E,j,m,w,x,k,R,P,_,S,T,D=arguments;return I.a.wrap((function(I){for(;;)switch(I.prev=I.next){case 0:return n=D.length>3&&void 0!==D[3]?D[3]:{isAutosave:!1},c=n.isAutosave,o=void 0!==c&&c,I.next=3,ve(e);case 3:if(u=I.sent,s=Object(f.find)(u,{kind:e,name:t})){I.next=7;break}return I.abrupt("return");case 7:d=s.key||se,p=r[d],l=0,b=Object.entries(r);case 10:if(!(l<b.length)){I.next=24;break}if(v=Object(i.a)(b[l],2),y=v[0],"function"!=typeof(O=v[1])){I.next=21;break}return I.t0=O,I.next=16,C("getEditedEntityRecord",e,t,p);case 16:return I.t1=I.sent,g=(0,I.t0)(I.t1),I.next=20,J(e,t,p,Object(a.a)({},y,g),{undoIgnore:!0});case 20:r[y]=g;case 21:l++,I.next=10;break;case 24:return I.next=26,{type:"SAVE_ENTITY_RECORD_START",kind:e,name:t,recordId:p,isAutosave:o};case 26:return I.prev=26,w="".concat(s.baseURL).concat(p?"/"+p:""),I.next=30,C("getRawEntityRecord",e,t,p);case 30:if(x=I.sent,!o){I.next=55;break}return I.next=34,C("getCurrentUser");case 34:return k=I.sent,R=k?k.id:void 0,I.next=38,C("getAutosave",x.type,x.id,R);case 38:return P=I.sent,_=K({},x,{},P,{},r),_=Object.keys(_).reduce((function(e,t){return["title","excerpt","content"].includes(t)&&(e[t]=Object(f.get)(_[t],"raw",_[t])),e}),{status:"auto-draft"===_.status?"draft":_.status}),I.next=43,U({path:"".concat(w,"/autosaves"),method:"POST",data:_});case 43:if(h=I.sent,x.id!==h.id){I.next=51;break}return S=K({},x,{},_,{},h),S=Object.keys(S).reduce((function(e,t){return["title","excerpt","content"].includes(t)?e[t]=Object(f.get)(S[t],"raw",S[t]):e[t]="status"===t?"auto-draft"===x.status&&"draft"===S.status?S.status:x.status:Object(f.get)(x[t],"raw",x[t]),e}),{}),I.next=49,G(e,t,S,void 0,!0);case 49:I.next=53;break;case 51:return I.next=53,oe(x.id,h);case 53:I.next=70;break;case 55:return T=r,"postType"===e&&x&&"auto-draft"===x.status&&(T.status||(T=K({},T,{status:"draft"})),T.title&&"Auto Draft"!==T.title||(T=K({},T,{title:""}))),I.next=59,C("__experimentalGetEntityRecordNoResolver",e,t,p);case 59:return j=I.sent,I.next=62,C("getEntityRecordEdits",e,t,p);case 62:return m=I.sent,I.next=65,G(e,t,K({},j,{},T),void 0,!0);case 65:return I.next=67,U({path:w,method:p?"PUT":"POST",data:T});case 67:return h=I.sent,I.next=70,G(e,t,h,void 0,!0);case 70:I.next=93;break;case 72:if(I.prev=72,I.t2=I.catch(26),E=I.t2,!j||!m){I.next=93;break}return I.next=78,G(e,t,j,void 0,!0);case 78:return I.t3=J,I.t4=e,I.t5=t,I.t6=p,I.t7=K,I.t8={},I.t9=m,I.t10={},I.next=88,C("getEntityRecordEdits",e,t,p);case 88:return I.t11=I.sent,I.t12=(0,I.t7)(I.t8,I.t9,I.t10,I.t11),I.t13={undoIgnore:!0},I.next=93,(0,I.t3)(I.t4,I.t5,I.t6,I.t12,I.t13);case 93:return I.next=95,{type:"SAVE_ENTITY_RECORD_FINISH",kind:e,name:t,recordId:p,error:E,isAutosave:o};case 95:return I.abrupt("return",h);case 96:case"end":return I.stop()}}),B,null,[[26,72]])}function re(e,t,r,n){var c,o;return I.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,C("hasEditsForEntityRecord",e,t,r);case 2:if(a.sent){a.next=4;break}return a.abrupt("return");case 4:return a.next=6,C("getEntityRecordNonTransientEdits",e,t,r);case 6:return c=a.sent,o=K({id:r},c),a.delegateYield(te(e,t,o,n),"t0",9);case 9:case"end":return a.stop()}}),Y)}function ne(e){return{type:"RECEIVE_USER_PERMISSION",key:"create/media",isAllowed:e}}function ce(e,t){return{type:"RECEIVE_USER_PERMISSION",key:e,isAllowed:t}}function oe(e,t){return{type:"RECEIVE_AUTOSAVES",postId:e,autosaves:Object(f.castArray)(t)}}var ae=I.a.mark(pe),ue=I.a.mark(le),ie=I.a.mark(ve),se="id",fe=[{name:"site",kind:"root",baseURL:"/wp/v2/settings"},{name:"postType",kind:"root",key:"slug",baseURL:"/wp/v2/types"},{name:"media",kind:"root",baseURL:"/wp/v2/media",plural:"mediaItems"},{name:"taxonomy",kind:"root",key:"slug",baseURL:"/wp/v2/taxonomies",plural:"taxonomies"},{name:"widgetArea",kind:"root",baseURL:"/__experimental/widget-areas",plural:"widgetAreas",transientEdits:{blocks:!0}},{name:"user",kind:"root",baseURL:"/wp/v2/users",plural:"users"}],de=[{name:"postType",loadEntities:pe},{name:"taxonomy",loadEntities:le}];function pe(){var e;return I.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,U({path:"/wp/v2/types?context=edit"});case 2:return e=t.sent,t.abrupt("return",Object(f.map)(e,(function(e,t){return{kind:"postType",baseURL:"/wp/v2/"+e.rest_base,name:t,transientEdits:{blocks:!0,selectionStart:!0,selectionEnd:!0},mergedEdits:{meta:!0}}})));case 4:case"end":return t.stop()}}),ae)}function le(){var e;return I.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,U({path:"/wp/v2/taxonomies?context=edit"});case 2:return e=t.sent,t.abrupt("return",Object(f.map)(e,(function(e,t){return{kind:"taxonomy",baseURL:"/wp/v2/"+e.rest_base,name:t}})));case 4:case"end":return t.stop()}}),ue)}var be=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"get",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],c=Object(f.find)(fe,{kind:e,name:t}),o="root"===e?"":Object(f.upperFirst)(Object(f.camelCase)(e)),a=Object(f.upperFirst)(Object(f.camelCase)(t))+(n?"s":""),u=n&&c.plural?Object(f.upperFirst)(Object(f.camelCase)(c.plural)):a;return"".concat(r).concat(o).concat(u)};function ve(e){var t,r;return I.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,C("getEntitiesByKind",e);case 2:if(!(t=n.sent)||0===t.length){n.next=5;break}return n.abrupt("return",t);case 5:if(r=Object(f.find)(de,{name:e})){n.next=8;break}return n.abrupt("return",[]);case 8:return n.next=10,r.loadEntities();case 10:return t=n.sent,n.next=13,H(t);case 13:return n.abrupt("return",t);case 14:case"end":return n.stop()}}),ie)}function ye(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Oe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ye(Object(r),!0).forEach((function(t){Object(a.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ye(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ge(e,t,r,n){for(var c=(r-1)*n,o=Math.max(e.length,c+t.length),a=new Array(o),u=0;u<o;u++){var i=u>=c&&u<c+t.length;a[u]=i?t[u-c]:e[u]}return a}var he=Object(f.flowRight)([l((function(e){return"query"in e})),O((function(e){return e.query?Oe({},e,{},R(e.query)):e})),y("stableKey")])((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.page,c=t.perPage,o=t.key,a=void 0===o?se:o;return"RECEIVE_ITEMS"!==r?e:ge(e||[],Object(f.map)(t.items,a),n,c)})),Ee=Object(u.combineReducers)({items:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_ITEMS":var r=t.key||se;return Oe({},e,{},t.items.reduce((function(t,n){var c=n[r];return t[c]=function(e,t){if(!e)return t;var r=!1,n={};for(var c in t)Object(f.isEqual)(e[c],t[c])?n[c]=e[c]:(r=!0,n[c]=t[c]);return r?n:e}(e[c],n),t}),{}))}return e},queries:he});function je(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function me(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?je(Object(r),!0).forEach((function(t){Object(a.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):je(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function we(e){return Object(f.flowRight)([l((function(t){return t.name&&t.kind&&t.name===e.name&&t.kind===e.kind})),O((function(t){return me({},t,{key:e.key||se})}))])(Object(u.combineReducers)({queriedData:Ee,edits:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_ITEMS":var r=me({},e),n=!0,c=!1,o=void 0;try{for(var u,i=function(){var e=u.value,n=e[t.key],c=r[n];if(!c)return"continue";var o=Object.keys(c).reduce((function(t,r){return Object(f.isEqual)(c[r],Object(f.get)(e[r],"raw",e[r]))||(t[r]=c[r]),t}),{});Object.keys(o).length?r[n]=o:delete r[n]},s=t.items[Symbol.iterator]();!(n=(u=s.next()).done);n=!0)i()}catch(e){c=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(c)throw o}}return r;case"EDIT_ENTITY_RECORD":var d=me({},e[t.recordId],{},t.edits);return Object.keys(d).forEach((function(e){void 0===d[e]&&delete d[e]})),me({},e,Object(a.a)({},t.recordId,d))}return e},saving:function(){var 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 me({},e,Object(a.a)({},t.recordId,{pending:"SAVE_ENTITY_RECORD_START"===t.type,error:t.error,isAutosave:t.isAutosave}))}return e}}))}function xe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:fe,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_ENTITIES":return[].concat(Object(s.a)(e),Object(s.a)(t.entities))}return e}var ke,Re=[];Re.offset=0;var Pe=Object(u.combineReducers)({terms:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_TERMS":return me({},e,Object(a.a)({},t.taxonomy,t.terms))}return e},users:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{byId:{},queries:{}},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_USER_QUERY":return{byId:me({},e.byId,{},Object(f.keyBy)(t.users,"id")),queries:me({},e.queries,Object(a.a)({},t.queryID,Object(f.map)(t.users,(function(e){return e.id}))))}}return e},currentUser:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_CURRENT_USER":return t.currentUser}return e},taxonomies:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_TAXONOMIES":return t.taxonomies}return e},themeSupports:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_THEME_SUPPORTS":return me({},e,{},t.themeSupports)}return e},entities:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,r=xe(e.config,t),n=e.reducer;if(!n||r!==e.config){var c=Object(f.groupBy)(r,"kind");n=Object(u.combineReducers)(Object.entries(c).reduce((function(e,t){var r=Object(i.a)(t,2),n=r[0],c=r[1],o=Object(u.combineReducers)(c.reduce((function(e,t){return me({},e,Object(a.a)({},t.name,we(t)))}),{}));return e[n]=o,e}),{}))}var o=n(e.data,t);return o===e.data&&r===e.config&&n===e.reducer?e:{reducer:n,data:o,config:r}},undo:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Re,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"EDIT_ENTITY_RECORD":case"CREATE_UNDO_LEVEL":var r,n="CREATE_UNDO_LEVEL"===t.type,c=!n&&(t.meta.isUndo||t.meta.isRedo);if(n?t=ke:c||(ke=Object.keys(t.edits).some((function(e){return!t.transientEdits[e]}))?t:me({},t,{edits:me({},ke&&ke.edits,{},t.edits)})),c){if((r=Object(s.a)(e)).offset=e.offset+(t.meta.isUndo?-1:1),!e.flattenedUndo)return r;n=!0,t=ke}if(!t.meta.undo)return e;if(!n&&!Object.keys(t.edits).some((function(e){return!t.transientEdits[e]})))return(r=Object(s.a)(e)).flattenedUndo=me({},e.flattenedUndo,{},t.edits),r.offset=e.offset,r;(r=r||e.slice(0,e.offset||void 0)).offset=r.offset||0,r.pop(),n||r.push({kind:t.meta.undo.kind,name:t.meta.undo.name,recordId:t.meta.undo.recordId,edits:me({},e.flattenedUndo,{},t.meta.undo.edits)});var o=Object.values(t.meta.undo.edits).filter((function(e){return"function"!=typeof e})),a=Object.values(t.edits).filter((function(e){return"function"!=typeof e}));return p()(o,a)||r.push({kind:t.kind,name:t.name,recordId:t.recordId,edits:n?me({},e.flattenedUndo,{},t.edits):t.edits}),r}return e},embedPreviews:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_EMBED_PREVIEW":var r=t.url,n=t.preview;return me({},e,Object(a.a)({},r,n))}return e},userPermissions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_USER_PERMISSION":return me({},e,Object(a.a)({},t.key,t.isAllowed))}return e},autosaves:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_AUTOSAVES":var r=t.postId,n=t.autosaves;return me({},e,Object(a.a)({},r,n))}return e}}),_e=r(35),Se=r.n(_e);function Te(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var Ie=Object(u.createRegistrySelector)((function(e){return function(t,r){return e("core/data").isResolving("core","getEmbedPreview",[r])}}));function De(e){return Ue(e,"authors")}function Ae(e){return e.currentUser}var Ue=Object(m.a)((function(e,t){var r=e.users.queries[t];return Object(f.map)(r,(function(t){return e.users.byId[t]}))}),(function(e,t){return[e.users.queries[t],e.users.byId]}));function Ce(e,t){return Object(f.filter)(e.entities.config,{kind:t})}function Me(e,t,r){return Object(f.find)(e.entities.config,{kind:t,name:r})}function Ne(e,t,r,n){return Object(f.get)(e.entities.data,[t,r,"queriedData","items",n])}function Ve(e,t,r,n){return Ne(e,t,r,n)}var Le=Object(m.a)((function(e,t,r,n){var c=Ne(e,t,r,n);return c&&Object.keys(c).reduce((function(e,t){return e[t]=Object(f.get)(c[t],"raw",c[t]),e}),{})}),(function(e){return[e.entities.data]}));function qe(e,t,r,n){var c=Object(f.get)(e.entities.data,[t,r,"queriedData"]);return c?S(c,n):[]}var Be=Object(m.a)((function(e){var t=e.entities.data;return Object.keys(t).reduce((function(r,n){return Object.keys(t[n]).forEach((function(c){var o=Object.keys(t[n][c].edits).filter((function(t){return Ke(e,n,c,t)}));o.length&&(r[n]||(r[n]={}),r[n][c]||(r[n][c]={}),o.forEach((function(t){return r[n][c][t]={rawRecord:Le(e,n,c,t),edits:Fe(e,n,c,t)}})))})),r}),{})}),(function(e){return[e.entities.data]}));function Ye(e,t,r,n){return Object(f.get)(e.entities.data,[t,r,"edits",n])}var Fe=Object(m.a)((function(e,t,r,n){var c=(Me(e,t,r)||{}).transientEdits,o=Ye(e,t,r,n)||{};return c?Object.keys(o).reduce((function(e,t){return c[t]||(e[t]=o[t]),e}),{}):o}),(function(e){return[e.entities.config,e.entities.data]}));function Ke(e,t,r,n){return He(e,t,r,n)||Object.keys(Fe(e,t,r,n)).length>0}var Qe=Object(m.a)((function(e,t,r,n){return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Te(Object(r),!0).forEach((function(t){Object(a.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Te(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},Le(e,t,r,n),{},Ye(e,t,r,n))}),(function(e){return[e.entities.data]}));function We(e,t,r,n){var c=Object(f.get)(e.entities.data,[t,r,"saving",n],{}),o=c.pending,a=c.isAutosave;return Boolean(o&&a)}function He(e,t,r,n){return Object(f.get)(e.entities.data,[t,r,"saving",n,"pending"],!1)}function Ge(e,t,r,n){return Object(f.get)(e.entities.data,[t,r,"saving",n,"error"])}function ze(e){return e.undo.offset}function Xe(e){return e.undo[e.undo.length-2+ze(e)]}function Je(e){return e.undo[e.undo.length+ze(e)]}function Ze(e){return Boolean(Xe(e))}function $e(e){return Boolean(Je(e))}function et(e){return e.themeSupports}function tt(e,t){return e.embedPreviews[t]}function rt(e,t){var r=e.embedPreviews[t],n='<a href="'+t+'">'+t+"</a>";return!!r&&r.html===n}function nt(e){return Se()("select( 'core' ).hasUploadPermissions()",{alternative:"select( 'core' ).canUser( 'create', 'media' )"}),Object(f.defaultTo)(ct(e,"create","media"),!0)}function ct(e,t,r,n){var c=Object(f.compact)([t,r,n]).join("/");return Object(f.get)(e,["userPermissions",c])}function ot(e,t,r){return e.autosaves[r]}function at(e,t,r,n){if(void 0!==n){var c=e.autosaves[r];return Object(f.find)(c,{author:n})}}var ut=Object(u.createRegistrySelector)((function(e){return function(t,r,n){return e("core").hasFinishedResolution("getAutosaves",[r,n])}})),it=Object(m.a)((function(){return[]}),(function(e){return[e.undo.length,e.undo.offset]}));function st(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ft(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?st(Object(r),!0).forEach((function(t){Object(a.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):st(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var dt=I.a.mark(jt),pt=I.a.mark(mt),lt=I.a.mark(wt),bt=I.a.mark(xt),vt=I.a.mark(kt),yt=I.a.mark(Rt),Ot=I.a.mark(Pt),gt=I.a.mark(_t),ht=I.a.mark(St),Et=I.a.mark(Tt);function jt(){var e;return I.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,U({path:"/wp/v2/users/?who=authors&per_page=-1"});case 2:return e=t.sent,t.next=5,Q("authors",e);case 5:case"end":return t.stop()}}),dt)}function mt(){var e;return I.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,U({path:"/wp/v2/users/me"});case 2:return e=t.sent,t.next=5,W(e);case 5:case"end":return t.stop()}}),pt)}function wt(e,t){var r,n,c,o,a=arguments;return I.a.wrap((function(u){for(;;)switch(u.prev=u.next){case 0:return r=a.length>2&&void 0!==a[2]?a[2]:"",u.next=3,ve(e);case 3:if(n=u.sent,c=Object(f.find)(n,{kind:e,name:t})){u.next=7;break}return u.abrupt("return");case 7:return u.next=9,U({path:"".concat(c.baseURL,"/").concat(r,"?context=edit")});case 9:return o=u.sent,u.next=12,G(e,t,o);case 12:case"end":return u.stop()}}),lt)}function xt(e,t){var r,n,c,o,a,u=arguments;return I.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return r=u.length>2&&void 0!==u[2]?u[2]:{},i.next=3,ve(e);case 3:if(n=i.sent,c=Object(f.find)(n,{kind:e,name:t})){i.next=7;break}return i.abrupt("return");case 7:return o=Object(k.addQueryArgs)(c.baseURL,ft({},r,{context:"edit"})),i.next=10,U({path:o});case 10:return a=i.sent,i.next=13,G(e,t,Object.values(a),r);case 13:case"end":return i.stop()}}),bt)}function kt(){var e;return I.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,U({path:"/wp/v2/themes?status=active"});case 2:return e=t.sent,t.next=5,z(e[0].theme_supports);case 5:case"end":return t.stop()}}),vt)}function Rt(e){var t;return I.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,U({path:Object(k.addQueryArgs)("/oembed/1.0/proxy",{url:e})});case 3:return t=r.sent,r.next=6,X(e,t);case 6:r.next=12;break;case 8:return r.prev=8,r.t0=r.catch(0),r.next=12,X(e,!1);case 12:case"end":return r.stop()}}),yt,null,[[0,8]])}function Pt(){return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Se()("select( 'core' ).hasUploadPermissions()",{alternative:"select( 'core' ).canUser( 'create', 'media' )"}),e.delegateYield(_t("create","media"),"t0",2);case 2:case"end":return e.stop()}}),Ot)}function _t(e,t,r){var n,c,o,a,u,i;return I.a.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:if(n={create:"POST",read:"GET",update:"PUT",delete:"DELETE"}[e]){s.next=4;break}throw new Error("'".concat(e,"' is not a valid action."));case 4:return c=r?"/wp/v2/".concat(t,"/").concat(r):"/wp/v2/".concat(t),s.prev=5,s.next=8,U({path:c,method:r?"GET":"OPTIONS",parse:!1});case 8:o=s.sent,s.next=14;break;case 11:return s.prev=11,s.t0=s.catch(5),s.abrupt("return");case 14:return a=Object(f.hasIn)(o,["headers","get"])?o.headers.get("allow"):Object(f.get)(o,["headers","Allow"],""),u=Object(f.compact)([e,t,r]).join("/"),i=Object(f.includes)(a,n),s.next=19,ce(u,i);case 19:case"end":return s.stop()}}),gt,null,[[5,11]])}function St(e,t){var r,n,c;return I.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,M("getPostType",e);case 2:return r=o.sent,n=r.rest_base,o.next=6,U({path:"/wp/v2/".concat(n,"/").concat(t,"/autosaves?context=edit")});case 6:if(!(c=o.sent)||!c.length){o.next=10;break}return o.next=10,oe(t,c);case 10:case"end":return o.stop()}}),ht)}function Tt(e,t){return I.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,M("getAutosaves",e,t);case 2:case"end":return r.stop()}}),Et)}xt.shouldInvalidate=function(e,t,r){return"RECEIVE_ITEMS"===e.type&&e.invalidateCache&&t===e.kind&&r===e.name};var It=r(0),Dt=r(10);function At(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var Ut=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?At(Object(r),!0).forEach((function(t){Object(a.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):At(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},fe.reduce((function(e,t){return e[t.kind]||(e[t.kind]={}),e[t.kind][t.name]={context:Object(It.createContext)()},e}),{}),{},de.reduce((function(e,t){return e[t.name]={},e}),{})),Ct=function(e,t){if(!Ut[e])throw new Error("Missing entity config for kind: ".concat(e,"."));return Ut[e][t]||(Ut[e][t]={context:Object(It.createContext)()}),Ut[e][t]};function Mt(e){var t=e.kind,r=e.type,n=e.id,c=e.children,o=Ct(t,r).context.Provider;return Object(It.createElement)(o,{value:n},c)}function Nt(e,t){return Object(It.useContext)(Ct(e,t).context)}function Vt(e,t,r){var n=Nt(e,t),c=Object(u.useSelect)((function(c){var o=c("core"),a=o.getEntityRecord,u=o.getEditedEntityRecord;a(e,t,n);var i=u(e,t,n);return i&&i[r]}),[e,t,n,r]),o=Object(u.useDispatch)("core").editEntityRecord;return[c,Object(It.useCallback)((function(c){o(e,t,n,Object(a.a)({},r,c))}),[e,t,n,r])]}function Lt(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.initialEdits,c=r.blocksProp,o=void 0===c?"blocks":c,a=r.contentProp,s=Vt(e,t,void 0===a?"content":a),f=Object(i.a)(s,2),d=f[0],p=f[1],l=Object(u.useDispatch)("core").editEntityRecord,b=Nt(e,t),v=Object(It.useMemo)((function(){if(n&&l(e,t,b,n,{undoIgnore:!0}),"function"!=typeof d){var r=Object(Dt.parse)(d);return r.length?r:[]}}),[b]),y=Vt(e,t,o),O=Object(i.a)(y,2),g=O[0],h=void 0===g?v:g,E=O[1],j=Object(It.useCallback)((function(e){E(e),p((function(e){var t=e.blocks;return Object(Dt.serialize)(t)}))}),[E,p]);return[h,E,j]}function qt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Bt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qt(Object(r),!0).forEach((function(t){Object(a.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}r.d(t,"EntityProvider",(function(){return Mt})),r.d(t,"useEntityId",(function(){return Nt})),r.d(t,"useEntityProp",(function(){return Vt})),r.d(t,"useEntityBlockEditor",(function(){return Lt}));var Yt=fe.reduce((function(e,t){var r=t.kind,n=t.name;return e[be(r,n)]=function(e,t){return Ne(e,r,n,t)},e[be(r,n,"get",!0)]=function(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),a=1;a<t;a++)o[a-1]=arguments[a];return qe.apply(c,[e,r,n].concat(o))},e}),{}),Ft=fe.reduce((function(e,t){var r=t.kind,n=t.name;e[be(r,n)]=function(e){return wt(r,n,e)};var c=be(r,n,"get",!0);return e[c]=function(){for(var e=arguments.length,t=new Array(e),c=0;c<e;c++)t[c]=arguments[c];return xt.apply(o,[r,n].concat(t))},e[c].shouldInvalidate=function(e){for(var t,c=arguments.length,o=new Array(c>1?c-1:0),a=1;a<c;a++)o[a-1]=arguments[a];return(t=xt).shouldInvalidate.apply(t,[e,r,n].concat(o))},e}),{}),Kt=fe.reduce((function(e,t){var r=t.kind,n=t.name;return e[be(r,n,"save")]=function(e){return te(r,n,e)},e}),{});Object(u.registerStore)("core",{reducer:Pe,controls:N,actions:Bt({},n,{},Kt),selectors:Bt({},c,{},Yt),resolvers:Bt({},o,{},Ft)})},49:function(e,t){!function(){e.exports=this.wp.isShallowEqual}()},5:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,"a",(function(){return n}))},62:function(e,t,r){"use strict";function n(e){return(n="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})(e)}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t){var r=e._map,n=e._arrayTreeMap,c=e._objectTreeMap;if(r.has(t))return r.get(t);for(var o=Object.keys(t).sort(),a=Array.isArray(t)?n:c,u=0;u<o.length;u++){var i=o[u];if(void 0===(a=a.get(i)))return;var s=t[i];if(void 0===(a=a.get(s)))return}var f=a.get("_ekm_value");return f?(r.delete(f[0]),f[0]=t,a.set("_ekm_value",f),r.set(t,f),f):void 0}var a=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.clear(),t instanceof e){var r=[];t.forEach((function(e,t){r.push([t,e])})),t=r}if(null!=t)for(var n=0;n<t.length;n++)this.set(t[n][0],t[n][1])}var t,r,a;return t=e,(r=[{key:"set",value:function(t,r){if(null===t||"object"!==n(t))return this._map.set(t,r),this;for(var c=Object.keys(t).sort(),o=[t,r],a=Array.isArray(t)?this._arrayTreeMap:this._objectTreeMap,u=0;u<c.length;u++){var i=c[u];a.has(i)||a.set(i,new e),a=a.get(i);var s=t[i];a.has(s)||a.set(s,new e),a=a.get(s)}var f=a.get("_ekm_value");return f&&this._map.delete(f[0]),a.set("_ekm_value",o),this._map.set(t,o),this}},{key:"get",value:function(e){if(null===e||"object"!==n(e))return this._map.get(e);var t=o(this,e);return t?t[1]:void 0}},{key:"has",value:function(e){return null===e||"object"!==n(e)?this._map.has(e):void 0!==o(this,e)}},{key:"delete",value:function(e){return!!this.has(e)&&(this.set(e,void 0),!0)}},{key:"forEach",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;this._map.forEach((function(c,o){null!==o&&"object"===n(o)&&(c=c[1]),e.call(r,c,o,t)}))}},{key:"clear",value:function(){this._map=new Map,this._arrayTreeMap=new Map,this._objectTreeMap=new Map}},{key:"size",get:function(){return this._map.size}}])&&c(t.prototype,r),a&&c(t,a),e}();e.exports=a}});