1 line
38 KiB
JavaScript
1 line
38 KiB
JavaScript
this.wp=this.wp||{},this.wp.coreData=function(t){var e={};function r(n){if(e[n])return e[n].exports;var a=e[n]={i:n,l:!1,exports:{}};return t[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)r.d(n,a,function(e){return t[e]}.bind(null,a));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=387)}({10:function(t,e,r){"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}r.d(e,"a",(function(){return n}))},17:function(t,e,r){"use strict";var n=r(30);function a(t){return function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e<t.length;e++)r[e]=t[e];return r}}(t)||Object(n.a)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}r.d(e,"a",(function(){return a}))},2:function(t,e){!function(){t.exports=this.lodash}()},20:function(t,e,r){t.exports=r(48)},23:function(t,e,r){"use strict";var n=r(38);var a=r(39);function i(t,e){return Object(n.a)(t)||function(t,e){var r=[],n=!0,a=!1,i=void 0;try{for(var o,u=t[Symbol.iterator]();!(n=(o=u.next()).done)&&(r.push(o.value),!e||r.length!==e);n=!0);}catch(t){a=!0,i=t}finally{try{n||null==u.return||u.return()}finally{if(a)throw i}}return r}(t,e)||Object(a.a)()}r.d(e,"a",(function(){return i}))},26:function(t,e){!function(){t.exports=this.wp.url}()},30:function(t,e,r){"use strict";function n(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}r.d(e,"a",(function(){return n}))},32:function(t,e){!function(){t.exports=this.wp.apiFetch}()},36:function(t,e,r){"use strict";var n,a;function i(t){return[t]}function o(){var t={clear:function(){t.head=null}};return t}function u(t,e,r){var n;if(t.length!==e.length)return!1;for(n=r;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}n={},a="undefined"!=typeof WeakMap,e.a=function(t,e){var r,c;function s(){r=a?new WeakMap:o()}function f(){var r,n,a,i,o,s=arguments.length;for(i=new Array(s),a=0;a<s;a++)i[a]=arguments[a];for(o=e.apply(null,i),(r=c(o)).isUniqueByDependants||(r.lastDependants&&!u(o,r.lastDependants,0)&&r.clear(),r.lastDependants=o),n=r.head;n;){if(u(n.args,i,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:t.apply(null,i)},i[0]=null,n.args=i,r.head&&(r.head.prev=n,n.next=r.head),r.head=n,n.val}return e||(e=i),c=a?function(t){var e,a,i,u,c,s=r,f=!0;for(e=0;e<t.length;e++){if(a=t[e],!(c=a)||"object"!=typeof c){f=!1;break}s.has(a)?s=s.get(a):(i=new WeakMap,s.set(a,i),s=i)}return s.has(n)||((u=o()).isUniqueByDependants=f,s.set(n,u)),s.get(n)}:function(){return r},f.getDependants=e,f.clear=s,s(),f}},37:function(t,e){!function(){t.exports=this.wp.deprecated}()},38:function(t,e,r){"use strict";function n(t){if(Array.isArray(t))return t}r.d(e,"a",(function(){return n}))},387:function(t,e,r){"use strict";r.r(e);var n={};r.r(n),r.d(n,"receiveUserQuery",(function(){return q})),r.d(n,"receiveCurrentUser",(function(){return F})),r.d(n,"addEntities",(function(){return Y})),r.d(n,"receiveEntityRecords",(function(){return B})),r.d(n,"receiveThemeSupports",(function(){return G})),r.d(n,"receiveEmbedPreview",(function(){return K})),r.d(n,"editEntityRecord",(function(){return Q})),r.d(n,"undo",(function(){return W})),r.d(n,"redo",(function(){return H})),r.d(n,"__unstableCreateUndoLevel",(function(){return z})),r.d(n,"saveEntityRecord",(function(){return X})),r.d(n,"saveEditedEntityRecord",(function(){return J})),r.d(n,"receiveUploadPermissions",(function(){return Z})),r.d(n,"receiveUserPermission",(function(){return $})),r.d(n,"receiveAutosaves",(function(){return tt}));var a={};r.r(a),r.d(a,"isRequestingEmbedPreview",(function(){return Ot})),r.d(a,"getAuthors",(function(){return jt})),r.d(a,"getCurrentUser",(function(){return wt})),r.d(a,"getUserQueryResults",(function(){return xt})),r.d(a,"getEntitiesByKind",(function(){return Rt})),r.d(a,"getEntity",(function(){return kt})),r.d(a,"getEntityRecord",(function(){return _t})),r.d(a,"getRawEntityRecord",(function(){return Tt})),r.d(a,"getEntityRecords",(function(){return It})),r.d(a,"getEntityRecordEdits",(function(){return St})),r.d(a,"getEntityRecordNonTransientEdits",(function(){return At})),r.d(a,"hasEditsForEntityRecord",(function(){return Ut})),r.d(a,"getEditedEntityRecord",(function(){return Pt})),r.d(a,"isAutosavingEntityRecord",(function(){return Ct})),r.d(a,"isSavingEntityRecord",(function(){return Lt})),r.d(a,"getLastEntitySaveError",(function(){return Dt})),r.d(a,"getUndoEdit",(function(){return Mt})),r.d(a,"getRedoEdit",(function(){return Vt})),r.d(a,"hasUndo",(function(){return qt})),r.d(a,"hasRedo",(function(){return Ft})),r.d(a,"getThemeSupports",(function(){return Yt})),r.d(a,"getEmbedPreview",(function(){return Bt})),r.d(a,"isPreviewEmbedFallback",(function(){return Gt})),r.d(a,"hasUploadPermissions",(function(){return Kt})),r.d(a,"canUser",(function(){return Qt})),r.d(a,"getAutosaves",(function(){return Wt})),r.d(a,"getAutosave",(function(){return Ht})),r.d(a,"hasFetchedAutosaves",(function(){return zt})),r.d(a,"getReferenceByDistinctEdits",(function(){return Xt}));var i={};r.r(i),r.d(i,"getAuthors",(function(){return ue})),r.d(i,"getCurrentUser",(function(){return ce})),r.d(i,"getEntityRecord",(function(){return se})),r.d(i,"getEntityRecords",(function(){return fe})),r.d(i,"getThemeSupports",(function(){return de})),r.d(i,"getEmbedPreview",(function(){return le})),r.d(i,"hasUploadPermissions",(function(){return pe})),r.d(i,"canUser",(function(){return ve})),r.d(i,"getAutosaves",(function(){return he})),r.d(i,"getAutosave",(function(){return ye}));var o=r(7),u=r(4),c=r(23),s=r(17),f=r(10),d=r(2),l=r(41),p=r.n(l);var v=function(t){return function(e){return function(r,n){return void 0===r||t(n)?e(r,n):r}}},h=function(t){return function(e){return function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,a=n[t];if(void 0===a)return r;var i=e(r[a],n);return i===r[a]?r:Object(o.a)({},r,Object(f.a)({},a,i))}}},y=function(t){return function(e){return function(r,n){return e(r,t(n))}}};var b=function(t){var e=new WeakMap;return function(r){var n;return e.has(r)?n=e.get(r):(n=t(r),Object(d.isObjectLike)(r)&&e.set(r,n)),n}};function g(t){return{type:"RECEIVE_ITEMS",items:Object(d.castArray)(t)}}var E=r(36),m=r(79),O=r.n(m),j=r(26);var w=b((function(t){for(var e={stableKey:"",page:1,perPage:10},r=Object.keys(t).sort(),n=0;n<r.length;n++){var a=r[n],i=t[a];switch(a){case"page":e[a]=Number(i);break;case"per_page":e.perPage=Number(i);break;default:e.stableKey+=(e.stableKey?"&":"")+Object(j.addQueryArgs)("",Object(f.a)({},a,i)).slice(1)}}return e})),x=new WeakMap;function R(t,e){var r=w(e),n=r.stableKey,a=r.page,i=r.perPage;if(!t.queries[n])return null;var o=t.queries[n];if(!o)return null;for(var u=-1===i?0:(a-1)*i,c=-1===i?o.length:Math.min(u+i,o.length),s=[],f=u;f<c;f++){var d=o[f];s.push(t.items[d])}return s}var k=Object(E.a)((function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=x.get(t);if(r){var n=r.get(e);if(void 0!==n)return n}else r=new O.a,x.set(t,r);var a=R(t,e);return r.set(e,a),a})),_=r(20),T=r.n(_),I=r(32),S=r.n(I);function A(t){return{type:"API_FETCH",request:t}}function U(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return{type:"SELECT",selectorName:t,args:r}}function P(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return{type:"RESOLVE_SELECT",selectorName:t,args:r}}var C={API_FETCH:function(t){var e=t.request;return S()(e)},SELECT:Object(u.createRegistryControl)((function(t){return function(e){var r,n=e.selectorName,a=e.args;return(r=t.select("core"))[n].apply(r,Object(s.a)(a))}})),RESOLVE_SELECT:Object(u.createRegistryControl)((function(t){return function(e){var r=e.selectorName,n=e.args;return new Promise((function(e){var a=function(){return t.select("core/data").hasFinishedResolution("core",r,n)},i=function(){return t.select("core")[r].apply(null,n)},o=i();if(a())return e(o);var u=t.subscribe((function(){a()&&(u(),e(i()))}))}))}}))},L=T.a.mark(Q),D=T.a.mark(W),N=T.a.mark(H),M=T.a.mark(X),V=T.a.mark(J);function q(t,e){return{type:"RECEIVE_USER_QUERY",users:Object(d.castArray)(e),queryID:t}}function F(t){return{type:"RECEIVE_CURRENT_USER",currentUser:t}}function Y(t){return{type:"ADD_ENTITIES",entities:t}}function B(t,e,r,n){var a,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return"postType"===t&&(r=Object(d.castArray)(r).map((function(t){return"auto-draft"===t.status?Object(o.a)({},t,{title:""}):t}))),a=n?function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(o.a)({},g(t),{query:e})}(r,n):g(r),Object(o.a)({},a,{kind:t,name:e,invalidateCache:i})}function G(t){return{type:"RECEIVE_THEME_SUPPORTS",themeSupports:t}}function K(t,e){return{type:"RECEIVE_EMBED_PREVIEW",url:t,preview:e}}function Q(t,e,r,n){var a,i,u,c,s,f,l,p,v,h=arguments;return T.a.wrap((function(y){for(;;)switch(y.prev=y.next){case 0:return a=h.length>4&&void 0!==h[4]?h[4]:{},y.next=3,U("getEntity",t,e);case 3:return i=y.sent,u=i.transientEdits,c=void 0===u?{}:u,s=i.mergedEdits,f=void 0===s?{}:s,y.next=10,U("getRawEntityRecord",t,e,r);case 10:return l=y.sent,y.next=13,U("getEditedEntityRecord",t,e,r);case 13:return p=y.sent,v={kind:t,name:e,recordId:r,edits:Object.keys(n).reduce((function(t,e){var r=l[e],a=p[e],i=f[e]?Object(d.merge)({},a,n[e]):n[e];return t[e]=Object(d.isEqual)(r,i)?void 0:i,t}),{}),transientEdits:c},y.abrupt("return",Object(o.a)({type:"EDIT_ENTITY_RECORD"},v,{meta:{undo:!a.undoIgnore&&Object(o.a)({},v,{edits:Object.keys(n).reduce((function(t,e){return t[e]=p[e],t}),{})})}}));case 16:case"end":return y.stop()}}),L)}function W(){var t;return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,U("getUndoEdit");case 2:if(t=e.sent){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,Object(o.a)({type:"EDIT_ENTITY_RECORD"},t,{meta:{isUndo:!0}});case 7:case"end":return e.stop()}}),D)}function H(){var t;return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,U("getRedoEdit");case 2:if(t=e.sent){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,Object(o.a)({type:"EDIT_ENTITY_RECORD"},t,{meta:{isRedo:!0}});case 7:case"end":return e.stop()}}),N)}function z(){return{type:"CREATE_UNDO_LEVEL"}}function X(t,e,r){var n,a,i,u,c,s,f,l,p,v,h,y,b,g,E,m,O,j,w,x=arguments;return T.a.wrap((function(R){for(;;)switch(R.prev=R.next){case 0:return n=x.length>3&&void 0!==x[3]?x[3]:{isAutosave:!1},a=n.isAutosave,i=void 0!==a&&a,R.next=3,ft(t);case 3:if(u=R.sent,c=Object(d.find)(u,{kind:t,name:e})){R.next=7;break}return R.abrupt("return");case 7:return s=c.key||at,f=r[s],R.next=11,{type:"SAVE_ENTITY_RECORD_START",kind:t,name:e,recordId:f,isAutosave:i};case 11:return R.prev=11,y="".concat(c.baseURL).concat(f?"/"+f:""),R.next=15,U("getRawEntityRecord",t,e,f);case 15:if(b=R.sent,!i){R.next=40;break}return R.next=19,U("getCurrentUser");case 19:return g=R.sent,E=g?g.id:void 0,R.next=23,U("getAutosave",b.type,b.id,E);case 23:return m=R.sent,O=Object(o.a)({},b,m,r),O=Object.keys(O).reduce((function(t,e){return["title","excerpt","content"].includes(e)&&(t[e]=Object(d.get)(O[e],"raw",O[e])),t}),{status:"auto-draft"===O.status?"draft":O.status}),R.next=28,A({path:"".concat(y,"/autosaves"),method:"POST",data:O});case 28:if(l=R.sent,b.id!==l.id){R.next=36;break}return j=Object(o.a)({},b,O,l),j=Object.keys(j).reduce((function(t,e){return["title","excerpt","content"].includes(e)?t[e]=Object(d.get)(j[e],"raw",j[e]):t[e]="status"===e?"auto-draft"===b.status&&"draft"===j.status?j.status:b.status:Object(d.get)(b[e],"raw",b[e]),t}),{}),R.next=34,B(t,e,j,void 0,!0);case 34:R.next=38;break;case 36:return R.next=38,tt(b.id,l);case 38:R.next=55;break;case 40:return w=r,"postType"===t&&b&&"auto-draft"===b.status&&(w.status||(w=Object(o.a)({},w,{status:"draft"})),w.title&&"Auto Draft"!==w.title||(w=Object(o.a)({},w,{title:""}))),R.next=44,U("getEntityRecord",t,e,f);case 44:return v=R.sent,R.next=47,U("getEntityRecordEdits",t,e,f);case 47:return h=R.sent,R.next=50,B(t,e,Object(o.a)({},v,w),void 0,!0);case 50:return R.next=52,A({path:y,method:f?"PUT":"POST",data:w});case 52:return l=R.sent,R.next=55,B(t,e,l,void 0,!0);case 55:R.next=77;break;case 57:if(R.prev=57,R.t0=R.catch(11),p=R.t0,!v||!h){R.next=77;break}return R.next=63,B(t,e,v,void 0,!0);case 63:return R.t1=Q,R.t2=t,R.t3=e,R.t4=f,R.t5=o.a,R.t6={},R.t7=h,R.next=72,U("getEntityRecordEdits",t,e,f);case 72:return R.t8=R.sent,R.t9=(0,R.t5)(R.t6,R.t7,R.t8),R.t10={undoIgnore:!0},R.next=77,(0,R.t1)(R.t2,R.t3,R.t4,R.t9,R.t10);case 77:return R.next=79,{type:"SAVE_ENTITY_RECORD_FINISH",kind:t,name:e,recordId:f,error:p,isAutosave:i};case 79:return R.abrupt("return",l);case 80:case"end":return R.stop()}}),M,null,[[11,57]])}function J(t,e,r,n){var a,i;return T.a.wrap((function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,U("hasEditsForEntityRecord",t,e,r);case 2:if(u.sent){u.next=4;break}return u.abrupt("return");case 4:return u.next=6,U("getEntityRecordNonTransientEdits",t,e,r);case 6:return a=u.sent,i=Object(o.a)({id:r},a),u.delegateYield(X(t,e,i,n),"t0",9);case 9:case"end":return u.stop()}}),V)}function Z(t){return{type:"RECEIVE_USER_PERMISSION",key:"create/media",isAllowed:t}}function $(t,e){return{type:"RECEIVE_USER_PERMISSION",key:t,isAllowed:e}}function tt(t,e){return{type:"RECEIVE_AUTOSAVES",postId:t,autosaves:Object(d.castArray)(e)}}var et=T.a.mark(ut),rt=T.a.mark(ct),nt=T.a.mark(ft),at="id",it=[{name:"postType",kind:"root",key:"slug",baseURL:"/wp/v2/types"},{name:"media",kind:"root",baseURL:"/wp/v2/media",plural:"mediaItems"},{name:"taxonomy",kind:"root",key:"slug",baseURL:"/wp/v2/taxonomies",plural:"taxonomies"},{name:"widgetArea",kind:"root",baseURL:"/__experimental/widget-areas",plural:"widgetAreas"}],ot=[{name:"postType",loadEntities:ut},{name:"taxonomy",loadEntities:ct}];function ut(){var t;return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,A({path:"/wp/v2/types?context=edit"});case 2:return t=e.sent,e.abrupt("return",Object(d.map)(t,(function(t,e){return{kind:"postType",baseURL:"/wp/v2/"+t.rest_base,name:e,transientEdits:{blocks:!0},mergedEdits:{meta:!0}}})));case 4:case"end":return e.stop()}}),et)}function ct(){var t;return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,A({path:"/wp/v2/taxonomies?context=edit"});case 2:return t=e.sent,e.abrupt("return",Object(d.map)(t,(function(t,e){return{kind:"taxonomy",baseURL:"/wp/v2/"+t.rest_base,name:e}})));case 4:case"end":return e.stop()}}),rt)}var st=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"get",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=Object(d.find)(it,{kind:t,name:e}),i="root"===t?"":Object(d.upperFirst)(Object(d.camelCase)(t)),o=Object(d.upperFirst)(Object(d.camelCase)(e))+(n?"s":""),u=n&&a.plural?Object(d.upperFirst)(Object(d.camelCase)(a.plural)):o;return"".concat(r).concat(i).concat(u)};function ft(t){var e,r;return T.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,U("getEntitiesByKind",t);case 2:if(!(e=n.sent)||0===e.length){n.next=5;break}return n.abrupt("return",e);case 5:if(r=Object(d.find)(ot,{name:t})){n.next=8;break}return n.abrupt("return",[]);case 8:return n.next=10,r.loadEntities();case 10:return e=n.sent,n.next=13,Y(e);case 13:return n.abrupt("return",e);case 14:case"end":return n.stop()}}),nt)}function dt(t,e,r,n){for(var a=(r-1)*n,i=Math.max(t.length,a+e.length),o=new Array(i),u=0;u<i;u++){var c=u>=a&&u<a+e.length;o[u]=c?e[u-a]:t[u]}return o}var lt=Object(d.flowRight)([v((function(t){return"query"in t})),y((function(t){return t.query?Object(o.a)({},t,w(t.query)):t})),h("stableKey")])((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1?arguments[1]:void 0,r=e.type,n=e.page,a=e.perPage,i=e.key,o=void 0===i?at:i;return"RECEIVE_ITEMS"!==r?t:dt(t||[],Object(d.map)(e.items,o),n,a)})),pt=Object(u.combineReducers)({items:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"RECEIVE_ITEMS":var r=e.key||at;return Object(o.a)({},t,e.items.reduce((function(e,n){var a=n[r];return e[a]=function(t,e){if(!t)return e;var r=!1,n={};for(var a in e)Object(d.isEqual)(t[a],e[a])?n[a]=t[a]:(r=!0,n[a]=e[a]);return r?n:t}(t[a],n),e}),{}))}return t},queries:lt});function vt(t){return Object(d.flowRight)([v((function(e){return e.name&&e.kind&&e.name===t.name&&e.kind===t.kind})),y((function(e){return Object(o.a)({},e,{key:t.key||at})}))])(Object(u.combineReducers)({queriedData:pt,edits:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"RECEIVE_ITEMS":var r=Object(o.a)({},t),n=!0,a=!1,i=void 0;try{for(var u,c=function(){var t=u.value,n=t[e.key],a=r[n];if(!a)return"continue";var i=Object.keys(a).reduce((function(e,r){return Object(d.isEqual)(a[r],Object(d.get)(t[r],"raw",t[r]))||(e[r]=a[r]),e}),{});Object.keys(i).length?r[n]=i:delete r[n]},s=e.items[Symbol.iterator]();!(n=(u=s.next()).done);n=!0)c()}catch(t){a=!0,i=t}finally{try{n||null==s.return||s.return()}finally{if(a)throw i}}return r;case"EDIT_ENTITY_RECORD":var l=Object(o.a)({},t[e.recordId],e.edits);return Object.keys(l).forEach((function(t){void 0===l[t]&&delete l[t]})),Object(o.a)({},t,Object(f.a)({},e.recordId,l))}return t},saving:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"SAVE_ENTITY_RECORD_START":case"SAVE_ENTITY_RECORD_FINISH":return Object(o.a)({},t,Object(f.a)({},e.recordId,{pending:"SAVE_ENTITY_RECORD_START"===e.type,error:e.error,isAutosave:e.isAutosave}))}return t}}))}function ht(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:it,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"ADD_ENTITIES":return[].concat(Object(s.a)(t),Object(s.a)(e.entities))}return t}var yt,bt=[];bt.offset=0;var gt=Object(u.combineReducers)({terms:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"RECEIVE_TERMS":return Object(o.a)({},t,Object(f.a)({},e.taxonomy,e.terms))}return t},users:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{byId:{},queries:{}},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"RECEIVE_USER_QUERY":return{byId:Object(o.a)({},t.byId,Object(d.keyBy)(e.users,"id")),queries:Object(o.a)({},t.queries,Object(f.a)({},e.queryID,Object(d.map)(e.users,(function(t){return t.id}))))}}return t},currentUser:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"RECEIVE_CURRENT_USER":return e.currentUser}return t},taxonomies:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"RECEIVE_TAXONOMIES":return e.taxonomies}return t},themeSupports:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"RECEIVE_THEME_SUPPORTS":return Object(o.a)({},t,e.themeSupports)}return t},entities:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,r=ht(t.config,e),n=t.reducer;if(!n||r!==t.config){var a=Object(d.groupBy)(r,"kind");n=Object(u.combineReducers)(Object.entries(a).reduce((function(t,e){var r=Object(c.a)(e,2),n=r[0],a=r[1],i=Object(u.combineReducers)(a.reduce((function(t,e){return Object(o.a)({},t,Object(f.a)({},e.name,vt(e)))}),{}));return t[n]=i,t}),{}))}var i=n(t.data,e);return i===t.data&&r===t.config&&n===t.reducer?t:{reducer:n,data:i,config:r}},undo:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:bt,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"EDIT_ENTITY_RECORD":case"CREATE_UNDO_LEVEL":if("CREATE_UNDO_LEVEL"===e.type?e=yt:yt=e,e.meta.isUndo||e.meta.isRedo){var r=Object(s.a)(t);return r.offset=t.offset+(e.meta.isUndo?-1:1),r}if(!e.meta.undo)return t;if(!Object.keys(e.edits).some((function(t){return!e.transientEdits[t]}))){var n=Object(s.a)(t);return n.flattenedUndo=Object(o.a)({},t.flattenedUndo,e.edits),n.offset=t.offset,n}var a=t.slice(0,t.offset||void 0);a.offset=0,a.pop(),a.push({kind:e.meta.undo.kind,name:e.meta.undo.name,recordId:e.meta.undo.recordId,edits:Object(o.a)({},t.flattenedUndo,e.meta.undo.edits)});var i=Object.values(e.meta.undo.edits).filter((function(t){return"function"!=typeof t})),u=Object.values(e.edits).filter((function(t){return"function"!=typeof t}));return p()(i,u)||a.push({kind:e.kind,name:e.name,recordId:e.recordId,edits:e.edits}),a}return t},embedPreviews:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"RECEIVE_EMBED_PREVIEW":var r=e.url,n=e.preview;return Object(o.a)({},t,Object(f.a)({},r,n))}return t},userPermissions:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"RECEIVE_USER_PERMISSION":return Object(o.a)({},t,Object(f.a)({},e.key,e.isAllowed))}return t},autosaves:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"RECEIVE_AUTOSAVES":var r=e.postId,n=e.autosaves;return Object(o.a)({},t,Object(f.a)({},r,n))}return t}}),Et=r(37),mt=r.n(Et),Ot=Object(u.createRegistrySelector)((function(t){return function(e,r){return t("core/data").isResolving("core","getEmbedPreview",[r])}}));function jt(t){return xt(t,"authors")}function wt(t){return t.currentUser}var xt=Object(E.a)((function(t,e){var r=t.users.queries[e];return Object(d.map)(r,(function(e){return t.users.byId[e]}))}),(function(t,e){return[t.users.queries[e],t.users.byId]}));function Rt(t,e){return Object(d.filter)(t.entities.config,{kind:e})}function kt(t,e,r){return Object(d.find)(t.entities.config,{kind:e,name:r})}function _t(t,e,r,n){return Object(d.get)(t.entities.data,[e,r,"queriedData","items",n])}var Tt=Object(E.a)((function(t,e,r,n){var a=_t(t,e,r,n);return a&&Object.keys(a).reduce((function(t,e){return t[e]=Object(d.get)(a[e],"raw",a[e]),t}),{})}),(function(t){return[t.entities.data]}));function It(t,e,r,n){var a=Object(d.get)(t.entities.data,[e,r,"queriedData"]);return a?k(a,n):[]}function St(t,e,r,n){return Object(d.get)(t.entities.data,[e,r,"edits",n])}var At=Object(E.a)((function(t,e,r,n){var a=kt(t,e,r).transientEdits,i=void 0===a?{}:a,o=St(t,e,r,n)||[];return Object.keys(o).reduce((function(t,e){return i[e]||(t[e]=o[e]),t}),{})}),(function(t){return[t.entities.config,t.entities.data]}));function Ut(t,e,r,n){return Lt(t,e,r,n)||Object.keys(At(t,e,r,n)).length>0}var Pt=Object(E.a)((function(t,e,r,n){return Object(o.a)({},Tt(t,e,r,n),St(t,e,r,n))}),(function(t){return[t.entities.data]}));function Ct(t,e,r,n){var a=Object(d.get)(t.entities.data,[e,r,"saving",n],{}),i=a.pending,o=a.isAutosave;return Boolean(i&&o)}function Lt(t,e,r,n){return Object(d.get)(t.entities.data,[e,r,"saving",n,"pending"],!1)}function Dt(t,e,r,n){return Object(d.get)(t.entities.data,[e,r,"saving",n,"error"])}function Nt(t){return t.undo.offset}function Mt(t){return t.undo[t.undo.length-2+Nt(t)]}function Vt(t){return t.undo[t.undo.length+Nt(t)]}function qt(t){return Boolean(Mt(t))}function Ft(t){return Boolean(Vt(t))}function Yt(t){return t.themeSupports}function Bt(t,e){return t.embedPreviews[e]}function Gt(t,e){var r=t.embedPreviews[e],n='<a href="'+e+'">'+e+"</a>";return!!r&&r.html===n}function Kt(t){return mt()("select( 'core' ).hasUploadPermissions()",{alternative:"select( 'core' ).canUser( 'create', 'media' )"}),Object(d.defaultTo)(Qt(t,"create","media"),!0)}function Qt(t,e,r,n){var a=Object(d.compact)([e,r,n]).join("/");return Object(d.get)(t,["userPermissions",a])}function Wt(t,e,r){return t.autosaves[r]}function Ht(t,e,r,n){if(void 0!==n){var a=t.autosaves[r];return Object(d.find)(a,{author:n})}}var zt=Object(u.createRegistrySelector)((function(t){return function(e,r,n){return t("core").hasFinishedResolution("getAutosaves",[r,n])}})),Xt=Object(E.a)((function(){return[]}),(function(t){return[t.undo.length,t.undo.offset]})),Jt=T.a.mark(ue),Zt=T.a.mark(ce),$t=T.a.mark(se),te=T.a.mark(fe),ee=T.a.mark(de),re=T.a.mark(le),ne=T.a.mark(pe),ae=T.a.mark(ve),ie=T.a.mark(he),oe=T.a.mark(ye);function ue(){var t;return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,A({path:"/wp/v2/users/?who=authors&per_page=-1"});case 2:return t=e.sent,e.next=5,q("authors",t);case 5:case"end":return e.stop()}}),Jt)}function ce(){var t;return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,A({path:"/wp/v2/users/me"});case 2:return t=e.sent,e.next=5,F(t);case 5:case"end":return e.stop()}}),Zt)}function se(t,e,r){var n,a,i;return T.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,ft(t);case 2:if(n=o.sent,a=Object(d.find)(n,{kind:t,name:e})){o.next=6;break}return o.abrupt("return");case 6:return o.next=8,A({path:"".concat(a.baseURL,"/").concat(r,"?context=edit")});case 8:return i=o.sent,o.next=11,B(t,e,i);case 11:case"end":return o.stop()}}),$t)}function fe(t,e){var r,n,a,i,u,c=arguments;return T.a.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,ft(t);case 3:if(n=s.sent,a=Object(d.find)(n,{kind:t,name:e})){s.next=7;break}return s.abrupt("return");case 7:return i=Object(j.addQueryArgs)(a.baseURL,Object(o.a)({},r,{context:"edit"})),s.next=10,A({path:i});case 10:return u=s.sent,s.next=13,B(t,e,Object.values(u),r);case 13:case"end":return s.stop()}}),te)}function de(){var t;return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,A({path:"/wp/v2/themes?status=active"});case 2:return t=e.sent,e.next=5,G(t[0].theme_supports);case 5:case"end":return e.stop()}}),ee)}function le(t){var e;return T.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,A({path:Object(j.addQueryArgs)("/oembed/1.0/proxy",{url:t})});case 3:return e=r.sent,r.next=6,K(t,e);case 6:r.next=12;break;case 8:return r.prev=8,r.t0=r.catch(0),r.next=12,K(t,!1);case 12:case"end":return r.stop()}}),re,null,[[0,8]])}function pe(){return T.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return mt()("select( 'core' ).hasUploadPermissions()",{alternative:"select( 'core' ).canUser( 'create', 'media' )"}),t.delegateYield(ve("create","media"),"t0",2);case 2:case"end":return t.stop()}}),ne)}function ve(t,e,r){var n,a,i,o,u,c;return T.a.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:if(n={create:"POST",read:"GET",update:"PUT",delete:"DELETE"}[t]){s.next=4;break}throw new Error("'".concat(t,"' is not a valid action."));case 4:return a=r?"/wp/v2/".concat(e,"/").concat(r):"/wp/v2/".concat(e),s.prev=5,s.next=8,A({path:a,method:r?"GET":"OPTIONS",parse:!1});case 8:i=s.sent,s.next=14;break;case 11:return s.prev=11,s.t0=s.catch(5),s.abrupt("return");case 14:return o=Object(d.hasIn)(i,["headers","get"])?i.headers.get("allow"):Object(d.get)(i,["headers","Allow"],""),u=Object(d.compact)([t,e,r]).join("/"),c=Object(d.includes)(o,n),s.next=19,$(u,c);case 19:case"end":return s.stop()}}),ae,null,[[5,11]])}function he(t,e){var r,n,a;return T.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,P("getPostType",t);case 2:return r=i.sent,n=r.rest_base,i.next=6,A({path:"/wp/v2/".concat(n,"/").concat(e,"/autosaves?context=edit")});case 6:if(!(a=i.sent)||!a.length){i.next=10;break}return i.next=10,tt(e,a);case 10:case"end":return i.stop()}}),ie)}function ye(t,e){return T.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,P("getAutosaves",t,e);case 2:case"end":return r.stop()}}),oe)}fe.shouldInvalidate=function(t,e,r){return"RECEIVE_ITEMS"===t.type&&t.invalidateCache&&e===t.kind&&r===t.name};var be=it.reduce((function(t,e){var r=e.kind,n=e.name;return t[st(r,n)]=function(t,e){return _t(t,r,n,e)},t[st(r,n,"get",!0)]=function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),o=1;o<e;o++)i[o-1]=arguments[o];return It.apply(a,[t,r,n].concat(i))},t}),{}),ge=it.reduce((function(t,e){var r=e.kind,n=e.name;t[st(r,n)]=function(t){return se(r,n,t)};var a=st(r,n,"get",!0);return t[a]=function(){for(var t=arguments.length,e=new Array(t),a=0;a<t;a++)e[a]=arguments[a];return fe.apply(i,[r,n].concat(e))},t[a].shouldInvalidate=function(t){for(var e,a=arguments.length,i=new Array(a>1?a-1:0),o=1;o<a;o++)i[o-1]=arguments[o];return(e=fe).shouldInvalidate.apply(e,[t,r,n].concat(i))},t}),{}),Ee=it.reduce((function(t,e){var r=e.kind,n=e.name;return t[st(r,n,"save")]=function(t){return X(r,n,t)},t}),{});Object(u.registerStore)("core",{reducer:gt,controls:C,actions:Object(o.a)({},n,Ee),selectors:Object(o.a)({},a,be),resolvers:Object(o.a)({},i,ge)})},39:function(t,e,r){"use strict";function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}r.d(e,"a",(function(){return n}))},4:function(t,e){!function(){t.exports=this.wp.data}()},41:function(t,e){!function(){t.exports=this.wp.isShallowEqual}()},48:function(t,e,r){var n=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",o=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function c(t,e,r,n){var a=e&&e.prototype instanceof h?e:h,i=Object.create(a.prototype),o=new _(n||[]);return i._invoke=function(t,e,r){var n=f;return function(a,i){if(n===l)throw new Error("Generator is already running");if(n===p){if("throw"===a)throw i;return I()}for(r.method=a,r.arg=i;;){var o=r.delegate;if(o){var u=x(o,r);if(u){if(u===v)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=l;var c=s(t,e,r);if("normal"===c.type){if(n=r.done?p:d,c.arg===v)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=p,r.method="throw",r.arg=c.arg)}}}(t,r,o),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var f="suspendedStart",d="suspendedYield",l="executing",p="completed",v={};function h(){}function y(){}function b(){}var g={};g[i]=function(){return this};var E=Object.getPrototypeOf,m=E&&E(E(T([])));m&&m!==r&&n.call(m,i)&&(g=m);var O=b.prototype=h.prototype=Object.create(g);function j(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function w(t){var e;this._invoke=function(r,a){function i(){return new Promise((function(e,i){!function e(r,a,i,o){var u=s(t[r],t,a);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==typeof f&&n.call(f,"__await")?Promise.resolve(f.__await).then((function(t){e("next",t,i,o)}),(function(t){e("throw",t,i,o)})):Promise.resolve(f).then((function(t){c.value=t,i(c)}),(function(t){return e("throw",t,i,o)}))}o(u.arg)}(r,a,e,i)}))}return e=e?e.then(i,i):i()}}function x(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,x(t,r),"throw"===r.method))return v;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var a=s(n,t.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,v;var i=a.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function R(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(R,this),this.reset(!0)}function T(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}return{next:I}}function I(){return{value:e,done:!0}}return y.prototype=O.constructor=b,b.constructor=y,b[u]=y.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u in t||(t[u]="GeneratorFunction")),t.prototype=Object.create(O),t},t.awrap=function(t){return{__await:t}},j(w.prototype),w.prototype[o]=function(){return this},t.AsyncIterator=w,t.async=function(e,r,n,a){var i=new w(c(e,r,n,a));return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},j(O),O[u]="Generator",O[i]=function(){return this},O.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=T,_.prototype={constructor:_,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(k),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return u.type="throw",u.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],u=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),s=n.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return a(o.catchLoc,!0);if(this.prev<o.finallyLoc)return a(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return a(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return a(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var i=a;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var a=n.arg;k(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}},7:function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));var n=r(10);function a(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),a.forEach((function(e){Object(n.a)(t,e,r[e])}))}return t}},79:function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function i(t,e){var r=t._map,n=t._arrayTreeMap,a=t._objectTreeMap;if(r.has(e))return r.get(e);for(var i=Object.keys(e).sort(),o=Array.isArray(e)?n:a,u=0;u<i.length;u++){var c=i[u];if(void 0===(o=o.get(c)))return;var s=e[c];if(void 0===(o=o.get(s)))return}var f=o.get("_ekm_value");return f?(r.delete(f[0]),f[0]=e,o.set("_ekm_value",f),r.set(e,f),f):void 0}var o=function(){function t(e){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.clear(),e instanceof t){var r=[];e.forEach((function(t,e){r.push([e,t])})),e=r}if(null!=e)for(var n=0;n<e.length;n++)this.set(e[n][0],e[n][1])}var e,r,o;return e=t,(r=[{key:"set",value:function(e,r){if(null===e||"object"!==n(e))return this._map.set(e,r),this;for(var a=Object.keys(e).sort(),i=[e,r],o=Array.isArray(e)?this._arrayTreeMap:this._objectTreeMap,u=0;u<a.length;u++){var c=a[u];o.has(c)||o.set(c,new t),o=o.get(c);var s=e[c];o.has(s)||o.set(s,new t),o=o.get(s)}var f=o.get("_ekm_value");return f&&this._map.delete(f[0]),o.set("_ekm_value",i),this._map.set(e,i),this}},{key:"get",value:function(t){if(null===t||"object"!==n(t))return this._map.get(t);var e=i(this,t);return e?e[1]:void 0}},{key:"has",value:function(t){return null===t||"object"!==n(t)?this._map.has(t):void 0!==i(this,t)}},{key:"delete",value:function(t){return!!this.has(t)&&(this.set(t,void 0),!0)}},{key:"forEach",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;this._map.forEach((function(a,i){null!==i&&"object"===n(i)&&(a=a[1]),t.call(r,a,i,e)}))}},{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(e.prototype,r),o&&a(e,o),t}();t.exports=o}}); |