/*! This file is auto-generated */ this.wp=this.wp||{},this.wp.coreData=function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=369)}({0:function(e,t){!function(){e.exports=this.wp.element}()},18:function(e,t,n){"use strict";var r=n(32);function a(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,a=r[e];if(void 0===a)return n;var u=t(n[a],r);return u===n[a]?n:Object(c.a)({},n,Object(d.a)({},a,u))}}},E=function(e){return function(t){return function(n,r){return t(n,e(r))}}};var h=function(e){var t=new WeakMap;return function(n){var r;return t.has(n)?r=t.get(n):(r=e(n),Object(f.isObjectLike)(n)&&t.set(n,r)),r}};function y(e){return{type:"RECEIVE_ITEMS",items:Object(f.castArray)(e)}}var g=n(38),O=n(76),m=n.n(O),j=n(25);var w=h((function(e){for(var t={stableKey:"",page:1,perPage:10},n=Object.keys(e).sort(),r=0;r1&&void 0!==arguments[1]?arguments[1]:{},n=x.get(e);if(n){var r=n.get(t);if(void 0!==r)return r}else n=new m.a,x.set(e,n);var a=R(e,t);return n.set(t,a),a})),_=n(23),T=n.n(_),I=n(37),S=n.n(I);function A(e){return{type:"API_FETCH",request:e}}function U(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1?t-1:0),r=1;r4&&void 0!==arguments[4]&&arguments[4];return"postType"===e&&(n=Object(f.castArray)(n).map((function(e){return"auto-draft"===e.status?Object(c.a)({},e,{title:""}):e}))),a=r?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(c.a)({},y(e),{query:t})}(n,r):y(n),Object(c.a)({},a,{kind:e,name:t,invalidateCache:u})}function K(e){return{type:"RECEIVE_THEME_SUPPORTS",themeSupports:e}}function Q(e,t){return{type:"RECEIVE_EMBED_PREVIEW",url:e,preview:t}}function W(e,t,n,r){var a,u,i,o,s,d,v,l,p,b=arguments;return T.a.wrap((function(E){for(;;)switch(E.prev=E.next){case 0:return a=b.length>4&&void 0!==b[4]?b[4]:{},E.next=3,U("getEntity",e,t);case 3:if(u=E.sent){E.next=6;break}throw new Error("The entity being edited (".concat(e,", ").concat(t,") does not have a loaded config."));case 6:return i=u.transientEdits,o=void 0===i?{}:i,s=u.mergedEdits,d=void 0===s?{}:s,E.next=9,U("getRawEntityRecord",e,t,n);case 9:return v=E.sent,E.next=12,U("getEditedEntityRecord",e,t,n);case 12:return l=E.sent,p={kind:e,name:t,recordId:n,edits:Object.keys(r).reduce((function(e,t){var n=v[t],a=l[t],u=d[t]?Object(c.a)({},a,r[t]):r[t];return e[t]=Object(f.isEqual)(n,u)?void 0:u,e}),{}),transientEdits:o},E.abrupt("return",Object(c.a)({type:"EDIT_ENTITY_RECORD"},p,{meta:{undo:!a.undoIgnore&&Object(c.a)({},p,{edits:Object.keys(r).reduce((function(e,t){return e[t]=l[t],e}),{})})}}));case 15:case"end":return E.stop()}}),D)}function H(){var e;return T.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,U("getUndoEdit");case 2:if(e=t.sent){t.next=5;break}return t.abrupt("return");case 5:return t.next=7,Object(c.a)({type:"EDIT_ENTITY_RECORD"},e,{meta:{isUndo:!0}});case 7:case"end":return t.stop()}}),M)}function z(){var e;return T.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,U("getRedoEdit");case 2:if(e=t.sent){t.next=5;break}return t.abrupt("return");case 5:return t.next=7,Object(c.a)({type:"EDIT_ENTITY_RECORD"},e,{meta:{isRedo:!0}});case 7:case"end":return t.stop()}}),V)}function G(){return{type:"CREATE_UNDO_LEVEL"}}function X(e,t,n){var r,a,u,i,o,s,d,v,l,p,b,E,h,y,g,O,m,j,w,x=arguments;return T.a.wrap((function(R){for(;;)switch(R.prev=R.next){case 0:return r=x.length>3&&void 0!==x[3]?x[3]:{isAutosave:!1},a=r.isAutosave,u=void 0!==a&&a,R.next=3,de(e);case 3:if(i=R.sent,o=Object(f.find)(i,{kind:e,name:t})){R.next=7;break}return R.abrupt("return");case 7:return s=o.key||ae,d=n[s],R.next=11,{type:"SAVE_ENTITY_RECORD_START",kind:e,name:t,recordId:d,isAutosave:u};case 11:return R.prev=11,E="".concat(o.baseURL).concat(d?"/"+d:""),R.next=15,U("getRawEntityRecord",e,t,d);case 15:if(h=R.sent,!u){R.next=40;break}return R.next=19,U("getCurrentUser");case 19:return y=R.sent,g=y?y.id:void 0,R.next=23,U("getAutosave",h.type,h.id,g);case 23:return O=R.sent,m=Object(c.a)({},h,O,n),m=Object.keys(m).reduce((function(e,t){return["title","excerpt","content"].includes(t)&&(e[t]=Object(f.get)(m[t],"raw",m[t])),e}),{status:"auto-draft"===m.status?"draft":m.status}),R.next=28,A({path:"".concat(E,"/autosaves"),method:"POST",data:m});case 28:if(v=R.sent,h.id!==v.id){R.next=36;break}return j=Object(c.a)({},h,m,v),j=Object.keys(j).reduce((function(e,t){return["title","excerpt","content"].includes(t)?e[t]=Object(f.get)(j[t],"raw",j[t]):e[t]="status"===t?"auto-draft"===h.status&&"draft"===j.status?j.status:h.status:Object(f.get)(h[t],"raw",h[t]),e}),{}),R.next=34,B(e,t,j,void 0,!0);case 34:R.next=38;break;case 36:return R.next=38,ee(h.id,v);case 38:R.next=55;break;case 40:return w=n,"postType"===e&&h&&"auto-draft"===h.status&&(w.status||(w=Object(c.a)({},w,{status:"draft"})),w.title&&"Auto Draft"!==w.title||(w=Object(c.a)({},w,{title:""}))),R.next=44,U("getEntityRecord",e,t,d);case 44:return p=R.sent,R.next=47,U("getEntityRecordEdits",e,t,d);case 47:return b=R.sent,R.next=50,B(e,t,Object(c.a)({},p,w),void 0,!0);case 50:return R.next=52,A({path:E,method:d?"PUT":"POST",data:w});case 52:return v=R.sent,R.next=55,B(e,t,v,void 0,!0);case 55:R.next=77;break;case 57:if(R.prev=57,R.t0=R.catch(11),l=R.t0,!p||!b){R.next=77;break}return R.next=63,B(e,t,p,void 0,!0);case 63:return R.t1=W,R.t2=e,R.t3=t,R.t4=d,R.t5=c.a,R.t6={},R.t7=b,R.next=72,U("getEntityRecordEdits",e,t,d);case 72:return R.t8=R.sent,R.t9=(0,R.t5)(R.t6,R.t7,R.t8),R.t10={undoIgnore:!0},R.next=77,(0,R.t1)(R.t2,R.t3,R.t4,R.t9,R.t10);case 77:return R.next=79,{type:"SAVE_ENTITY_RECORD_FINISH",kind:e,name:t,recordId:d,error:l,isAutosave:u};case 79:return R.abrupt("return",v);case 80:case"end":return R.stop()}}),N,null,[[11,57]])}function J(e,t,n,r){var a,u;return T.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,U("hasEditsForEntityRecord",e,t,n);case 2:if(i.sent){i.next=4;break}return i.abrupt("return");case 4:return i.next=6,U("getEntityRecordNonTransientEdits",e,t,n);case 6:return a=i.sent,u=Object(c.a)({id:n},a),i.delegateYield(X(e,t,u,r),"t0",9);case 9:case"end":return i.stop()}}),q)}function Z(e){return{type:"RECEIVE_USER_PERMISSION",key:"create/media",isAllowed:e}}function $(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=T.a.mark(ie),ne=T.a.mark(oe),re=T.a.mark(de),ae="id",ue=[{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}}],ce=[{name:"postType",loadEntities:ie},{name:"taxonomy",loadEntities:oe}];function ie(){var e;return T.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,A({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()}}),te)}function oe(){var e;return T.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,A({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()}}),ne)}var se=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"get",r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=Object(f.find)(ue,{kind:e,name:t}),u="root"===e?"":Object(f.upperFirst)(Object(f.camelCase)(e)),c=Object(f.upperFirst)(Object(f.camelCase)(t))+(r?"s":""),i=r&&a.plural?Object(f.upperFirst)(Object(f.camelCase)(a.plural)):c;return"".concat(n).concat(u).concat(i)};function de(e){var t,n;return T.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,U("getEntitiesByKind",e);case 2:if(!(t=r.sent)||0===t.length){r.next=5;break}return r.abrupt("return",t);case 5:if(n=Object(f.find)(ce,{name:e})){r.next=8;break}return r.abrupt("return",[]);case 8:return r.next=10,n.loadEntities();case 10:return t=r.sent,r.next=13,F(t);case 13:return r.abrupt("return",t);case 14:case"end":return r.stop()}}),re)}function fe(e,t,n,r){for(var a=(n-1)*r,u=Math.max(e.length,a+t.length),c=new Array(u),i=0;i=a&&i0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.page,a=t.perPage,u=t.key,c=void 0===u?ae:u;return"RECEIVE_ITEMS"!==n?e:fe(e||[],Object(f.map)(t.items,c),r,a)})),le=Object(i.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 n=t.key||ae;return Object(c.a)({},e,t.items.reduce((function(t,r){var a=r[n];return t[a]=function(e,t){if(!e)return t;var n=!1,r={};for(var a in t)Object(f.isEqual)(e[a],t[a])?r[a]=e[a]:(n=!0,r[a]=t[a]);return n?r:e}(e[a],r),t}),{}))}return e},queries:ve});function pe(e){return Object(f.flowRight)([p((function(t){return t.name&&t.kind&&t.name===e.name&&t.kind===e.kind})),E((function(t){return Object(c.a)({},t,{key:e.key||ae})}))])(Object(i.combineReducers)({queriedData:le,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 n=Object(c.a)({},e),r=!0,a=!1,u=void 0;try{for(var i,o=function(){var e=i.value,r=e[t.key],a=n[r];if(!a)return"continue";var u=Object.keys(a).reduce((function(t,n){return Object(f.isEqual)(a[n],Object(f.get)(e[n],"raw",e[n]))||(t[n]=a[n]),t}),{});Object.keys(u).length?n[r]=u:delete n[r]},s=t.items[Symbol.iterator]();!(r=(i=s.next()).done);r=!0)o()}catch(e){a=!0,u=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw u}}return n;case"EDIT_ENTITY_RECORD":var v=Object(c.a)({},e[t.recordId],t.edits);return Object.keys(v).forEach((function(e){void 0===v[e]&&delete v[e]})),Object(c.a)({},e,Object(d.a)({},t.recordId,v))}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 Object(c.a)({},e,Object(d.a)({},t.recordId,{pending:"SAVE_ENTITY_RECORD_START"===t.type,error:t.error,isAutosave:t.isAutosave}))}return e}}))}function be(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ue,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 Ee,he=[];he.offset=0;var ye=Object(i.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 Object(c.a)({},e,Object(d.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:Object(c.a)({},e.byId,Object(f.keyBy)(t.users,"id")),queries:Object(c.a)({},e.queries,Object(d.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 Object(c.a)({},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,n=be(e.config,t),r=e.reducer;if(!r||n!==e.config){var a=Object(f.groupBy)(n,"kind");r=Object(i.combineReducers)(Object.entries(a).reduce((function(e,t){var n=Object(o.a)(t,2),r=n[0],a=n[1],u=Object(i.combineReducers)(a.reduce((function(e,t){return Object(c.a)({},e,Object(d.a)({},t.name,pe(t)))}),{}));return e[r]=u,e}),{}))}var u=r(e.data,t);return u===e.data&&n===e.config&&r===e.reducer?e:{reducer:r,data:u,config:n}},undo:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:he,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"EDIT_ENTITY_RECORD":case"CREATE_UNDO_LEVEL":var n,r="CREATE_UNDO_LEVEL"===t.type,a=!r&&(t.meta.isUndo||t.meta.isRedo);if(r?t=Ee:a||(Ee=Object.keys(t.edits).some((function(e){return!t.transientEdits[e]}))?t:Object(c.a)({},t,{edits:Object(c.a)({},Ee&&Ee.edits,t.edits)})),a){if((n=Object(s.a)(e)).offset=e.offset+(t.meta.isUndo?-1:1),!e.flattenedUndo)return n;r=!0,t=Ee}if(!t.meta.undo)return e;if(!r&&!Object.keys(t.edits).some((function(e){return!t.transientEdits[e]})))return(n=Object(s.a)(e)).flattenedUndo=Object(c.a)({},e.flattenedUndo,t.edits),n.offset=e.offset,n;(n=n||e.slice(0,e.offset||void 0)).offset=n.offset||0,n.pop(),r||n.push({kind:t.meta.undo.kind,name:t.meta.undo.name,recordId:t.meta.undo.recordId,edits:Object(c.a)({},e.flattenedUndo,t.meta.undo.edits)});var u=Object.values(t.meta.undo.edits).filter((function(e){return"function"!=typeof e})),i=Object.values(t.edits).filter((function(e){return"function"!=typeof e}));return l()(u,i)||n.push({kind:t.kind,name:t.name,recordId:t.recordId,edits:r?Object(c.a)({},e.flattenedUndo,t.edits):t.edits}),n}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 n=t.url,r=t.preview;return Object(c.a)({},e,Object(d.a)({},n,r))}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 Object(c.a)({},e,Object(d.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 n=t.postId,r=t.autosaves;return Object(c.a)({},e,Object(d.a)({},n,r))}return e}}),ge=n(35),Oe=n.n(ge),me=Object(i.createRegistrySelector)((function(e){return function(t,n){return e("core/data").isResolving("core","getEmbedPreview",[n])}}));function je(e){return xe(e,"authors")}function we(e){return e.currentUser}var xe=Object(g.a)((function(e,t){var n=e.users.queries[t];return Object(f.map)(n,(function(t){return e.users.byId[t]}))}),(function(e,t){return[e.users.queries[t],e.users.byId]}));function Re(e,t){return Object(f.filter)(e.entities.config,{kind:t})}function ke(e,t,n){return Object(f.find)(e.entities.config,{kind:t,name:n})}function _e(e,t,n,r){return Object(f.get)(e.entities.data,[t,n,"queriedData","items",r])}var Te=Object(g.a)((function(e,t,n,r){var a=_e(e,t,n,r);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 Ie(e,t,n,r){var a=Object(f.get)(e.entities.data,[t,n,"queriedData"]);return a?k(a,r):[]}function Se(e,t,n,r){return Object(f.get)(e.entities.data,[t,n,"edits",r])}var Ae=Object(g.a)((function(e,t,n,r){var a=(ke(e,t,n)||{}).transientEdits,u=Se(e,t,n,r)||{};return a?Object.keys(u).reduce((function(e,t){return a[t]||(e[t]=u[t]),e}),{}):u}),(function(e){return[e.entities.config,e.entities.data]}));function Ue(e,t,n,r){return De(e,t,n,r)||Object.keys(Ae(e,t,n,r)).length>0}var Ce=Object(g.a)((function(e,t,n,r){return Object(c.a)({},Te(e,t,n,r),Se(e,t,n,r))}),(function(e){return[e.entities.data]}));function Pe(e,t,n,r){var a=Object(f.get)(e.entities.data,[t,n,"saving",r],{}),u=a.pending,c=a.isAutosave;return Boolean(u&&c)}function De(e,t,n,r){return Object(f.get)(e.entities.data,[t,n,"saving",r,"pending"],!1)}function Me(e,t,n,r){return Object(f.get)(e.entities.data,[t,n,"saving",r,"error"])}function Ve(e){return e.undo.offset}function Ne(e){return e.undo[e.undo.length-2+Ve(e)]}function qe(e){return e.undo[e.undo.length+Ve(e)]}function Le(e){return Boolean(Ne(e))}function Ye(e){return Boolean(qe(e))}function Fe(e){return e.themeSupports}function Be(e,t){return e.embedPreviews[t]}function Ke(e,t){var n=e.embedPreviews[t],r=''+t+"";return!!n&&n.html===r}function Qe(e){return Oe()("select( 'core' ).hasUploadPermissions()",{alternative:"select( 'core' ).canUser( 'create', 'media' )"}),Object(f.defaultTo)(We(e,"create","media"),!0)}function We(e,t,n,r){var a=Object(f.compact)([t,n,r]).join("/");return Object(f.get)(e,["userPermissions",a])}function He(e,t,n){return e.autosaves[n]}function ze(e,t,n,r){if(void 0!==r){var a=e.autosaves[n];return Object(f.find)(a,{author:r})}}var Ge=Object(i.createRegistrySelector)((function(e){return function(t,n,r){return e("core").hasFinishedResolution("getAutosaves",[n,r])}})),Xe=Object(g.a)((function(){return[]}),(function(e){return[e.undo.length,e.undo.offset]})),Je=T.a.mark(it),Ze=T.a.mark(ot),$e=T.a.mark(st),et=T.a.mark(dt),tt=T.a.mark(ft),nt=T.a.mark(vt),rt=T.a.mark(lt),at=T.a.mark(pt),ut=T.a.mark(bt),ct=T.a.mark(Et);function it(){var e;return T.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,A({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()}}),Je)}function ot(){var e;return T.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,A({path:"/wp/v2/users/me"});case 2:return e=t.sent,t.next=5,Y(e);case 5:case"end":return t.stop()}}),Ze)}function st(e,t){var n,r,a,u,c=arguments;return T.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return n=c.length>2&&void 0!==c[2]?c[2]:"",i.next=3,de(e);case 3:if(r=i.sent,a=Object(f.find)(r,{kind:e,name:t})){i.next=7;break}return i.abrupt("return");case 7:return i.next=9,A({path:"".concat(a.baseURL,"/").concat(n,"?context=edit")});case 9:return u=i.sent,i.next=12,B(e,t,u);case 12:case"end":return i.stop()}}),$e)}function dt(e,t){var n,r,a,u,i,o=arguments;return T.a.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return n=o.length>2&&void 0!==o[2]?o[2]:{},s.next=3,de(e);case 3:if(r=s.sent,a=Object(f.find)(r,{kind:e,name:t})){s.next=7;break}return s.abrupt("return");case 7:return u=Object(j.addQueryArgs)(a.baseURL,Object(c.a)({},n,{context:"edit"})),s.next=10,A({path:u});case 10:return i=s.sent,s.next=13,B(e,t,Object.values(i),n);case 13:case"end":return s.stop()}}),et)}function ft(){var e;return T.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,A({path:"/wp/v2/themes?status=active"});case 2:return e=t.sent,t.next=5,K(e[0].theme_supports);case 5:case"end":return t.stop()}}),tt)}function vt(e){var t;return T.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,A({path:Object(j.addQueryArgs)("/oembed/1.0/proxy",{url:e})});case 3:return t=n.sent,n.next=6,Q(e,t);case 6:n.next=12;break;case 8:return n.prev=8,n.t0=n.catch(0),n.next=12,Q(e,!1);case 12:case"end":return n.stop()}}),nt,null,[[0,8]])}function lt(){return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Oe()("select( 'core' ).hasUploadPermissions()",{alternative:"select( 'core' ).canUser( 'create', 'media' )"}),e.delegateYield(pt("create","media"),"t0",2);case 2:case"end":return e.stop()}}),rt)}function pt(e,t,n){var r,a,u,c,i,o;return T.a.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:if(r={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=n?"/wp/v2/".concat(t,"/").concat(n):"/wp/v2/".concat(t),s.prev=5,s.next=8,A({path:a,method:n?"GET":"OPTIONS",parse:!1});case 8:u=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)(u,["headers","get"])?u.headers.get("allow"):Object(f.get)(u,["headers","Allow"],""),i=Object(f.compact)([e,t,n]).join("/"),o=Object(f.includes)(c,r),s.next=19,$(i,o);case 19:case"end":return s.stop()}}),at,null,[[5,11]])}function bt(e,t){var n,r,a;return T.a.wrap((function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,C("getPostType",e);case 2:return n=u.sent,r=n.rest_base,u.next=6,A({path:"/wp/v2/".concat(r,"/").concat(t,"/autosaves?context=edit")});case 6:if(!(a=u.sent)||!a.length){u.next=10;break}return u.next=10,ee(t,a);case 10:case"end":return u.stop()}}),ut)}function Et(e,t){return T.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,C("getAutosaves",e,t);case 2:case"end":return n.stop()}}),ct)}dt.shouldInvalidate=function(e,t,n){return"RECEIVE_ITEMS"===e.type&&e.invalidateCache&&t===e.kind&&n===e.name};var ht=n(0),yt=Object(c.a)({},ue.reduce((function(e,t){return e[t.kind]||(e[t.kind]={}),e[t.kind][t.name]={context:Object(ht.createContext)()},e}),{}),ce.reduce((function(e,t){return e[t.name]={},e}),{})),gt=function(e,t){if(!yt[e])throw new Error("Missing entity config for kind: ".concat(e,"."));return yt[e][t]||(yt[e][t]={context:Object(ht.createContext)()}),yt[e][t]};function Ot(e){var t=e.kind,n=e.type,r=e.id,a=e.children,u=gt(t,n).context.Provider;return Object(ht.createElement)(u,{value:r},a)}function mt(e,t){return Object(ht.useContext)(gt(e,t).context)}function jt(e,t,n){var r=mt(e,t),a=Object(i.useSelect)((function(a){var u=a("core"),c=u.getEntityRecord,i=u.getEditedEntityRecord;c(e,t,r);var o=i(e,t,r);return o&&o[n]}),[e,t,r,n]),u=Object(i.useDispatch)("core").editEntityRecord;return[a,Object(ht.useCallback)((function(a){u(e,t,r,Object(d.a)({},n,a))}),[e,t,r,n])]}function wt(e,t,n){var r=mt(e,t),a=Object(i.useSelect)((function(a){var u=a("core"),c=u.getEntityRecordNonTransientEdits,i=u.isSavingEntityRecord,o=c(e,t,r),s=Object.keys(o);return[n?s.some((function(e){return"string"==typeof n?e===n:n.includes(e)})):s.length>0,i(e,t,r),o]}),[e,t,r,n]),u=Object(o.a)(a,3),s=u[0],f=u[1],v=u[2],l=Object(i.useDispatch)("core").saveEntityRecord;return[s,f,Object(ht.useCallback)((function(){var a=v;"string"==typeof n?a=Object(d.a)({},n,a[n]):n&&(a=a.reduce((function(e,t){return n.includes(t)&&(e[t]=a[t]),e}),{})),l(e,t,Object(c.a)({id:r},a))}),[e,t,r,n,v])]}n.d(t,"EntityProvider",(function(){return Ot})),n.d(t,"useEntityId",(function(){return mt})),n.d(t,"useEntityProp",(function(){return jt})),n.d(t,"__experimentalUseEntitySaving",(function(){return wt}));var xt=ue.reduce((function(e,t){var n=t.kind,r=t.name;return e[se(n,r)]=function(e,t){return _e(e,n,r,t)},e[se(n,r,"get",!0)]=function(e){for(var t=arguments.length,u=new Array(t>1?t-1:0),c=1;c1?a-1:0),c=1;c1&&void 0!==arguments[1]?arguments[1]:this;this._map.forEach((function(a,u){null!==u&&"object"===r(u)&&(a=a[1]),e.call(n,a,u,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,n),c&&a(t,c),e}();e.exports=c},9:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))}});