mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-18 16:45:31 +01:00
8e433f2a57
Updated packages: - @wordpress/annotations@1.20.3 - @wordpress/block-directory@1.13.3 - @wordpress/block-editor@4.3.3 - @wordpress/block-library@2.22.3 - @wordpress/blocks@6.20.3 - @wordpress/components@10.0.3 - @wordpress/compose@3.19.3 - @wordpress/core-data@2.20.3 - @wordpress/data-controls@1.16.3 - @wordpress/data@4.22.3 - @wordpress/e2e-test-utils@4.11.1 - @wordpress/e2e-tests@1.20.3 - @wordpress/edit-post@3.21.3 - @wordpress/edit-site@1.11.3 - @wordpress/editor@9.20.3 - @wordpress/format-library@1.22.3 - @wordpress/interface@0.7.3 - @wordpress/keyboard-shortcuts@1.9.3 - @wordpress/list-reusable-blocks@1.21.3 - @wordpress/notices@2.8.3 - @wordpress/nux@3.20.3 - @wordpress/plugins@2.20.3 - @wordpress/rich-text@3.20.3 - @wordpress/server-side-render@1.16.3 - @wordpress/viewport@2.21.3 Fixes #50791. Built from https://develop.svn.wordpress.org/trunk@48644 git-svn-id: http://core.svn.wordpress.org/trunk@48406 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2 lines
44 KiB
JavaScript
2 lines
44 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 a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.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 a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));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=448)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},10:function(e,t){!function(){e.exports=this.wp.blocks}()},126: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 a(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,a=e._objectTreeMap;if(r.has(t))return r.get(t);for(var o=Object.keys(t).sort(),c=Array.isArray(t)?n:a,u=0;u<o.length;u++){var i=o[u];if(void 0===(c=c.get(i)))return;var s=t[i];if(void 0===(c=c.get(s)))return}var f=c.get("_ekm_value");return f?(r.delete(f[0]),f[0]=t,c.set("_ekm_value",f),r.set(t,f),f):void 0}var c=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,c;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 a=Object.keys(t).sort(),o=[t,r],c=Array.isArray(t)?this._arrayTreeMap:this._objectTreeMap,u=0;u<a.length;u++){var i=a[u];c.has(i)||c.set(i,new e),c=c.get(i);var s=t[i];c.has(s)||c.set(s,new e),c=c.get(s)}var f=c.get("_ekm_value");return f&&this._map.delete(f[0]),c.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(a,o){null!==o&&"object"===n(o)&&(a=a[1]),e.call(r,a,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}}])&&a(t.prototype,r),c&&a(t,c),e}();e.exports=c},14:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(38);var a=r(29),o=r(39);function c(e,t){return Object(n.a)(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,a=!1,o=void 0;try{for(var c,u=e[Symbol.iterator]();!(n=(c=u.next()).done)&&(r.push(c.value),!t||r.length!==t);n=!0);}catch(e){a=!0,o=e}finally{try{n||null==u.return||u.return()}finally{if(a)throw o}}return r}}(e,t)||Object(a.a)(e,t)||Object(o.a)()}},18:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(26);var a=r(35),o=r(29);function c(e){return function(e){if(Array.isArray(e))return Object(n.a)(e)}(e)||Object(a.a)(e)||Object(o.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},2:function(e,t){!function(){e.exports=this.lodash}()},24:function(e,t){!function(){e.exports=this.regeneratorRuntime}()},26:function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,"a",(function(){return n}))},29:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(26);function a(e,t){if(e){if("string"==typeof e)return Object(n.a)(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Object(n.a)(e,t):void 0}}},31:function(e,t){!function(){e.exports=this.wp.url}()},35:function(e,t,r){"use strict";function n(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}r.d(t,"a",(function(){return n}))},36:function(e,t){!function(){e.exports=this.wp.dataControls}()},37:function(e,t){!function(){e.exports=this.wp.deprecated}()},38:function(e,t,r){"use strict";function n(e){if(Array.isArray(e))return e}r.d(t,"a",(function(){return n}))},39:function(e,t,r){"use strict";function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}r.d(t,"a",(function(){return n}))},4:function(e,t){!function(){e.exports=this.wp.data}()},42:function(e,t,r){"use strict";var n,a;function o(e){return[e]}function c(){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={},a="undefined"!=typeof WeakMap,t.a=function(e,t){var r,i;function s(){r=a?new WeakMap:c()}function f(){var r,n,a,o,c,s=arguments.length;for(o=new Array(s),a=0;a<s;a++)o[a]=arguments[a];for(c=t.apply(null,o),(r=i(c)).isUniqueByDependants||(r.lastDependants&&!u(c,r.lastDependants,0)&&r.clear(),r.lastDependants=c),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=a?function(e){var t,a,o,u,i,s=r,f=!0;for(t=0;t<e.length;t++){if(a=e[t],!(i=a)||"object"!=typeof i){f=!1;break}s.has(a)?s=s.get(a):(o=new WeakMap,s.set(a,o),s=o)}return s.has(n)||((u=c()).isUniqueByDependants=f,s.set(n,u)),s.get(n)}:function(){return r},f.getDependants=t,f.clear=s,s(),f}},448:function(e,t,r){"use strict";r.r(t),r.d(t,"EntityProvider",(function(){return Gt})),r.d(t,"useEntityId",(function(){return zt})),r.d(t,"useEntityProp",(function(){return $t})),r.d(t,"useEntityBlockEditor",(function(){return Xt}));var n={};r.r(n),r.d(n,"receiveUserQuery",(function(){return L})),r.d(n,"receiveCurrentUser",(function(){return q})),r.d(n,"addEntities",(function(){return Y})),r.d(n,"receiveEntityRecords",(function(){return B})),r.d(n,"receiveCurrentTheme",(function(){return F})),r.d(n,"receiveThemeSupports",(function(){return H})),r.d(n,"receiveEmbedPreview",(function(){return W})),r.d(n,"editEntityRecord",(function(){return K})),r.d(n,"undo",(function(){return Q})),r.d(n,"redo",(function(){return G})),r.d(n,"__unstableCreateUndoLevel",(function(){return z})),r.d(n,"saveEntityRecord",(function(){return $})),r.d(n,"saveEditedEntityRecord",(function(){return X})),r.d(n,"receiveUploadPermissions",(function(){return J})),r.d(n,"receiveUserPermission",(function(){return Z})),r.d(n,"receiveAutosaves",(function(){return ee}));var a={};r.r(a),r.d(a,"isRequestingEmbedPreview",(function(){return Me})),r.d(a,"getAuthors",(function(){return Ve})),r.d(a,"getCurrentUser",(function(){return Ne})),r.d(a,"getUserQueryResults",(function(){return Le})),r.d(a,"getEntitiesByKind",(function(){return qe})),r.d(a,"getEntity",(function(){return Ye})),r.d(a,"getEntityRecord",(function(){return Be})),r.d(a,"__experimentalGetEntityRecordNoResolver",(function(){return Fe})),r.d(a,"getRawEntityRecord",(function(){return He})),r.d(a,"getEntityRecords",(function(){return We})),r.d(a,"__experimentalGetDirtyEntityRecords",(function(){return Ke})),r.d(a,"getEntityRecordEdits",(function(){return Qe})),r.d(a,"getEntityRecordNonTransientEdits",(function(){return Ge})),r.d(a,"hasEditsForEntityRecord",(function(){return ze})),r.d(a,"getEditedEntityRecord",(function(){return $e})),r.d(a,"isAutosavingEntityRecord",(function(){return Xe})),r.d(a,"isSavingEntityRecord",(function(){return Je})),r.d(a,"getLastEntitySaveError",(function(){return Ze})),r.d(a,"getUndoEdit",(function(){return tt})),r.d(a,"getRedoEdit",(function(){return rt})),r.d(a,"hasUndo",(function(){return nt})),r.d(a,"hasRedo",(function(){return at})),r.d(a,"getCurrentTheme",(function(){return ot})),r.d(a,"getThemeSupports",(function(){return ct})),r.d(a,"getEmbedPreview",(function(){return ut})),r.d(a,"isPreviewEmbedFallback",(function(){return it})),r.d(a,"hasUploadPermissions",(function(){return st})),r.d(a,"canUser",(function(){return ft})),r.d(a,"getAutosaves",(function(){return dt})),r.d(a,"getAutosave",(function(){return lt})),r.d(a,"hasFetchedAutosaves",(function(){return pt})),r.d(a,"getReferenceByDistinctEdits",(function(){return bt}));var o={};r.r(o),r.d(o,"getAuthors",(function(){return St})),r.d(o,"getCurrentUser",(function(){return It})),r.d(o,"getEntityRecord",(function(){return At})),r.d(o,"getRawEntityRecord",(function(){return Dt})),r.d(o,"getEditedEntityRecord",(function(){return Ut})),r.d(o,"getEntityRecords",(function(){return Ct})),r.d(o,"getCurrentTheme",(function(){return Mt})),r.d(o,"getThemeSupports",(function(){return Vt})),r.d(o,"getEmbedPreview",(function(){return Nt})),r.d(o,"hasUploadPermissions",(function(){return Lt})),r.d(o,"canUser",(function(){return qt})),r.d(o,"getAutosaves",(function(){return Yt})),r.d(o,"getAutosave",(function(){return Bt}));var c=r(5),u=r(4),i=r(14),s=r(18),f=r(2),d=r(64),l=r.n(d),p=function(e){return function(t){return function(r,n){return void 0===r||e(n)?t(r,n):r}}},b=function(e){return function(t){return function(r,n){return t(r,e(n))}}};function v(e,t){if(!e)return t;var r=!1,n={};for(var a in t)Object(f.isEqual)(e[a],t[a])?n[a]=e[a]:(r=!0,n[a]=t[a]);return r?n:e}function y(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 O(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y(Object(r),!0).forEach((function(t){Object(c.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var h=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,a=n[e];if(void 0===a)return r;var o=t(r[a],n);return o===r[a]?r:O({},r,Object(c.a)({},a,o))}}},g=r(24),E=r.n(g),m=r(1);function j(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 w(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?j(Object(r),!0).forEach((function(t){Object(c.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function x(e){return{type:"RECEIVE_ITEMS",items:Object(f.castArray)(e)}}function R(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return w({},x(e),{query:t})}var k=r(45),_=r.n(k);function P(e){return{type:"API_FETCH",request:e}}function T(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 S(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 I={API_FETCH:function(e){var t=e.request;return _()(t)},SELECT:Object(u.createRegistryControl)((function(e){return function(t){var r,n=t.selectorName,a=t.args;return(r=e.select("core"))[n].apply(r,Object(s.a)(a))}})),RESOLVE_SELECT:Object(u.createRegistryControl)((function(e){return function(t){var r,n=t.selectorName,a=t.args;return(r=e.__experimentalResolveSelect("core"))[n].apply(r,Object(s.a)(a))}}))},A=E.a.mark(K),D=E.a.mark(Q),U=E.a.mark(G),C=E.a.mark($),M=E.a.mark(X);function V(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 N(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?V(Object(r),!0).forEach((function(t){Object(c.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):V(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function L(e,t){return{type:"RECEIVE_USER_QUERY",users:Object(f.castArray)(t),queryID:e}}function q(e){return{type:"RECEIVE_CURRENT_USER",currentUser:e}}function Y(e){return{type:"ADD_ENTITIES",entities:e}}function B(e,t,r,n){var a=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?N({},e,{title:""}):e}))),N({},n?R(r,n):x(r),{kind:e,name:t,invalidateCache:a})}function F(e){return{type:"RECEIVE_CURRENT_THEME",currentTheme:e}}function H(e){return{type:"RECEIVE_THEME_SUPPORTS",themeSupports:e}}function W(e,t){return{type:"RECEIVE_EMBED_PREVIEW",url:e,preview:t}}function K(e,t,r,n){var a,o,c,u,i,s,d,l,p,b=arguments;return E.a.wrap((function(v){for(;;)switch(v.prev=v.next){case 0:return a=b.length>4&&void 0!==b[4]?b[4]:{},v.next=3,T("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 c=o.transientEdits,u=void 0===c?{}:c,i=o.mergedEdits,s=void 0===i?{}:i,v.next=9,T("getRawEntityRecord",e,t,r);case 9:return d=v.sent,v.next=12,T("getEditedEntityRecord",e,t,r);case 12:return l=v.sent,p={kind:e,name:t,recordId:r,edits:Object.keys(n).reduce((function(e,t){var r=d[t],a=l[t],o=s[t]?N({},a,{},n[t]):n[t];return e[t]=Object(f.isEqual)(r,o)?void 0:o,e}),{}),transientEdits:u},v.abrupt("return",N({type:"EDIT_ENTITY_RECORD"},p,{meta:{undo:!a.undoIgnore&&N({},p,{edits:Object.keys(n).reduce((function(e,t){return e[t]=l[t],e}),{})})}}));case 15:case"end":return v.stop()}}),A)}function Q(){var e;return E.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,T("getUndoEdit");case 2:if(e=t.sent){t.next=5;break}return t.abrupt("return");case 5:return t.next=7,N({type:"EDIT_ENTITY_RECORD"},e,{meta:{isUndo:!0}});case 7:case"end":return t.stop()}}),D)}function G(){var e;return E.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,T("getRedoEdit");case 2:if(e=t.sent){t.next=5;break}return t.abrupt("return");case 5:return t.next=7,N({type:"EDIT_ENTITY_RECORD"},e,{meta:{isRedo:!0}});case 7:case"end":return t.stop()}}),U)}function z(){return{type:"CREATE_UNDO_LEVEL"}}function $(e,t,r){var n,a,o,u,s,d,l,p,b,v,y,O,h,g,m,j,w,x,R,k,_,S,I,A,D,U=arguments;return E.a.wrap((function(E){for(;;)switch(E.prev=E.next){case 0:return n=U.length>3&&void 0!==U[3]?U[3]:{isAutosave:!1},a=n.isAutosave,o=void 0!==a&&a,E.next=3,fe(e);case 3:if(u=E.sent,s=Object(f.find)(u,{kind:e,name:t})){E.next=7;break}return E.abrupt("return");case 7:d=s.key||ae,l=r[d],p=0,b=Object.entries(r);case 10:if(!(p<b.length)){E.next=24;break}if(v=Object(i.a)(b[p],2),y=v[0],"function"!=typeof(O=v[1])){E.next=21;break}return E.t0=O,E.next=16,T("getEditedEntityRecord",e,t,l);case 16:return E.t1=E.sent,h=(0,E.t0)(E.t1),E.next=20,K(e,t,l,Object(c.a)({},y,h),{undoIgnore:!0});case 20:r[y]=h;case 21:p++,E.next=10;break;case 24:return E.next=26,{type:"SAVE_ENTITY_RECORD_START",kind:e,name:t,recordId:l,isAutosave:o};case 26:return E.prev=26,x="".concat(s.baseURL).concat(l?"/"+l:""),E.next=30,T("getRawEntityRecord",e,t,l);case 30:if(R=E.sent,!o){E.next=55;break}return E.next=34,T("getCurrentUser");case 34:return k=E.sent,_=k?k.id:void 0,E.next=38,T("getAutosave",R.type,R.id,_);case 38:return S=E.sent,I=N({},R,{},S,{},r),I=Object.keys(I).reduce((function(e,t){return["title","excerpt","content"].includes(t)&&(e[t]=Object(f.get)(I[t],"raw",I[t])),e}),{status:"auto-draft"===I.status?"draft":I.status}),E.next=43,P({path:"".concat(x,"/autosaves"),method:"POST",data:I});case 43:if(g=E.sent,R.id!==g.id){E.next=51;break}return A=N({},R,{},I,{},g),A=Object.keys(A).reduce((function(e,t){return["title","excerpt","content"].includes(t)?e[t]=Object(f.get)(A[t],"raw",A[t]):e[t]="status"===t?"auto-draft"===R.status&&"draft"===A.status?A.status:R.status:Object(f.get)(R[t],"raw",R[t]),e}),{}),E.next=49,B(e,t,A,void 0,!0);case 49:E.next=53;break;case 51:return E.next=53,ee(R.id,g);case 53:E.next=70;break;case 55:return D=r,"postType"===e&&R&&"auto-draft"===R.status&&(D.status||(D=N({},D,{status:"draft"})),D.title&&"Auto Draft"!==D.title||(D=N({},D,{title:""}))),E.next=59,T("__experimentalGetEntityRecordNoResolver",e,t,l);case 59:return j=E.sent,E.next=62,T("getEntityRecordEdits",e,t,l);case 62:return w=E.sent,E.next=65,B(e,t,N({},j,{},D),void 0,!0);case 65:return E.next=67,P({path:x,method:l?"PUT":"POST",data:D});case 67:return g=E.sent,E.next=70,B(e,t,g,void 0,!0);case 70:E.next=93;break;case 72:if(E.prev=72,E.t2=E.catch(26),m=E.t2,!j||!w){E.next=93;break}return E.next=78,B(e,t,j,void 0,!0);case 78:return E.t3=K,E.t4=e,E.t5=t,E.t6=l,E.t7=N,E.t8={},E.t9=w,E.t10={},E.next=88,T("getEntityRecordEdits",e,t,l);case 88:return E.t11=E.sent,E.t12=(0,E.t7)(E.t8,E.t9,E.t10,E.t11),E.t13={undoIgnore:!0},E.next=93,(0,E.t3)(E.t4,E.t5,E.t6,E.t12,E.t13);case 93:return E.next=95,{type:"SAVE_ENTITY_RECORD_FINISH",kind:e,name:t,recordId:l,error:m,isAutosave:o};case 95:return E.abrupt("return",g);case 96:case"end":return E.stop()}}),C,null,[[26,72]])}function X(e,t,r,n){var a,o;return E.a.wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,T("hasEditsForEntityRecord",e,t,r);case 2:if(c.sent){c.next=4;break}return c.abrupt("return");case 4:return c.next=6,T("getEntityRecordNonTransientEdits",e,t,r);case 6:return a=c.sent,o=N({id:r},a),c.delegateYield($(e,t,o,n),"t0",9);case 9:case"end":return c.stop()}}),M)}function J(e){return{type:"RECEIVE_USER_PERMISSION",key:"create/media",isAllowed:e}}function Z(e,t){return{type:"RECEIVE_USER_PERMISSION",key:e,isAllowed:t}}function ee(e,t){return{type:"RECEIVE_AUTOSAVES",postId:e,autosaves:Object(f.castArray)(t)}}var te=E.a.mark(ue),re=E.a.mark(ie),ne=E.a.mark(fe),ae="id",oe=[{label:Object(m.__)("Site"),name:"site",kind:"root",baseURL:"/wp/v2/settings",getTitle:function(e){return Object(f.get)(e,["title"],Object(m.__)("Site Title"))}},{label:Object(m.__)("Post Type"),name:"postType",kind:"root",key:"slug",baseURL:"/wp/v2/types"},{name:"media",kind:"root",baseURL:"/wp/v2/media",plural:"mediaItems",label:Object(m.__)("Media")},{name:"taxonomy",kind:"root",key:"slug",baseURL:"/wp/v2/taxonomies",plural:"taxonomies",label:Object(m.__)("Taxonomy")},{name:"widgetArea",kind:"root",baseURL:"/__experimental/widget-areas",plural:"widgetAreas",transientEdits:{blocks:!0},label:Object(m.__)("Widget area")},{label:Object(m.__)("User"),name:"user",kind:"root",baseURL:"/wp/v2/users",plural:"users"},{name:"comment",kind:"root",baseURL:"/wp/v2/comments",plural:"comments",label:Object(m.__)("Comment")},{name:"menu",kind:"root",baseURL:"/__experimental/menus",plural:"menus",label:Object(m.__)("Menu")},{name:"menuItem",kind:"root",baseURL:"/__experimental/menu-items",plural:"menuItems",label:Object(m.__)("Menu Item")},{name:"menuLocation",kind:"root",baseURL:"/__experimental/menu-locations",plural:"menuLocations",label:Object(m.__)("Menu Location"),key:"name"}],ce=[{name:"postType",loadEntities:ue},{name:"taxonomy",loadEntities:ie}];function ue(){var e;return E.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,P({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,label:e.labels.singular_name,transientEdits:{blocks:!0,selectionStart:!0,selectionEnd:!0},mergedEdits:{meta:!0},getTitle:function(e){return"wp_template_part"===t||"wp_template"===t?Object(f.startCase)(e.slug):Object(f.get)(e,["title","rendered"],e.id)}}})));case 4:case"end":return t.stop()}}),te)}function ie(){var e;return E.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,P({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,label:e.labels.singular_name}})));case 4:case"end":return t.stop()}}),re)}var se=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],a=Object(f.find)(oe,{kind:e,name:t}),o="root"===e?"":Object(f.upperFirst)(Object(f.camelCase)(e)),c=Object(f.upperFirst)(Object(f.camelCase)(t))+(n?"s":""),u=n&&a.plural?Object(f.upperFirst)(Object(f.camelCase)(a.plural)):c;return"".concat(r).concat(o).concat(u)};function fe(e){var t,r;return E.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,T("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)(ce,{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,Y(t);case 13:return n.abrupt("return",t);case 14:case"end":return n.stop()}}),ne)}var de=r(31);var le=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(e){for(var t={stableKey:"",page:1,perPage:10},r=Object.keys(e).sort(),n=0;n<r.length;n++){var a=r[n],o=e[a];switch(a){case"page":t[a]=Number(o);break;case"per_page":t.perPage=Number(o);break;default:t.stableKey+=(t.stableKey?"&":"")+Object(de.addQueryArgs)("",Object(c.a)({},a,o)).slice(1)}}return t}));function pe(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 be(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?pe(Object(r),!0).forEach((function(t){Object(c.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ve(e,t,r,n){if(1===r&&-1===n)return t;for(var a=(r-1)*n,o=Math.max(e.length,a+t.length),c=new Array(o),u=0;u<o;u++){var i=u>=a&&u<a+t.length;c[u]=i?t[u-a]:e[u]}return c}var ye=Object(f.flowRight)([p((function(e){return"query"in e})),b((function(e){return e.query?be({},e,{},le(e.query)):e})),h("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,a=t.perPage,o=t.key,c=void 0===o?ae:o;return"RECEIVE_ITEMS"!==r?e:ve(e||[],Object(f.map)(t.items,c),n,a)})),Oe=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||ae;return be({},e,{},t.items.reduce((function(t,n){var a=n[r];return t[a]=v(e[a],n),t}),{}))}return e},queries:ye});function he(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(!e)return;if("string"==typeof e)return ge(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ge(e,t)}(e))){var t=0,r=function(){};return{s:r,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,a,o=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw a}}}}function ge(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ee(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?Ee(Object(r),!0).forEach((function(t){Object(c.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ee(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function je(e){return Object(f.flowRight)([p((function(t){return t.name&&t.kind&&t.name===e.name&&t.kind===e.kind})),b((function(t){return me({},t,{key:e.key||ae})}))])(Object(u.combineReducers)({queriedData:Oe,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,n=me({},e),a=he(t.items);try{var o=function(){var e=r.value,a=e[t.key],o=n[a];if(!o)return"continue";var c=Object.keys(o).reduce((function(t,r){return Object(f.isEqual)(o[r],Object(f.get)(e[r],"raw",e[r]))||(t[r]=o[r]),t}),{});Object.keys(c).length?n[a]=c:delete n[a]};for(a.s();!(r=a.n()).done;)o()}catch(e){a.e(e)}finally{a.f()}return n;case"EDIT_ENTITY_RECORD":var u=me({},e[t.recordId],{},t.edits);return Object.keys(u).forEach((function(e){void 0===u[e]&&delete u[e]})),me({},e,Object(c.a)({},t.recordId,u))}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(c.a)({},t.recordId,{pending:"SAVE_ENTITY_RECORD_START"===t.type,error:t.error,isAutosave:t.isAutosave}))}return e}}))}function we(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:oe,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 xe,Re=[];Re.offset=0;var ke=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(c.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(c.a)({},t.queryID,Object(f.map)(t.users,(function(e){return e.id}))))}}return e},currentTheme:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_CURRENT_THEME":return t.currentTheme.stylesheet}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},themes: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_THEME":return me({},e,Object(c.a)({},t.currentTheme.stylesheet,t.currentTheme))}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=we(e.config,t),n=e.reducer;if(!n||r!==e.config){var a=Object(f.groupBy)(r,"kind");n=Object(u.combineReducers)(Object.entries(a).reduce((function(e,t){var r=Object(i.a)(t,2),n=r[0],a=r[1],o=Object(u.combineReducers)(a.reduce((function(e,t){return me({},e,Object(c.a)({},t.name,je(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,a=!n&&(t.meta.isUndo||t.meta.isRedo);if(n?t=xe:a||(xe=Object.keys(t.edits).some((function(e){return!t.transientEdits[e]}))?t:me({},t,{edits:me({},xe&&xe.edits,{},t.edits)})),a){if((r=Object(s.a)(e)).offset=e.offset+(t.meta.isUndo?-1:1),!e.flattenedUndo)return r;n=!0,t=xe}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})),c=Object.values(t.edits).filter((function(e){return"function"!=typeof e}));return l()(o,c)||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(c.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(c.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(c.a)({},r,n))}return e}}),_e=r(42),Pe=r(37),Te=r.n(Pe),Se=r(126),Ie=r.n(Se),Ae=new WeakMap;function De(e,t){var r=le(t),n=r.stableKey,a=r.page,o=r.perPage;if(!e.queries[n])return null;var c=e.queries[n];if(!c)return null;for(var u=-1===o?0:(a-1)*o,i=-1===o?c.length:Math.min(u+o,c.length),s=[],f=u;f<i;f++){var d=c[f];s.push(e.items[d])}return s}var Ue=Object(_e.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Ae.get(e);if(r){var n=r.get(t);if(void 0!==n)return n}else r=new Ie.a,Ae.set(e,r);var a=De(e,t);return r.set(t,a),a}));function Ce(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 Me=Object(u.createRegistrySelector)((function(e){return function(t,r){return e("core/data").isResolving("core","getEmbedPreview",[r])}}));function Ve(e){return Le(e,"authors")}function Ne(e){return e.currentUser}var Le=Object(_e.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 qe(e,t){return Object(f.filter)(e.entities.config,{kind:t})}function Ye(e,t,r){return Object(f.find)(e.entities.config,{kind:t,name:r})}function Be(e,t,r,n){return Object(f.get)(e.entities.data,[t,r,"queriedData","items",n])}function Fe(e,t,r,n){return Be(e,t,r,n)}var He=Object(_e.a)((function(e,t,r,n){var a=Be(e,t,r,n);return a&&Object.keys(a).reduce((function(e,t){return e[t]=Object(f.get)(a[t],"raw",a[t]),e}),{})}),(function(e){return[e.entities.data]}));function We(e,t,r,n){var a=Object(f.get)(e.entities.data,[t,r,"queriedData"]);return a?Ue(a,n):[]}var Ke=Object(_e.a)((function(e){var t=e.entities.data,r=[];return Object.keys(t).forEach((function(n){Object.keys(t[n]).forEach((function(a){var o=Object.keys(t[n][a].edits).filter((function(t){return ze(e,n,a,t)}));if(o.length){var c=Ye(e,n,a);o.forEach((function(t){var o=Be(e,n,a,t);r.push({key:o[c.key||ae],title:c.getTitle?c.getTitle(o):"",name:a,kind:n})}))}}))})),r}),(function(e){return[e.entities.data]}));function Qe(e,t,r,n){return Object(f.get)(e.entities.data,[t,r,"edits",n])}var Ge=Object(_e.a)((function(e,t,r,n){var a=(Ye(e,t,r)||{}).transientEdits,o=Qe(e,t,r,n)||{};return a?Object.keys(o).reduce((function(e,t){return a[t]||(e[t]=o[t]),e}),{}):o}),(function(e){return[e.entities.config,e.entities.data]}));function ze(e,t,r,n){return Je(e,t,r,n)||Object.keys(Ge(e,t,r,n)).length>0}var $e=Object(_e.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?Ce(Object(r),!0).forEach((function(t){Object(c.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ce(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},He(e,t,r,n),{},Qe(e,t,r,n))}),(function(e){return[e.entities.data]}));function Xe(e,t,r,n){var a=Object(f.get)(e.entities.data,[t,r,"saving",n],{}),o=a.pending,c=a.isAutosave;return Boolean(o&&c)}function Je(e,t,r,n){return Object(f.get)(e.entities.data,[t,r,"saving",n,"pending"],!1)}function Ze(e,t,r,n){return Object(f.get)(e.entities.data,[t,r,"saving",n,"error"])}function et(e){return e.undo.offset}function tt(e){return e.undo[e.undo.length-2+et(e)]}function rt(e){return e.undo[e.undo.length+et(e)]}function nt(e){return Boolean(tt(e))}function at(e){return Boolean(rt(e))}function ot(e){return e.themes[e.currentTheme]}function ct(e){return e.themeSupports}function ut(e,t){return e.embedPreviews[t]}function it(e,t){var r=e.embedPreviews[t],n='<a href="'+t+'">'+t+"</a>";return!!r&&r.html===n}function st(e){return Te()("select( 'core' ).hasUploadPermissions()",{alternative:"select( 'core' ).canUser( 'create', 'media' )"}),Object(f.defaultTo)(ft(e,"create","media"),!0)}function ft(e,t,r,n){var a=Object(f.compact)([t,r,n]).join("/");return Object(f.get)(e,["userPermissions",a])}function dt(e,t,r){return e.autosaves[r]}function lt(e,t,r,n){if(void 0!==n){var a=e.autosaves[r];return Object(f.find)(a,{author:n})}}var pt=Object(u.createRegistrySelector)((function(e){return function(t,r,n){return e("core").hasFinishedResolution("getAutosaves",[r,n])}})),bt=Object(_e.a)((function(){return[]}),(function(e){return[e.undo.length,e.undo.offset]})),vt=r(36),yt=function(e,t){return E.a.mark((function r(){var n,a,o,c=arguments;return E.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:for(n=c.length,a=new Array(n),o=0;o<n;o++)a[o]=c[o];return r.next=3,Object(vt.select)("core","hasStartedResolution",t,a);case 3:if(r.sent){r.next=6;break}return r.delegateYield(e.apply(void 0,a),"t0",6);case 6:case"end":return r.stop()}}),r)}))};function Ot(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 ht(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ot(Object(r),!0).forEach((function(t){Object(c.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ot(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var gt=E.a.mark(St),Et=E.a.mark(It),mt=E.a.mark(At),jt=E.a.mark(Ct),wt=E.a.mark(Mt),xt=E.a.mark(Vt),Rt=E.a.mark(Nt),kt=E.a.mark(Lt),_t=E.a.mark(qt),Pt=E.a.mark(Yt),Tt=E.a.mark(Bt);function St(){var e;return E.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,P({path:"/wp/v2/users/?who=authors&per_page=-1"});case 2:return e=t.sent,t.next=5,L("authors",e);case 5:case"end":return t.stop()}}),gt)}function It(){var e;return E.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,P({path:"/wp/v2/users/me"});case 2:return e=t.sent,t.next=5,q(e);case 5:case"end":return t.stop()}}),Et)}function At(e,t){var r,n,a,o,c=arguments;return E.a.wrap((function(u){for(;;)switch(u.prev=u.next){case 0:return r=c.length>2&&void 0!==c[2]?c[2]:"",u.next=3,fe(e);case 3:if(n=u.sent,a=Object(f.find)(n,{kind:e,name:t})){u.next=7;break}return u.abrupt("return");case 7:return u.next=9,P({path:"".concat(a.baseURL,"/").concat(r,"?context=edit")});case 9:return o=u.sent,u.next=12,B(e,t,o);case 12:case"end":return u.stop()}}),mt)}var Dt=yt(At,"getEntityRecord"),Ut=yt(Dt,"getRawEntityRecord");function Ct(e,t){var r,n,a,o,c,u=arguments;return E.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,fe(e);case 3:if(n=i.sent,a=Object(f.find)(n,{kind:e,name:t})){i.next=7;break}return i.abrupt("return");case 7:return o=Object(de.addQueryArgs)(a.baseURL,ht({},r,{context:"edit"})),i.next=10,P({path:o});case 10:return c=i.sent,i.next=13,B(e,t,Object.values(c),r);case 13:case"end":return i.stop()}}),jt)}function Mt(){var e;return E.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,P({path:"/wp/v2/themes?status=active"});case 2:return e=t.sent,t.next=5,F(e[0]);case 5:case"end":return t.stop()}}),wt)}function Vt(){var e;return E.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,P({path:"/wp/v2/themes?status=active"});case 2:return e=t.sent,t.next=5,H(e[0].theme_supports);case 5:case"end":return t.stop()}}),xt)}function Nt(e){var t;return E.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,P({path:Object(de.addQueryArgs)("/oembed/1.0/proxy",{url:e})});case 3:return t=r.sent,r.next=6,W(e,t);case 6:r.next=12;break;case 8:return r.prev=8,r.t0=r.catch(0),r.next=12,W(e,!1);case 12:case"end":return r.stop()}}),Rt,null,[[0,8]])}function Lt(){return E.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Te()("select( 'core' ).hasUploadPermissions()",{alternative:"select( 'core' ).canUser( 'create', 'media' )"}),e.delegateYield(qt("create","media"),"t0",2);case 2:case"end":return e.stop()}}),kt)}function qt(e,t,r){var n,a,o,c,u,i;return E.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 a=r?"/wp/v2/".concat(t,"/").concat(r):"/wp/v2/".concat(t),s.prev=5,s.next=8,P({path:a,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 c=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)(c,n),s.next=19,Z(u,i);case 19:case"end":return s.stop()}}),_t,null,[[5,11]])}function Yt(e,t){var r,n,a;return E.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,S("getPostType",e);case 2:return r=o.sent,n=r.rest_base,o.next=6,P({path:"/wp/v2/".concat(n,"/").concat(t,"/autosaves?context=edit")});case 6:if(!(a=o.sent)||!a.length){o.next=10;break}return o.next=10,ee(t,a);case 10:case"end":return o.stop()}}),Pt)}function Bt(e,t){return E.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,S("getAutosaves",e,t);case 2:case"end":return r.stop()}}),Tt)}Ct.shouldInvalidate=function(e,t,r){return"RECEIVE_ITEMS"===e.type&&e.invalidateCache&&t===e.kind&&r===e.name};var Ft=r(0),Ht=r(10);function Wt(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 Kt=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Wt(Object(r),!0).forEach((function(t){Object(c.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},oe.reduce((function(e,t){return e[t.kind]||(e[t.kind]={}),e[t.kind][t.name]={context:Object(Ft.createContext)()},e}),{}),{},ce.reduce((function(e,t){return e[t.name]={},e}),{})),Qt=function(e,t){if(!Kt[e])throw new Error("Missing entity config for kind: ".concat(e,"."));return Kt[e][t]||(Kt[e][t]={context:Object(Ft.createContext)()}),Kt[e][t]};function Gt(e){var t=e.kind,r=e.type,n=e.id,a=e.children,o=Qt(t,r).context.Provider;return Object(Ft.createElement)(o,{value:n},a)}function zt(e,t){return Object(Ft.useContext)(Qt(e,t).context)}function $t(e,t,r,n){var a=zt(e,t),o=null!=n?n:a,i=Object(u.useSelect)((function(n){var a=n("core"),c=a.getEntityRecord,u=a.getEditedEntityRecord,i=c(e,t,o),s=u(e,t,o);return i&&s?{value:s[r],fullValue:i[r]}:{}}),[e,t,o,r]),s=i.value,f=i.fullValue,d=Object(u.useDispatch)("core").editEntityRecord;return[s,Object(Ft.useCallback)((function(n){d(e,t,o,Object(c.a)({},r,n))}),[e,t,o,r]),f]}function Xt(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.initialEdits,a=r.blocksProp,o=void 0===a?"blocks":a,c=r.contentProp,s=void 0===c?"content":c,f=r.id,d=zt(e,t),l=null!=f?f:d,p=$t(e,t,s,l),b=Object(i.a)(p,2),v=b[0],y=b[1],O=Object(u.useDispatch)("core"),h=O.editEntityRecord;Object(Ft.useEffect)((function(){n&&h(e,t,l,n,{undoIgnore:!0})}),[l]);var g=Object(Ft.useMemo)((function(){if(v&&"function"!=typeof v){var e=Object(Ht.parse)(v);return e.length?e:[]}return[]}),[v]),E=$t(e,t,o,l),m=Object(i.a)(E,2),j=m[0],w=void 0===j?g:j,x=m[1],R=Object(Ft.useCallback)((function(e){x(e),y((function(e){var t=e.blocks;return Object(Ht.serialize)(t)}))}),[x,y]);return[w,x,R]}function Jt(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 Zt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Jt(Object(r),!0).forEach((function(t){Object(c.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var er=oe.reduce((function(e,t){var r=t.kind,n=t.name;return e[se(r,n)]=function(e,t){return Be(e,r,n,t)},e[se(r,n,"get",!0)]=function(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),c=1;c<t;c++)o[c-1]=arguments[c];return We.apply(a,[e,r,n].concat(o))},e}),{}),tr=oe.reduce((function(e,t){var r=t.kind,n=t.name;e[se(r,n)]=function(e){return At(r,n,e)};var a=se(r,n,"get",!0);return e[a]=function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return Ct.apply(o,[r,n].concat(t))},e[a].shouldInvalidate=function(e){for(var t,a=arguments.length,o=new Array(a>1?a-1:0),c=1;c<a;c++)o[c-1]=arguments[c];return(t=Ct).shouldInvalidate.apply(t,[e,r,n].concat(o))},e}),{}),rr=oe.reduce((function(e,t){var r=t.kind,n=t.name;return e[se(r,n,"save")]=function(e){return $(r,n,e)},e}),{});Object(u.registerStore)("core",{reducer:ke,controls:I,actions:Zt({},n,{},rr),selectors:Zt({},a,{},er),resolvers:Zt({},o,{},tr)})},45:function(e,t){!function(){e.exports=this.wp.apiFetch}()},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}))},64:function(e,t){!function(){e.exports=this.wp.isShallowEqual}()}}); |