this.wp=this.wp||{},this.wp.coreData=function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.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 i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));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=311)}({121:function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},15: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})},18:function(e,t,r){"use strict";var n=r(33);function i(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,i=n[e];if(void 0===i)return r;var o=t(r[i],n);return o===r[i]?r:Object(a.a)({},r,Object(f.a)({},i,o))}}},v=function(e){return function(t){return function(r,n){return t(r,e(n))}}};var h=function(e){var t=new WeakMap;return function(r){var n;return t.has(r)?n=t.get(r):(n=e(r),Object(d.isObjectLike)(r)&&t.set(r,n)),n}};function b(e){return{type:"RECEIVE_ITEMS",items:Object(d.castArray)(e)}}var y=r(28),m=r(68),g=r.n(m),w=r(22);var E=h(function(e){for(var t={stableKey:"",page:1,perPage:10},r=Object.keys(e).sort(),n=0;n1&&void 0!==arguments[1]?arguments[1]:{},r=O.get(e);if(r){var n=r.get(t);if(void 0!==n)return n}else r=new g.a,O.set(e,r);var i=function(e,t){var r=E(t),n=r.stableKey,i=r.page,o=r.perPage;if(!e.queries[n])return null;var a=e.queries[n];if(!a)return null;for(var u=-1===o?0:(i-1)*o,c=-1===o?a.length:Math.min(u+o,a.length),s=[],f=u;f1?t-1:0),n=1;n4&&void 0!==arguments[4]&&arguments[4];return i=n?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(a.a)({},b(e),{query:t})}(r,n):b(r),Object(a.a)({},i,{kind:e,name:t,invalidateCache:o})}function M(e){return{type:"RECEIVE_THEME_SUPPORTS",themeSupports:e}}function C(e,t){return{type:"RECEIVE_EMBED_PREVIEW",url:e,preview:t}}function N(e,t,r){var n,i,o,a,u;return regeneratorRuntime.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,z(e);case 2:if(n=c.sent,i=Object(d.find)(n,{kind:e,name:t})){c.next=6;break}return c.abrupt("return");case 6:return o=i.key||K,a=r[o],c.next=10,I({path:"".concat(i.baseURL).concat(a?"/"+a:""),method:a?"PUT":"POST",data:r});case 10:return u=c.sent,c.next=13,U(e,t,u,void 0,!0);case 13:return c.abrupt("return",u);case 14:case"end":return c.stop()}},S,this)}function D(e){return{type:"RECEIVE_USER_PERMISSION",key:"create/media",isAllowed:e}}function q(e,t){return{type:"RECEIVE_USER_PERMISSION",key:e,isAllowed:t}}var V=regeneratorRuntime.mark(Q),L=regeneratorRuntime.mark(Y),B=regeneratorRuntime.mark(z),K="id",W=[{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"}],F=[{name:"postType",loadEntities:Q},{name:"taxonomy",loadEntities:Y}];function Q(){var e;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,I({path:"/wp/v2/types?context=edit"});case 2:return e=t.sent,t.abrupt("return",Object(d.map)(e,function(e,t){return{kind:"postType",baseURL:"/wp/v2/"+e.rest_base,name:t}}));case 4:case"end":return t.stop()}},V,this)}function Y(){var e;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,I({path:"/wp/v2/taxonomies?context=edit"});case 2:return e=t.sent,t.abrupt("return",Object(d.map)(e,function(e,t){return{kind:"taxonomy",baseURL:"/wp/v2/"+e.rest_base,name:t}}));case 4:case"end":return t.stop()}},L,this)}var H=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],i=Object(d.find)(W,{kind:e,name:t}),o="root"===e?"":Object(d.upperFirst)(Object(d.camelCase)(e)),a=Object(d.upperFirst)(Object(d.camelCase)(t))+(n?"s":""),u=n&&i.plural?Object(d.upperFirst)(Object(d.camelCase)(i.plural)):a;return"".concat(r).concat(o).concat(u)};function z(e){var t,r;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,_("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(d.find)(F,{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,A(t);case 13:return n.abrupt("return",t);case 14:case"end":return n.stop()}},B,this)}var G=Object(d.flowRight)([l(function(e){return"query"in e}),v(function(e){return e.query?Object(a.a)({},e,E(e.query)):e}),p("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,i=t.perPage,o=t.key,a=void 0===o?K:o;return"RECEIVE_ITEMS"!==r?e:function(e,t,r,n){for(var i=(r-1)*n,o=Math.max(e.length,i+t.length),a=new Array(o),u=0;u=i&&u0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_ITEMS":return Object(a.a)({},e,Object(d.keyBy)(t.items,t.key||K))}return e},queries:G});var J=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 Object(a.a)({},e,Object(f.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(a.a)({},e.byId,Object(d.keyBy)(t.users,"id")),queries:Object(a.a)({},e.queries,Object(f.a)({},t.queryID,Object(d.map)(t.users,function(e){return e.id})))}}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(a.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,r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:W,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}(e.config,t),n=e.reducer;if(!n||r!==e.config){var i=Object(d.groupBy)(r,"kind");n=Object(u.combineReducers)(Object.entries(i).reduce(function(e,t){var r=Object(c.a)(t,2),n=r[0],i=r[1],o=Object(u.combineReducers)(i.reduce(function(e,t){return Object(a.a)({},e,Object(f.a)({},t.name,function(e){return Object(d.flowRight)([l(function(t){return t.name&&t.kind&&t.name===e.name&&t.kind===e.kind}),v(function(t){return Object(a.a)({},t,{key:e.key||K})})])(X)}(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}},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 Object(a.a)({},e,Object(f.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 Object(a.a)({},e,Object(f.a)({},t.key,t.isAllowed))}return e}}),Z=r(49),$=r.n(Z),ee=Object(u.createRegistrySelector)(function(e){return function(t,r){return e("core/data").isResolving("core","getEmbedPreview",[r])}});function te(e){return re(e,"authors")}var re=Object(y.a)(function(e,t){var r=e.users.queries[t];return Object(d.map)(r,function(t){return e.users.byId[t]})},function(e,t){return[e.users.queries[t],e.users.byId]});function ne(e,t){return Object(d.filter)(e.entities.config,{kind:t})}function ie(e,t,r){return Object(d.find)(e.entities.config,{kind:t,name:r})}function oe(e,t,r,n){return Object(d.get)(e.entities.data,[t,r,"items",n])}function ae(e,t,r,n){var i=Object(d.get)(e.entities.data,[t,r]);return i?j(i,n):[]}function ue(e){return e.themeSupports}function ce(e,t){return e.embedPreviews[t]}function se(e,t){var r=e.embedPreviews[t],n=''+t+"";return!!r&&r.html===n}function fe(e){return $()("select( 'core' ).hasUploadPermissions()",{alternative:"select( 'core' ).canUser( 'create', 'media' )"}),Object(d.defaultTo)(de(e,"create","media"),!0)}function de(e,t,r,n){var i=Object(d.compact)([t,r,n]).join("/");return Object(d.get)(e,["userPermissions",i])}var le=regeneratorRuntime.mark(ge),pe=regeneratorRuntime.mark(we),ve=regeneratorRuntime.mark(Ee),he=regeneratorRuntime.mark(Oe),be=regeneratorRuntime.mark(je),ye=regeneratorRuntime.mark(xe),me=regeneratorRuntime.mark(ke);function ge(){var e;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,I({path:"/wp/v2/users/?who=authors&per_page=-1"});case 2:return e=t.sent,t.next=5,T("authors",e);case 5:case"end":return t.stop()}},le,this)}function we(e,t,r){var n,i,o;return regeneratorRuntime.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,z(e);case 2:if(n=a.sent,i=Object(d.find)(n,{kind:e,name:t})){a.next=6;break}return a.abrupt("return");case 6:return a.next=8,I({path:"".concat(i.baseURL,"/").concat(r,"?context=edit")});case 8:return o=a.sent,a.next=11,U(e,t,o);case 11:case"end":return a.stop()}},pe,this)}function Ee(e,t){var r,n,i,o,u,c=arguments;return regeneratorRuntime.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return r=c.length>2&&void 0!==c[2]?c[2]:{},s.next=3,z(e);case 3:if(n=s.sent,i=Object(d.find)(n,{kind:e,name:t})){s.next=7;break}return s.abrupt("return");case 7:return o=Object(w.addQueryArgs)(i.baseURL,Object(a.a)({},r,{context:"edit"})),s.next=10,I({path:o});case 10:return u=s.sent,s.next=13,U(e,t,Object.values(u),r);case 13:case"end":return s.stop()}},ve,this)}function Oe(){var e;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,I({path:"/wp/v2/themes?status=active"});case 2:return e=t.sent,t.next=5,M(e[0].theme_supports);case 5:case"end":return t.stop()}},he,this)}function je(e){var t;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,I({path:Object(w.addQueryArgs)("/oembed/1.0/proxy",{url:e})});case 3:return t=r.sent,r.next=6,C(e,t);case 6:r.next=12;break;case 8:return r.prev=8,r.t0=r.catch(0),r.next=12,C(e,!1);case 12:case"end":return r.stop()}},be,this,[[0,8]])}function xe(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return $()("select( 'core' ).hasUploadPermissions()",{alternative:"select( 'core' ).canUser( 'create', 'media' )"}),e.delegateYield(ke("create","media"),"t0",2);case 2:case"end":return e.stop()}},ye,this)}function ke(e,t,r){var n,i,o,a,u,c;return regeneratorRuntime.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 i=r?"/wp/v2/".concat(t,"/").concat(r):"/wp/v2/".concat(t),s.prev=5,s.next=8,I({path:i,method:r?"GET":"OPTIONS",parse:!1});case 8:o=s.sent,s.next=14;break;case 11:return s.prev=11,s.t0=s.catch(5),s.abrupt("return");case 14:return a=Object(d.hasIn)(o,["headers","get"])?o.headers.get("allow"):Object(d.get)(o,["headers","Allow"],""),u=Object(d.compact)([e,t,r]).join("/"),c=Object(d.includes)(a,n),s.next=19,q(u,c);case 19:case"end":return s.stop()}},me,this,[[5,11]])}Ee.shouldInvalidate=function(e,t,r){return"RECEIVE_ITEMS"===e.type&&e.invalidateCache&&t===e.kind&&r===e.name};var Re=W.reduce(function(e,t){var r=t.kind,n=t.name;return e[H(r,n)]=function(e,t){return oe(e,r,n,t)},e[H(r,n,"get",!0)]=function(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),a=1;a1?i-1:0),a=1;a1&&void 0!==arguments[1]?arguments[1]:this;this._map.forEach(function(i,o){null!==o&&"object"===n(o)&&(i=i[1]),e.call(r,i,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}}])&&i(t.prototype,r),a&&i(t,a),e}();e.exports=a},69:function(e,t,r){"use strict";(function(e,n){var i,o=r(88);i="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:n;var a=Object(o.a)(i);t.a=a}).call(this,r(51),r(121)(e))},8:function(e,t,r){"use strict";r.d(t,"a",function(){return i});var n=r(15);function i(e){for(var t=1;t