/*! 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="./node_modules/@wordpress/core-data/build-module/index.js")}({"./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js":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);r0&&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:j(j({},r),{},Object(i.a)({},a,o))}}},E=r("@babel/runtime/regenerator"),w=r.n(E),_=r("@wordpress/i18n"),k=r("./node_modules/@babel/runtime/helpers/esm/toArray.js"),x=r("./node_modules/uuid/dist/esm-browser/v4.js"),R=r("@wordpress/url");function S(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 T(e){for(var t=1;t3&&void 0!==arguments[3]&&arguments[3];return{type:"REMOVE_ITEMS",itemIds:Object(p.castArray)(r),kind:e,name:t,invalidateCache:n}}function I(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;return T(T({},P(e,r)),{},{query:t})}function C(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return D(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(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return D(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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 o,u=!0,c=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return u=e.done,e},e:function(e){c=!0,o=e},f:function(){try{u||null==r.return||r.return()}finally{if(c)throw o}}}}function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=200&&e.status<300?t.output=e.body:t.error=e.body,t})));case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Z(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return ee(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(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ee(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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 o,u=!0,c=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return u=e.done,e},e:function(e){c=!0,o=e},f:function(){try{u||null==r.return||r.return()}finally{if(c)throw o}}}}function ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:X,t=0,r=[],n=new re;return{add:function(e){var a=++t;n.add(a);var o=function(e){return new Promise((function(t,o){r.push({input:e,resolve:t,reject:o}),n.delete(a)}))};return Object(p.isFunction)(e)?Promise.resolve(e(o)).finally((function(){n.delete(a)})):o(e)},run:function(){return Object(W.a)(w.a.mark((function t(){var a,o,u,c,i,s,l,d,b,v,y,h;return w.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n.size){t.next=3;break}return t.next=3,new Promise((function(e){var t=n.subscribe((function(){n.size||(t(),e())}))}));case 3:return t.prev=3,t.next=6,e(r.map((function(e){return e.input})));case 6:if((a=t.sent).length===r.length){t.next=9;break}throw new Error("run: Array returned by processor must be same size as input array.");case 9:t.next=16;break;case 11:t.prev=11,t.t0=t.catch(3),o=Z(r);try{for(o.s();!(u=o.n()).done;)(0,u.value.reject)(t.t0)}catch(e){o.e(e)}finally{o.f()}throw t.t0;case 16:c=!0,i=Z(Object(p.zip)(a,r));try{for(i.s();!(s=i.n()).done;)l=Object(f.a)(s.value,2),d=l[0],b=l[1],v=b.resolve,y=b.reject,null!=d&&d.error?(y(d.error),c=!1):v(null!==(h=null==d?void 0:d.output)&&void 0!==h?h:d)}catch(e){i.e(e)}finally{i.f()}return r=[],t.abrupt("return",c);case 21:case"end":return t.stop()}}),t,null,[[3,11]])})))()}}}var re=function(){function e(){Object(B.a)(this,e);for(var t=arguments.length,r=new Array(t),n=0;n4&&void 0!==arguments[4]&&arguments[4],o=arguments.length>5?arguments[5]:void 0;return"postType"===e&&(r=Object(p.castArray)(r).map((function(e){return"auto-draft"===e.status?de(de({},e),{},{title:""}):e}))),de(de({},n?I(r,n,o):P(r,o)),{},{kind:e,name:t,invalidateCache:a})}function he(e){return{type:"RECEIVE_CURRENT_THEME",currentTheme:e}}function me(e){return{type:"RECEIVE_THEME_SUPPORTS",themeSupports:e}}function Oe(e,t){return{type:"RECEIVE_EMBED_PREVIEW",url:e,preview:t}}function je(e,t,r,n){var a,o,u,c,i,s,f,d,b,v,y=arguments;return w.a.wrap((function(h){for(;;)switch(h.prev=h.next){case 0:return a=y.length>4&&void 0!==y[4]?y[4]:{},o=a.__unstableFetch,u=void 0===o?null:o,h.next=3,Fe(e);case 3:if(c=h.sent,i=Object(p.find)(c,{kind:e,name:t}),f=!1,i){h.next=8;break}return h.abrupt("return");case 8:return h.delegateYield(N("core",["entities","data",e,t,r],{exclusive:!0}),"t0",9);case 9:return d=h.t0,h.prev=10,h.next=13,{type:"DELETE_ENTITY_RECORD_START",kind:e,name:t,recordId:r};case 13:if(h.prev=13,b="".concat(i.baseURL,"/").concat(r),n&&(b=Object(R.addQueryArgs)(b,n)),v={path:b,method:"DELETE"},!u){h.next=23;break}return h.next=20,Object(l.__unstableAwaitPromise)(u(v));case 20:f=h.sent,h.next=26;break;case 23:return h.next=25,Object(l.apiFetch)(v);case 25:f=h.sent;case 26:return h.next=28,A(e,t,r,!0);case 28:h.next=33;break;case 30:h.prev=30,h.t1=h.catch(13),s=h.t1;case 33:return h.next=35,{type:"DELETE_ENTITY_RECORD_FINISH",kind:e,name:t,recordId:r,error:s};case 35:return h.abrupt("return",f);case 36:return h.prev=36,h.delegateYield(F(d),"t2",38);case 38:return h.finish(36);case 39:case"end":return h.stop()}}),ae,null,[[10,,36,39],[13,30]])}function ge(e,t,r,n){var a,o,u,c,i,l,f,d,b,v=arguments;return w.a.wrap((function(y){for(;;)switch(y.prev=y.next){case 0:return a=v.length>4&&void 0!==v[4]?v[4]:{},y.next=3,s.controls.select("core","getEntity",e,t);case 3:if(o=y.sent){y.next=6;break}throw new Error("The entity being edited (".concat(e,", ").concat(t,") does not have a loaded config."));case 6:return u=o.transientEdits,c=void 0===u?{}:u,i=o.mergedEdits,l=void 0===i?{}:i,y.next=9,s.controls.select("core","getRawEntityRecord",e,t,r);case 9:return f=y.sent,y.next=12,s.controls.select("core","getEditedEntityRecord",e,t,r);case 12:return d=y.sent,b={kind:e,name:t,recordId:r,edits:Object.keys(n).reduce((function(e,t){var r=f[t],a=d[t],o=l[t]?de(de({},a),n[t]):n[t];return e[t]=Object(p.isEqual)(r,o)?void 0:o,e}),{}),transientEdits:c},y.abrupt("return",de(de({type:"EDIT_ENTITY_RECORD"},b),{},{meta:{undo:!a.undoIgnore&&de(de({},b),{},{edits:Object.keys(n).reduce((function(e,t){return e[t]=d[t],e}),{})})}}));case 15:case"end":return y.stop()}}),oe)}function Ee(){var e;return w.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,s.controls.select("core","getUndoEdit");case 2:if(e=t.sent){t.next=5;break}return t.abrupt("return");case 5:return t.next=7,de(de({type:"EDIT_ENTITY_RECORD"},e),{},{meta:{isUndo:!0}});case 7:case"end":return t.stop()}}),ue)}function we(){var e;return w.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,s.controls.select("core","getRedoEdit");case 2:if(e=t.sent){t.next=5;break}return t.abrupt("return");case 5:return t.next=7,de(de({type:"EDIT_ENTITY_RECORD"},e),{},{meta:{isRedo:!0}});case 7:case"end":return t.stop()}}),ce)}function _e(){return{type:"CREATE_UNDO_LEVEL"}}function ke(e,t,r){var n,a,o,u,c,d,b,v,y,h,m,O,j,g,E,_,k,R,S,T,P,A,I,C,D,U,L,M,q=arguments;return w.a.wrap((function(w){for(;;)switch(w.prev=w.next){case 0:return n=q.length>3&&void 0!==q[3]?q[3]:{},a=n.isAutosave,o=void 0!==a&&a,u=n.__unstableFetch,c=void 0===u?null:u,w.next=3,Fe(e);case 3:if(d=w.sent,b=Object(p.find)(d,{kind:e,name:t})){w.next=7;break}return w.abrupt("return");case 7:return v=b.key||De,y=r[v],w.delegateYield(N("core",["entities","data",e,t,y||Object(x.a)()],{exclusive:!0}),"t0",10);case 10:h=w.t0,w.prev=11,m=0,O=Object.entries(r);case 13:if(!(m2&&void 0!==arguments[2]?arguments[2]:"get",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=Object(p.find)(Ue,{kind:e,name:t}),o="root"===e?"":Object(p.upperFirst)(Object(p.camelCase)(e)),u=Object(p.upperFirst)(Object(p.camelCase)(t))+(n?"s":""),c=n&&a.plural?Object(p.upperFirst)(Object(p.camelCase)(a.plural)):u;return"".concat(r).concat(o).concat(c)};function Fe(e){var t,r;return w.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,s.controls.select("core","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(p.find)(Le,{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,ve(t);case 13:return n.abrupt("return",t);case 14:case"end":return n.stop()}}),Ce)}var Ye=function(e){return"string"==typeof e?e.split(","):Array.isArray(e)?e:null};var Ge=function(e){var t=new WeakMap;return function(r){var n;return t.has(r)?n=t.get(r):(n=e(r),Object(p.isObjectLike)(r)&&t.set(r,n)),n}}((function(e){for(var t={stableKey:"",page:1,perPage:10,fields:null,include:null},r=Object.keys(e).sort(),n=0;n=a&&c0&&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,u=void 0===o?De:o;return"RECEIVE_ITEMS"!==r?e:Be(e||[],Object(p.map)(t.items,u),n,a)})),We=Object(s.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||De;return He(He({},e),t.items.reduce((function(t,n){var a=n[r];return t[a]=m(e[a],n),t}),{}));case"REMOVE_ITEMS":var n=Object(p.omit)(e,t.itemIds);return n}return e},itemIsComplete:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.query,a=t.key,o=void 0===a?De:a;if("RECEIVE_ITEMS"!==r)return e;var u=!n||!Array.isArray(Ge(n).fields);return He(He({},e),t.items.reduce((function(t,r){var n=r[o];return t[n]=e[n]||u,t}),{}))},queries: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":return Ke(e,t);case"REMOVE_ITEMS":var r=He({},e),n=t.itemIds.reduce((function(e,t){return e[t]=!0,e}),{});return Object(p.forEach)(r,(function(e,t){r[t]=Object(p.filter)(e,(function(e){return!n[e]}))})),r;default:return e}}}),ze=w.a.mark(nt),$e=w.a.mark(at);function Xe(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return Je(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(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Je(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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 o,u=!0,c=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return u=e.done,e},e:function(e){c=!0,o=e},f:function(){try{u||null==r.return||r.return()}finally{if(c)throw o}}}}function Je(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:it,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ENQUEUE_LOCK_REQUEST":var r=t.request;return ct(ct({},e),{},{requests:[r].concat(Object(d.a)(e.requests))});case"GRANT_LOCK_REQUEST":var n=t.lock,a=t.request,o=a.store,u=a.path,c=[o].concat(Object(d.a)(u)),i=tt(e.tree,c),s=rt(i,c);return s.locks=[].concat(Object(d.a)(s.locks),[n]),ct(ct({},e),{},{requests:e.requests.filter((function(e){return e!==a})),tree:i});case"RELEASE_LOCK":var l=t.lock,f=[l.store].concat(Object(d.a)(l.path)),p=tt(e.tree,f),b=rt(p,f);return b.locks=b.locks.filter((function(e){return e!==l})),ct(ct({},e),{},{tree:p})}return e};function lt(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return ft(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(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ft(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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 o,u=!0,c=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return u=e.done,e},e:function(e){c=!0,o=e},f:function(){try{u||null==r.return||r.return()}finally{if(c)throw o}}}}function ft(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_ITEMS":var r,n=pt({},e),a=lt(t.items);try{var o=function(){var e=r.value,a=e[t.key],o=n[a];if(!o)return"continue";var u=Object.keys(o).reduce((function(r,n){return Object(p.isEqual)(o[n],Object(p.get)(e[n],"raw",e[n]))||t.persistedEdits&&Object(p.isEqual)(o[n],t.persistedEdits[n])||(r[n]=o[n]),r}),{});Object.keys(u).length?n[a]=u: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=pt(pt({},e[t.recordId]),t.edits);return Object.keys(u).forEach((function(e){void 0===u[e]&&delete u[e]})),pt(pt({},e),{},Object(i.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 pt(pt({},e),{},Object(i.a)({},t.recordId,{pending:"SAVE_ENTITY_RECORD_START"===t.type,error:t.error,isAutosave:t.isAutosave}))}return e},deleting:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"DELETE_ENTITY_RECORD_START":case"DELETE_ENTITY_RECORD_FINISH":return pt(pt({},e),{},Object(i.a)({},t.recordId,{pending:"DELETE_ENTITY_RECORD_START"===t.type,error:t.error}))}return e}}))}function vt(){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(d.a)(e),Object(d.a)(t.entities))}return e}var yt,ht=[];ht.offset=0;var mt=Object(s.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 pt(pt({},e),{},Object(i.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:pt(pt({},e.byId),Object(p.keyBy)(t.users,"id")),queries:pt(pt({},e.queries),{},Object(i.a)({},t.queryID,Object(p.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 pt(pt({},e),{},Object(i.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 pt(pt({},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=vt(e.config,t),n=e.reducer;if(!n||r!==e.config){var a=Object(p.groupBy)(r,"kind");n=Object(s.combineReducers)(Object.entries(a).reduce((function(e,t){var r=Object(f.a)(t,2),n=r[0],a=r[1],o=Object(s.combineReducers)(a.reduce((function(e,t){return pt(pt({},e),{},Object(i.a)({},t.name,bt(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]:ht,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=yt:a||(yt=Object.keys(t.edits).some((function(e){return!t.transientEdits[e]}))?t:pt(pt({},t),{},{edits:pt(pt({},yt&&yt.edits),t.edits)})),a){if((r=Object(d.a)(e)).offset=e.offset+(t.meta.isUndo?-1:1),!e.flattenedUndo)return r;n=!0,t=yt}if(!t.meta.undo)return e;if(!n&&!Object.keys(t.edits).some((function(e){return!t.transientEdits[e]})))return(r=Object(d.a)(e)).flattenedUndo=pt(pt({},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:pt(pt({},e.flattenedUndo),t.meta.undo.edits)});var o=Object.values(t.meta.undo.edits).filter((function(e){return"function"!=typeof e})),u=Object.values(t.edits).filter((function(e){return"function"!=typeof e}));return v()(o,u)||r.push({kind:t.kind,name:t.name,recordId:t.recordId,edits:n?pt(pt({},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 pt(pt({},e),{},Object(i.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 pt(pt({},e),{},Object(i.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 pt(pt({},e),{},Object(i.a)({},r,n))}return e},locks:st}),Ot=r("./node_modules/rememo/es/rememo.js"),jt=r("@wordpress/deprecated"),gt=r.n(jt),Et=r("./node_modules/equivalent-key-map/equivalent-key-map.js"),wt=r.n(Et),_t=new WeakMap;function kt(e,t){var r,n=Ge(t),a=n.stableKey,o=n.page,u=n.perPage,c=n.include,i=n.fields;if(Array.isArray(c)&&!a?r=c:e.queries[a]&&(r=e.queries[a]),!r)return null;for(var s=-1===u?0:(o-1)*u,l=-1===u?r.length:Math.min(s+u,r.length),f=[],d=s;d1&&void 0!==arguments[1]?arguments[1]:{},r=_t.get(e);if(r){var n=r.get(t);if(void 0!==n)return n}else r=new wt.a,_t.set(e,r);var a=kt(e,t);return r.set(t,a),a}));function Rt(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 St(e){for(var t=1;t0}var Bt=Object(Ot.a)((function(e,t,r,n){return St(St({},Nt(e,t,r,n)),Gt(e,t,r,n))}),(function(e){return[e.entities.data]}));function Kt(e,t,r,n){var a=Object(p.get)(e.entities.data,[t,r,"saving",n],{}),o=a.pending,u=a.isAutosave;return Boolean(o&&u)}function Wt(e,t,r,n){return Object(p.get)(e.entities.data,[t,r,"saving",n,"pending"],!1)}function zt(e,t,r,n){return Object(p.get)(e.entities.data,[t,r,"deleting",n,"pending"],!1)}function $t(e,t,r,n){return Object(p.get)(e.entities.data,[t,r,"saving",n,"error"])}function Xt(e,t,r,n){return Object(p.get)(e.entities.data,[t,r,"deleting",n,"error"])}function Jt(e){return e.undo.offset}function Zt(e){return e.undo[e.undo.length-2+Jt(e)]}function er(e){return e.undo[e.undo.length+Jt(e)]}function tr(e){return Boolean(Zt(e))}function rr(e){return Boolean(er(e))}function nr(e){return e.themes[e.currentTheme]}function ar(e){return e.themeSupports}function or(e,t){return e.embedPreviews[t]}function ur(e,t){var r=e.embedPreviews[t],n=''+t+"";return!!r&&r.html===n}function cr(e){return gt()("select( 'core' ).hasUploadPermissions()",{alternative:"select( 'core' ).canUser( 'create', 'media' )"}),Object(p.defaultTo)(ir(e,"create","media"),!0)}function ir(e,t,r,n){var a=Object(p.compact)([t,r,n]).join("/");return Object(p.get)(e,["userPermissions",a])}function sr(e,t,r){return e.autosaves[r]}function lr(e,t,r,n){if(void 0!==n){var a=e.autosaves[r];return Object(p.find)(a,{author:n})}}var fr=Object(s.createRegistrySelector)((function(e){return function(t,r,n){return e("core").hasFinishedResolution("getAutosaves",[r,n])}})),dr=Object(Ot.a)((function(){return[]}),(function(e){return[e.undo.length,e.undo.offset,e.undo.flattenedUndo]}));function pr(e,t){var r=Ft(e,"postType","wp_template",{"find-template":t});return null!=r&&r.length?r[0]:null}var br=function(e,t){return w.a.mark((function r(){var n,a,o,u=arguments;return w.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:for(n=u.length,a=new Array(n),o=0;o=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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 o,u=!0,c=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return u=e.done,e},e:function(e){c=!0,o=e},f:function(){try{u||null==r.return||r.return()}finally{if(c)throw o}}}}function yr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r2&&void 0!==f[2]?f[2]:"",n=f.length>3?f[3]:void 0,b.next=4,Fe(e);case 4:if(a=b.sent,o=Object(p.find)(a,{kind:e,name:t})){b.next=8;break}return b.abrupt("return");case 8:return b.delegateYield(N("core",["entities","data",e,t,r],{exclusive:!1}),"t0",9);case 9:if(u=b.t0,b.prev=10,void 0!==n&&n._fields&&(n=mr(mr({},n),{},{_fields:Object(p.uniq)([].concat(Object(d.a)(Ye(n._fields)||[]),[o.key||De])).join()})),c=Object(R.addQueryArgs)(o.baseURL+"/"+r,mr(mr({},n),{},{context:"edit"})),void 0===n){b.next=20;break}return n=mr(mr({},n),{},{include:[r]}),b.next=17,s.controls.select("core","hasEntityRecords",e,t,n);case 17:if(!b.sent){b.next=20;break}return b.abrupt("return");case 20:return b.next=22,Object(l.apiFetch)({path:c});case 22:return i=b.sent,b.next=25,ye(e,t,i,n);case 25:b.next=29;break;case 27:b.prev=27,b.t1=b.catch(10);case 29:return b.prev=29,b.delegateYield(F(u),"t2",31);case 31:return b.finish(29);case 32:case"end":return b.stop()}}),Er,null,[[10,27,29,32]])}var Lr=br(Ur,"getEntityRecord"),Mr=br(Lr,"getRawEntityRecord");function qr(e,t){var r,n,a,o,u,c,i,s,f,b,v,y=arguments;return w.a.wrap((function(h){for(;;)switch(h.prev=h.next){case 0:return r=y.length>2&&void 0!==y[2]?y[2]:{},h.next=3,Fe(e);case 3:if(n=h.sent,a=Object(p.find)(n,{kind:e,name:t})){h.next=7;break}return h.abrupt("return");case 7:return h.delegateYield(N("core",["entities","data",e,t],{exclusive:!1}),"t0",8);case 8:return o=h.t0,h.prev=9,r._fields&&(r=mr(mr({},r),{},{_fields:Object(p.uniq)([].concat(Object(d.a)(Ye(r._fields)||[]),[a.key||De])).join()})),c=Object(R.addQueryArgs)(a.baseURL,mr(mr({},r),{},{context:"edit"})),h.t1=Object,h.next=15,Object(l.apiFetch)({path:c});case 15:return h.t2=h.sent,i=h.t1.values.call(h.t1,h.t2),r._fields&&(i=i.map((function(e){return r._fields.split(",").forEach((function(t){e.hasOwnProperty(t)||(e[t]=void 0)})),e}))),h.next=20,ye(e,t,i,r);case 20:if(null!==(u=r)&&void 0!==u&&u._fields){h.next=42;break}s=a.key||De,f=vr(i),h.prev=23,f.s();case 25:if((b=f.n()).done){h.next=34;break}if(!(v=b.value)[s]){h.next=32;break}return h.next=30,{type:"START_RESOLUTION",selectorName:"getEntityRecord",args:[e,t,v[s]]};case 30:return h.next=32,{type:"FINISH_RESOLUTION",selectorName:"getEntityRecord",args:[e,t,v[s]]};case 32:h.next=25;break;case 34:h.next=39;break;case 36:h.prev=36,h.t3=h.catch(23),f.e(h.t3);case 39:return h.prev=39,f.f(),h.finish(39);case 42:return h.prev=42,h.delegateYield(F(o),"t4",44);case 44:return h.finish(42);case 45:case"end":return h.stop()}}),wr,null,[[9,,42,45],[23,36,39,42]])}function Nr(){var e;return w.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(l.apiFetch)({path:"/wp/v2/themes?status=active"});case 2:return e=t.sent,t.next=5,he(e[0]);case 5:case"end":return t.stop()}}),_r)}function Vr(){var e;return w.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(l.apiFetch)({path:"/wp/v2/themes?status=active"});case 2:return e=t.sent,t.next=5,me(e[0].theme_supports);case 5:case"end":return t.stop()}}),kr)}function Fr(e){var t;return w.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,Object(l.apiFetch)({path:Object(R.addQueryArgs)("/oembed/1.0/proxy",{url:e})});case 3:return t=r.sent,r.next=6,Oe(e,t);case 6:r.next=12;break;case 8:return r.prev=8,r.t0=r.catch(0),r.next=12,Oe(e,!1);case 12:case"end":return r.stop()}}),xr,null,[[0,8]])}function Yr(){return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return gt()("select( 'core' ).hasUploadPermissions()",{alternative:"select( 'core' ).canUser( 'create', 'media' )"}),e.delegateYield(Gr("create","media"),"t0",2);case 2:case"end":return e.stop()}}),Rr)}function Gr(e,t,r){var n,a,o,u,c,i;return w.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,Object(l.apiFetch)({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 u=Object(p.hasIn)(o,["headers","get"])?o.headers.get("allow"):Object(p.get)(o,["headers","Allow"],""),c=Object(p.compact)([e,t,r]).join("/"),i=Object(p.includes)(u,n),s.next=19,Te(c,i);case 19:case"end":return s.stop()}}),Sr,null,[[5,11]])}function Qr(e,t){var r,n,a;return w.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,s.controls.resolveSelect("core","getPostType",e);case 2:return r=o.sent,n=r.rest_base,o.next=6,Object(l.apiFetch)({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,Pe(t,a);case 10:case"end":return o.stop()}}),Tr)}function Hr(e,t){return w.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,s.controls.resolveSelect("core","getAutosaves",e,t);case 2:case"end":return r.stop()}}),Pr)}function Br(e){var t,r;return w.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,{type:"REGULAR_FETCH",url:Object(R.addQueryArgs)(e,{"_wp-find-template":!0})};case 2:if(null!==(t=n.sent)){n.next=5;break}return n.abrupt("return");case 5:return n.next=7,Ur("postType","wp_template",t.id);case 7:return n.next=9,s.controls.select("core","getEntityRecord","postType","wp_template",t.id);case 9:if(!(r=n.sent)){n.next=13;break}return n.next=13,ye("postType","wp_template",[r],{"find-template":e});case 13:case"end":return n.stop()}}),Ar)}function Kr(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return Wr(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(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Wr(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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 o,u=!0,c=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return u=e.done,e},e:function(e){c=!0,o=e},f:function(){try{u||null==r.return||r.return()}finally{if(c)throw o}}}}function Wr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r2&&void 0!==arguments[2]?arguments[2]:{},n=r.id,a=on(e,t),o=null!=n?n:a,u=Object(s.useSelect)((function(r){var n=(0,r("core").getEditedEntityRecord)(e,t,o);return{blocks:n.blocks,content:n.content}}),[e,t,o]),c=u.content,i=u.blocks,l=Object(s.useDispatch)("core"),f=l.__unstableCreateUndoLevel,d=l.editEntityRecord;Object(Xr.useEffect)((function(){if(c&&"function"!=typeof c&&!i){var r=Object(Jr.parse)(c);d(e,t,o,{blocks:r},{undoIgnore:!0})}}),[c]);var p=Object(Xr.useCallback)((function(r,n){var a={blocks:r,selectionStart:n.selectionStart,selectionEnd:n.selectionEnd};if(i===a.blocks)return f(e,t,o);a.content=function(e){var t=e.blocks,r=void 0===t?[]:t;return Object(Jr.__unstableSerializeAndClean)(r)},d(e,t,o,a)}),[e,t,o,i]),b=Object(Xr.useCallback)((function(r,n){var a=n.selectionStart,u=n.selectionEnd;d(e,t,o,{blocks:r,selectionStart:a,selectionEnd:u})}),[e,t,o]);return[null!=i?i:tn,b,p]}function sn(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 ln(e){for(var t=1;t1?t-1:0),u=1;u1?a-1:0),u=1;u1&&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),u&&a(t,u),e}();e.exports=u},"./node_modules/rememo/es/rememo.js":function(e,t,r){"use strict";var n,a;function o(e){return[e]}function u(){var e={clear:function(){e.head=null}};return e}function c(e,t,r){var n;if(e.length!==t.length)return!1;for(n=r;n1&&void 0!==arguments[1]?arguments[1]:0,r=(i[e[t+0]]+i[e[t+1]]+i[e[t+2]]+i[e[t+3]]+"-"+i[e[t+4]]+i[e[t+5]]+"-"+i[e[t+6]]+i[e[t+7]]+"-"+i[e[t+8]]+i[e[t+9]]+"-"+i[e[t+10]]+i[e[t+11]]+i[e[t+12]]+i[e[t+13]]+i[e[t+14]]+i[e[t+15]]).toLowerCase();if(!c(r))throw TypeError("Stringified UUID is invalid");return r};t.a=function(e,t,r){var n=(e=e||{}).random||(e.rng||o)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var a=0;a<16;++a)t[r+a]=n[a];return t}return l(n)}},"@babel/runtime/regenerator":function(e,t){e.exports=window.regeneratorRuntime},"@wordpress/api-fetch":function(e,t){e.exports=window.wp.apiFetch},"@wordpress/blocks":function(e,t){e.exports=window.wp.blocks},"@wordpress/data":function(e,t){e.exports=window.wp.data},"@wordpress/data-controls":function(e,t){e.exports=window.wp.dataControls},"@wordpress/deprecated":function(e,t){e.exports=window.wp.deprecated},"@wordpress/element":function(e,t){e.exports=window.wp.element},"@wordpress/i18n":function(e,t){e.exports=window.wp.i18n},"@wordpress/is-shallow-equal":function(e,t){e.exports=window.wp.isShallowEqual},"@wordpress/url":function(e,t){e.exports=window.wp.url},lodash:function(e,t){e.exports=window.lodash}});