AlkantarClanX12

Your IP : 52.15.185.147


Current Path : /home/thanudqk/siampokernew.org/wp-includes/js/dist/
Upload File :
Current File : /home/thanudqk/siampokernew.org/wp-includes/js/dist/core-data.min.js

/*! 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="dsJ0")}({"1ZqX":function(e,t){!function(){e.exports=this.wp.data}()},"25BE":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}))},"51Zz":function(e,t){!function(){e.exports=this.wp.dataControls}()},BsWD:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r("a3WO");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}}},DSFK:function(e,t,r){"use strict";function n(e){if(Array.isArray(e))return e}r.d(t,"a",(function(){return n}))},FtRg: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},GRId:function(e,t){!function(){e.exports=this.wp.element}()},HSyU:function(e,t){!function(){e.exports=this.wp.blocks}()},KQm4:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r("a3WO");var a=r("25BE"),o=r("BsWD");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.")}()}},Mmq9:function(e,t){!function(){e.exports=this.wp.url}()},NMb1:function(e,t){!function(){e.exports=this.wp.deprecated}()},ODXe:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r("DSFK");var a=r("BsWD"),o=r("PYwp");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)()}},PYwp: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}))},YLtl:function(e,t){!function(){e.exports=this.lodash}()},a3WO: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}))},dsJ0: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 Xt})),r.d(t,"useEntityBlockEditor",(function(){return Zt}));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 B})),r.d(n,"receiveEntityRecords",(function(){return Y})),r.d(n,"receiveCurrentTheme",(function(){return F})),r.d(n,"receiveThemeSupports",(function(){return W})),r.d(n,"receiveEmbedPreview",(function(){return H})),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 X})),r.d(n,"saveEditedEntityRecord",(function(){return Z})),r.d(n,"receiveUploadPermissions",(function(){return J})),r.d(n,"receiveUserPermission",(function(){return $})),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 Ne})),r.d(a,"getCurrentUser",(function(){return Ve})),r.d(a,"getUserQueryResults",(function(){return Le})),r.d(a,"getEntitiesByKind",(function(){return qe})),r.d(a,"getEntity",(function(){return Be})),r.d(a,"getEntityRecord",(function(){return Ye})),r.d(a,"__experimentalGetEntityRecordNoResolver",(function(){return Fe})),r.d(a,"getRawEntityRecord",(function(){return We})),r.d(a,"getEntityRecords",(function(){return He})),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 Xe})),r.d(a,"isAutosavingEntityRecord",(function(){return Ze})),r.d(a,"isSavingEntityRecord",(function(){return Je})),r.d(a,"getLastEntitySaveError",(function(){return $e})),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 Tt})),r.d(o,"getCurrentUser",(function(){return It})),r.d(o,"getEntityRecord",(function(){return Dt})),r.d(o,"getRawEntityRecord",(function(){return At})),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 Nt})),r.d(o,"getEmbedPreview",(function(){return Vt})),r.d(o,"hasUploadPermissions",(function(){return Lt})),r.d(o,"canUser",(function(){return qt})),r.d(o,"getAutosaves",(function(){return Bt})),r.d(o,"getAutosave",(function(){return Yt}));var c=r("rePB"),u=r("1ZqX"),i=r("ODXe"),s=r("KQm4"),f=r("YLtl"),d=r("rl8x"),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("dvlR"),E=r.n(g),m=r("l3Sj");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 R(e){return{type:"RECEIVE_ITEMS",items:Object(f.castArray)(e)}}function x(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return w({},R(e),{query:t})}var k=r("ywyh"),_=r.n(k);function P(e){return{type:"API_FETCH",request:e}}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:"SELECT",selectorName:e,args:r}}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:"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))}}))},D=E.a.mark(K),A=E.a.mark(Q),U=E.a.mark(G),C=E.a.mark(X),M=E.a.mark(Z);function N(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function V(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?N(Object(r),!0).forEach((function(t){Object(c.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):N(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 B(e){return{type:"ADD_ENTITIES",entities:e}}function Y(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?V({},e,{title:""}):e}))),V({},n?x(r,n):R(r),{kind:e,name:t,invalidateCache:a})}function F(e){return{type:"RECEIVE_CURRENT_THEME",currentTheme:e}}function W(e){return{type:"RECEIVE_THEME_SUPPORTS",themeSupports:e}}function H(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,S("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,S("getRawEntityRecord",e,t,r);case 9:return d=v.sent,v.next=12,S("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]?V({},a,{},n[t]):n[t];return e[t]=Object(f.isEqual)(r,o)?void 0:o,e}),{}),transientEdits:u},v.abrupt("return",V({type:"EDIT_ENTITY_RECORD"},p,{meta:{undo:!a.undoIgnore&&V({},p,{edits:Object.keys(n).reduce((function(e,t){return e[t]=l[t],e}),{})})}}));case 15:case"end":return v.stop()}}),D)}function Q(){var e;return E.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,S("getUndoEdit");case 2:if(e=t.sent){t.next=5;break}return t.abrupt("return");case 5:return t.next=7,V({type:"EDIT_ENTITY_RECORD"},e,{meta:{isUndo:!0}});case 7:case"end":return t.stop()}}),A)}function G(){var e;return E.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,S("getRedoEdit");case 2:if(e=t.sent){t.next=5;break}return t.abrupt("return");case 5:return t.next=7,V({type:"EDIT_ENTITY_RECORD"},e,{meta:{isRedo:!0}});case 7:case"end":return t.stop()}}),U)}function z(){return{type:"CREATE_UNDO_LEVEL"}}function X(e,t,r){var n,a,o,u,s,d,l,p,b,v,y,O,h,g,m,j,w,R,x,k,_,T,I,D,A,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,S("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,R="".concat(s.baseURL).concat(l?"/"+l:""),E.next=30,S("getRawEntityRecord",e,t,l);case 30:if(x=E.sent,!o){E.next=55;break}return E.next=34,S("getCurrentUser");case 34:return k=E.sent,_=k?k.id:void 0,E.next=38,S("getAutosave",x.type,x.id,_);case 38:return T=E.sent,I=V({},x,{},T,{},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(R,"/autosaves"),method:"POST",data:I});case 43:if(g=E.sent,x.id!==g.id){E.next=51;break}return D=V({},x,{},I,{},g),D=Object.keys(D).reduce((function(e,t){return["title","excerpt","content"].includes(t)?e[t]=Object(f.get)(D[t],"raw",D[t]):e[t]="status"===t?"auto-draft"===x.status&&"draft"===D.status?D.status:x.status:Object(f.get)(x[t],"raw",x[t]),e}),{}),E.next=49,Y(e,t,D,void 0,!0);case 49:E.next=53;break;case 51:return E.next=53,ee(x.id,g);case 53:E.next=70;break;case 55:return A=r,"postType"===e&&x&&"auto-draft"===x.status&&(A.status||(A=V({},A,{status:"draft"})),A.title&&"Auto Draft"!==A.title||(A=V({},A,{title:""}))),E.next=59,S("__experimentalGetEntityRecordNoResolver",e,t,l);case 59:return j=E.sent,E.next=62,S("getEntityRecordEdits",e,t,l);case 62:return w=E.sent,E.next=65,Y(e,t,V({},j,{},A),void 0,!0);case 65:return E.next=67,P({path:R,method:l?"PUT":"POST",data:A});case 67:return g=E.sent,E.next=70,Y(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,Y(e,t,j,void 0,!0);case 78:return E.t3=K,E.t4=e,E.t5=t,E.t6=l,E.t7=V,E.t8={},E.t9=w,E.t10={},E.next=88,S("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 Z(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,S("hasEditsForEntityRecord",e,t,r);case 2:if(c.sent){c.next=4;break}return c.abrupt("return");case 4:return c.next=6,S("getEntityRecordNonTransientEdits",e,t,r);case 6:return a=c.sent,o=V({id:r},a),c.delegateYield(X(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 $(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,S("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,B(t);case 13:return n.abrupt("return",t);case 14:case"end":return n.stop()}}),ne)}var de=r("Mmq9");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 Re,xe=[];xe.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]:xe,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=Re:a||(Re=Object.keys(t.edits).some((function(e){return!t.transientEdits[e]}))?t:me({},t,{edits:me({},Re&&Re.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=Re}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("pPDe"),Pe=r("NMb1"),Se=r.n(Pe),Te=r("FtRg"),Ie=r.n(Te),De=new WeakMap;function Ae(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=De.get(e);if(r){var n=r.get(t);if(void 0!==n)return n}else r=new Ie.a,De.set(e,r);var a=Ae(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 Ne(e){return Le(e,"authors")}function Ve(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 Be(e,t,r){return Object(f.find)(e.entities.config,{kind:t,name:r})}function Ye(e,t,r,n){return Object(f.get)(e.entities.data,[t,r,"queriedData","items",n])}function Fe(e,t,r,n){return Ye(e,t,r,n)}var We=Object(_e.a)((function(e,t,r,n){var a=Ye(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 He(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=Be(e,n,a);o.forEach((function(t){var o=Ye(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=(Be(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 Xe=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}({},We(e,t,r,n),{},Qe(e,t,r,n))}),(function(e){return[e.entities.data]}));function Ze(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 $e(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 Se()("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("51Zz"),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(Tt),Et=E.a.mark(It),mt=E.a.mark(Dt),jt=E.a.mark(Ct),wt=E.a.mark(Mt),Rt=E.a.mark(Nt),xt=E.a.mark(Vt),kt=E.a.mark(Lt),_t=E.a.mark(qt),Pt=E.a.mark(Bt),St=E.a.mark(Yt);function Tt(){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 Dt(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,Y(e,t,o);case 12:case"end":return u.stop()}}),mt)}var At=yt(Dt,"getEntityRecord"),Ut=yt(At,"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,Y(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 Nt(){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,W(e[0].theme_supports);case 5:case"end":return t.stop()}}),Rt)}function Vt(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,H(e,t);case 6:r.next=12;break;case 8:return r.prev=8,r.t0=r.catch(0),r.next=12,H(e,!1);case 12:case"end":return r.stop()}}),xt,null,[[0,8]])}function Lt(){return E.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Se()("select( 'core' ).hasUploadPermissions()",{alternative:"select( 'core' ).canUser( 'create', 'media' )"}),e.delegateYield(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,$(u,i);case 19:case"end":return s.stop()}}),_t,null,[[5,11]])}function Bt(e,t){var r,n,a;return E.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,T("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 Yt(e,t){return E.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,T("getAutosaves",e,t);case 2:case"end":return r.stop()}}),St)}Ct.shouldInvalidate=function(e,t,r){return"RECEIVE_ITEMS"===e.type&&e.invalidateCache&&t===e.kind&&r===e.name};var Ft=r("GRId"),Wt=r("HSyU");function Ht(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?Ht(Object(r),!0).forEach((function(t){Object(c.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ht(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 Xt(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 Zt(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=Xt(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(Wt.parse)(v);return e.length?e:[]}return[]}),[v]),E=Xt(e,t,o,l),m=Object(i.a)(E,2),j=m[0],w=void 0===j?g:j,R=m[1],x=Object(Ft.useCallback)((function(e){R(e),y((function(e){var t=e.blocks;return Object(Wt.serialize)(t)}))}),[R,y]);return[w,R,x]}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 $t(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 Ye(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 He.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 Dt(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 X(r,n,e)},e}),{});Object(u.registerStore)("core",{reducer:ke,controls:I,actions:$t({},n,{},rr),selectors:$t({},a,{},er),resolvers:$t({},o,{},tr)})},dvlR:function(e,t){!function(){e.exports=this.regeneratorRuntime}()},l3Sj:function(e,t){!function(){e.exports=this.wp.i18n}()},pPDe: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}},rePB: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}))},rl8x:function(e,t){!function(){e.exports=this.wp.isShallowEqual}()},ywyh:function(e,t){!function(){e.exports=this.wp.apiFetch}()}});