You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

1 lines
26 KiB

this.wp=this.wp||{},this.wp.coreData=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=309)}({120: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,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",function(){return r})},19:function(e,t,n){"use strict";var r=n(33);function i(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||Object(r.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}n.d(t,"a",function(){return i})},2:function(e,t){!function(){e.exports=this.lodash}()},24:function(e,t){!function(){e.exports=this.wp.url}()},25:function(e,t,n){"use strict";var r=n(35);var i=n(36);function u(e,t){return Object(r.a)(e)||function(e,t){var n=[],r=!0,i=!1,u=void 0;try{for(var o,a=e[Symbol.iterator]();!(r=(o=a.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,u=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw u}}return n}(e,t)||Object(i.a)()}n.d(t,"a",function(){return u})},30:function(e,t){!function(){e.exports=this.wp.apiFetch}()},309:function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"receiveUserQuery",function(){return T}),n.d(r,"addEntities",function(){return A}),n.d(r,"receiveEntityRecords",function(){return M}),n.d(r,"receiveThemeSupports",function(){return U}),n.d(r,"receiveEmbedPreview",function(){return C}),n.d(r,"saveEntityRecord",function(){return N}),n.d(r,"receiveUploadPermissions",function(){return D});var i={};n.r(i),n.d(i,"isRequestingEmbedPreview",function(){return Z}),n.d(i,"getAuthors",function(){return $}),n.d(i,"getUserQueryResults",function(){return ee}),n.d(i,"getEntitiesByKind",function(){return te}),n.d(i,"getEntity",function(){return ne}),n.d(i,"getEntityRecord",function(){return re}),n.d(i,"getEntityRecords",function(){return ie}),n.d(i,"getThemeSupports",function(){return ue}),n.d(i,"getEmbedPreview",function(){return oe}),n.d(i,"isPreviewEmbedFallback",function(){return ae}),n.d(i,"hasUploadPermissions",function(){return ce});var u={};n.r(u),n.d(u,"getAuthors",function(){return ve}),n.d(u,"getEntityRecord",function(){return be}),n.d(u,"getEntityRecords",function(){return ye}),n.d(u,"getThemeSupports",function(){return ge}),n.d(u,"getEmbedPreview",function(){return me}),n.d(u,"hasUploadPermissions",function(){return we});var o=n(8),a=n(5),c=n(25),s=n(19),f=n(15),d=n(2),l=function(e){return function(t){return function(n,r){return void 0===n||e(r)?t(n,r):n}}},p=function(e){return function(t){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,i=r[e];if(void 0===i)return n;var u=t(n[i],r);return u===n[i]?n:Object(o.a)({},n,Object(f.a)({},i,u))}}},h=function(e){return function(t){return function(n,r){return t(n,e(r))}}};var v=function(e){var t=new WeakMap;return function(n){var r;return t.has(n)?r=t.get(n):(r=e(n),Object(d.isObjectLike)(n)&&t.set(n,r)),r}};function b(e){return{type:"RECEIVE_ITEMS",items:Object(d.castArray)(e)}}var y=n(31),g=n(66),m=n.n(g),w=n(24);var O=v(function(e){for(var t={stableKey:"",page:1,perPage:10},n=Object.keys(e).sort(),r=0;r<n.length;r++){var i=n[r],u=e[i];switch(i){case"page":t[i]=Number(u);break;case"per_page":t.perPage=Number(u);break;default:t.stableKey+=(t.stableKey?"&":"")+Object(w.addQueryArgs)("",Object(f.a)({},i,u)).slice(1)}}return t}),E=new WeakMap;var j=Object(y.a)(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=E.get(e);if(n){var r=n.get(t);if(void 0!==r)return r}else n=new m.a,E.set(e,n);var i=function(e,t){var n=O(t),r=n.stableKey,i=n.page,u=n.perPage;if(!e.queries[r])return null;var o=e.queries[r];if(!o)return null;for(var a=-1===u?0:(i-1)*u,c=-1===u?o.length:Math.min(a+u,o.length),s=[],f=a;f<c;f++){var d=o[f];s.push(e.items[d])}return s}(e,t);return n.set(t,i),i}),x=n(62),k=n(30),R=n.n(k);function I(e){return{type:"API_FETCH",request:e}}function _(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return{type:"SELECT",selectorName:e,args:n}}var P={API_FETCH:function(e){var t=e.request;return R()(t)},SELECT:function(e){var t,n=e.selectorName,r=e.args;return(t=Object(a.select)("core"))[n].apply(t,Object(s.a)(r))}},S=regeneratorRuntime.mark(N);function T(e,t){return{type:"RECEIVE_USER_QUERY",users:Object(d.castArray)(t),queryID:e}}function A(e){return{type:"ADD_ENTITIES",entities:e}}function M(e,t,n,r){var i,u=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return i=r?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(o.a)({},b(e),{query:t})}(n,r):b(n),Object(o.a)({},i,{kind:e,name:t,invalidateCache:u})}function U(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,n){var r,i,u,o,a;return regeneratorRuntime.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,Y(e);case 2:if(r=c.sent,i=Object(d.find)(r,{kind:e,name:t})){c.next=6;break}return c.abrupt("return");case 6:return u=i.key||B,o=n[u],c.next=10,I({path:"".concat(i.baseURL).concat(o?"/"+o:""),method:o?"PUT":"POST",data:n});case 10:return a=c.sent,c.next=13,M(e,t,a,void 0,!0);case 13:return c.abrupt("return",a);case 14:case"end":return c.stop()}},S,this)}function D(e){return{type:"RECEIVE_UPLOAD_PERMISSIONS",hasUploadPermissions:e}}var q=regeneratorRuntime.mark(F),L=regeneratorRuntime.mark(Q),V=regeneratorRuntime.mark(Y),B="id",K=[{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"}],W=[{name:"postType",loadEntities:F},{name:"taxonomy",loadEntities:Q}];function F(){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()}},q,this)}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/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 n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"get",r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=Object(d.find)(K,{kind:e,name:t}),u="root"===e?"":Object(d.upperFirst)(Object(d.camelCase)(e)),o=Object(d.upperFirst)(Object(d.camelCase)(t))+(r?"s":""),a=r&&i.plural?Object(d.upperFirst)(Object(d.camelCase)(i.plural)):o;return"".concat(n).concat(u).concat(a)};function Y(e){var t,n;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,_("getEntitiesByKind",e);case 2:if(!(t=r.sent)||0===t.length){r.next=5;break}return r.abrupt("return",t);case 5:if(n=Object(d.find)(W,{name:e})){r.next=8;break}return r.abrupt("return",[]);case 8:return r.next=10,n.loadEntities();case 10:return t=r.sent,r.next=13,A(t);case 13:return r.abrupt("return",t);case 14:case"end":return r.stop()}},V,this)}var z=Object(d.flowRight)([l(function(e){return"query"in e}),h(function(e){return e.query?Object(o.a)({},e,O(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,n=t.type,r=t.page,i=t.perPage,u=t.key,o=void 0===u?B:u;return"RECEIVE_ITEMS"!==n?e:function(e,t,n,r){for(var i=(n-1)*r,u=Math.max(e.length,i+t.length),o=new Array(u),a=0;a<u;a++){var c=a>=i&&a<i+t.length;o[a]=c?t[a-i]:e[a]}return o}(e||[],Object(d.map)(t.items,o),r,i)}),G=Object(x.b)({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":return Object(o.a)({},e,Object(d.keyBy)(t.items,t.key||B))}return e},queries:z});var X=Object(a.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(o.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(o.a)({},e.byId,Object(d.keyBy)(t.users,"id")),queries:Object(o.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(o.a)({},e,t.themeSupports)}return e},entities:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:K,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_ENTITIES":return Object(s.a)(e).concat(Object(s.a)(t.entities))}return e}(e.config,t),r=e.reducer;if(!r||n!==e.config){var i=Object(d.groupBy)(n,"kind");r=Object(a.combineReducers)(Object.entries(i).reduce(function(e,t){var n=Object(c.a)(t,2),r=n[0],i=n[1],u=Object(a.combineReducers)(i.reduce(function(e,t){return Object(o.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}),h(function(t){return Object(o.a)({},t,{key:e.key||B})})])(G)}(t)))},{}));return e[r]=u,e},{}))}var u=r(e.data,t);return u===e.data&&n===e.config&&r===e.reducer?e:{reducer:r,data:u,config:n}},embedPreviews:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_EMBED_PREVIEW":var n=t.url,r=t.preview;return Object(o.a)({},e,Object(f.a)({},n,r))}return e},hasUploadPermissions: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_UPLOAD_PERMISSIONS":return t.hasUploadPermissions}return e}}),J="core";function Z(e,t){return function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Object(a.select)("core/data").isResolving(J,e,n)}("getEmbedPreview",t)}function $(e){return ee(e,"authors")}var ee=Object(y.a)(function(e,t){var n=e.users.queries[t];return Object(d.map)(n,function(t){return e.users.byId[t]})},function(e,t){return[e.users.queries[t],e.users.byId]});function te(e,t){return Object(d.filter)(e.entities.config,{kind:t})}function ne(e,t,n){return Object(d.find)(e.entities.config,{kind:t,name:n})}function re(e,t,n,r){return Object(d.get)(e.entities.data,[t,n,"items",r])}function ie(e,t,n,r){var i=Object(d.get)(e.entities.data,[t,n]);return i?j(i,r):[]}function ue(e){return e.themeSupports}function oe(e,t){return e.embedPreviews[t]}function ae(e,t){var n=e.embedPreviews[t],r='<a href="'+t+'">'+t+"</a>";return!!n&&n.html===r}function ce(e){return e.hasUploadPermissions}var se=regeneratorRuntime.mark(ve),fe=regeneratorRuntime.mark(be),de=regeneratorRuntime.mark(ye),le=regeneratorRuntime.mark(ge),pe=regeneratorRuntime.mark(me),he=regeneratorRuntime.mark(we);function ve(){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()}},se,this)}function be(e,t,n){var r,i,u;return regeneratorRuntime.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,Y(e);case 2:if(r=o.sent,i=Object(d.find)(r,{kind:e,name:t})){o.next=6;break}return o.abrupt("return");case 6:return o.next=8,I({path:"".concat(i.baseURL,"/").concat(n,"?context=edit")});case 8:return u=o.sent,o.next=11,M(e,t,u);case 11:case"end":return o.stop()}},fe,this)}function ye(e,t){var n,r,i,u,a,c=arguments;return regeneratorRuntime.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return n=c.length>2&&void 0!==c[2]?c[2]:{},s.next=3,Y(e);case 3:if(r=s.sent,i=Object(d.find)(r,{kind:e,name:t})){s.next=7;break}return s.abrupt("return");case 7:return u=Object(w.addQueryArgs)(i.baseURL,Object(o.a)({},n,{context:"edit"})),s.next=10,I({path:u});case 10:return a=s.sent,s.next=13,M(e,t,Object.values(a),n);case 13:case"end":return s.stop()}},de,this)}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/themes?status=active"});case 2:return e=t.sent,t.next=5,U(e[0].theme_supports);case 5:case"end":return t.stop()}},le,this)}function me(e){var t;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,I({path:Object(w.addQueryArgs)("/oembed/1.0/proxy",{url:e})});case 3:return t=n.sent,n.next=6,C(e,t);case 6:n.next=12;break;case 8:return n.prev=8,n.t0=n.catch(0),n.next=12,C(e,!1);case 12:case"end":return n.stop()}},pe,this,[[0,8]])}function we(){var e,t;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,I({path:"/wp/v2/media",method:"OPTIONS",parse:!1});case 2:return e=n.sent,t=Object(d.hasIn)(e,["headers","get"])?e.headers.get("allow"):Object(d.get)(e,["headers","Allow"],""),n.next=6,D(Object(d.includes)(t,"POST"));case 6:case"end":return n.stop()}},he,this)}ye.shouldInvalidate=function(e,t,n){return"RECEIVE_ITEMS"===e.type&&e.invalidateCache&&t===e.kind&&n===e.name};var Oe=K.reduce(function(e,t){var n=t.kind,r=t.name;return e[H(n,r)]=function(e,t){return re(e,n,r,t)},e[H(n,r,"get",!0)]=function(e){for(var t=arguments.length,u=new Array(t>1?t-1:0),o=1;o<t;o++)u[o-1]=arguments[o];return ie.apply(i,[e,n,r].concat(u))},e},{}),Ee=K.reduce(function(e,t){var n=t.kind,r=t.name;e[H(n,r)]=function(e){return be(n,r,e)};var i=H(n,r,"get",!0);return e[i]=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return ye.apply(u,[n,r].concat(t))},e[i].shouldInvalidate=function(e){for(var t,i=arguments.length,u=new Array(i>1?i-1:0),o=1;o<i;o++)u[o-1]=arguments[o];return(t=ye).shouldInvalidate.apply(t,[e,n,r].concat(u))},e},{}),je=K.reduce(function(e,t){var n=t.kind,r=t.name;return e[H(n,r,"save")]=function(e){return N(n,r,e)},e},{});Object(a.registerStore)(J,{reducer:X,controls:P,actions:Object(o.a)({},r,je),selectors:Object(o.a)({},i,Oe),resolvers:Object(o.a)({},u,Ee)})},31:function(e,t,n){"use strict";var r,i;function u(e){return[e]}function o(e){return!!e&&"object"==typeof e}function a(){var e={clear:function(){e.head=null}};return e}function c(e,t,n){var r;if(e.length!==t.length)return!1;for(r=n;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}r={},i="undefined"!=typeof WeakMap,t.a=function(e,t){var n,s;function f(){n=i?new WeakMap:a()}function d(){var n,r,i,u,o,a=arguments.length;for(u=new Array(a),i=0;i<a;i++)u[i]=arguments[i];for(o=t.apply(null,u),(n=s(o)).isUniqueByDependants||(n.lastDependants&&!c(o,n.lastDependants,0)&&n.clear(),n.lastDependants=o),r=n.head;r;){if(c(r.args,u,1))return r!==n.head&&(r.prev.next=r.next,r.next&&(r.next.prev=r.prev),r.next=n.head,r.prev=null,n.head.prev=r,n.head=r),r.val;r=r.next}return r={val:e.apply(null,u)},u[0]=null,r.args=u,n.head&&(n.head.prev=r,r.next=n.head),n.head=r,r.val}return t||(t=u),s=i?function(e){var t,i,u,c,s=n,f=!0;for(t=0;t<e.length;t++){if(!o(i=e[t])){f=!1;break}s.has(i)?s=s.get(i):(u=new WeakMap,s.set(i,u),s=u)}return s.has(r)||((c=a()).isUniqueByDependants=f,s.set(r,c)),s.get(r)}:function(){return n},d.getDependants=t,d.clear=f,f(),d}},33:function(e,t,n){"use strict";function r(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}n.d(t,"a",function(){return r})},35:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",function(){return r})},36:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}n.d(t,"a",function(){return r})},5:function(e,t){!function(){e.exports=this.wp.data}()},51:function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},62:function(e,t,n){"use strict";n.d(t,"c",function(){return a}),n.d(t,"b",function(){return s}),n.d(t,"a",function(){return d});var r=n(67),i=function(){return Math.random().toString(36).substring(7).split("").join(".")},u={INIT:"@@redux/INIT"+i(),REPLACE:"@@redux/REPLACE"+i(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+i()}};function o(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function a(e,t,n){var i;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function");if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(a)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var c=e,s=t,f=[],d=f,l=!1;function p(){d===f&&(d=f.slice())}function h(){if(l)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return s}function v(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(l)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");var t=!0;return p(),d.push(e),function(){if(t){if(l)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");t=!1,p();var n=d.indexOf(e);d.splice(n,1)}}}function b(e){if(!o(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(l)throw new Error("Reducers may not dispatch actions.");try{l=!0,s=c(s,e)}finally{l=!1}for(var t=f=d,n=0;n<t.length;n++){(0,t[n])()}return e}return b({type:u.INIT}),(i={dispatch:b,subscribe:v,getState:h,replaceReducer:function(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");c=e,b({type:u.REPLACE})}})[r.a]=function(){var e,t=v;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function n(){e.next&&e.next(h())}return n(),{unsubscribe:t(n)}}})[r.a]=function(){return this},e},i}function c(e,t){var n=t&&t.type;return"Given "+(n&&'action "'+String(n)+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function s(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];0,"function"==typeof e[i]&&(n[i]=e[i])}var o,a=Object.keys(n);try{!function(e){Object.keys(e).forEach(function(t){var n=e[t];if(void 0===n(void 0,{type:u.INIT}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===n(void 0,{type:u.PROBE_UNKNOWN_ACTION()}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+u.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')})}(n)}catch(e){o=e}return function(e,t){if(void 0===e&&(e={}),o)throw o;for(var r=!1,i={},u=0;u<a.length;u++){var s=a[u],f=n[s],d=e[s],l=f(d,t);if(void 0===l){var p=c(s,t);throw new Error(p)}i[s]=l,r=r||l!==d}return r?i:e}}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},i={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},u=t.map(function(e){return e(i)});return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){f(e,t,n[t])})}return e}({},n,{dispatch:r=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}.apply(void 0,u)(n.dispatch)})}}}},66:function(e,t,n){"use strict";function r(e){return(r="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 i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){var n=e._map,r=e._arrayTreeMap,i=e._objectTreeMap;if(n.has(t))return n.get(t);for(var u=Object.keys(t).sort(),o=Array.isArray(t)?r:i,a=0;a<u.length;a++){var c=u[a];if(void 0===(o=o.get(c)))return;var s=t[c];if(void 0===(o=o.get(s)))return}var f=o.get("_ekm_value");return f?(n.delete(f[0]),f[0]=t,o.set("_ekm_value",f),n.set(t,f),f):void 0}var o=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 n=[];t.forEach(function(e,t){n.push([t,e])}),t=n}if(null!=t)for(var r=0;r<t.length;r++)this.set(t[r][0],t[r][1])}return function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(e,[{key:"set",value:function(t,n){if(null===t||"object"!==r(t))return this._map.set(t,n),this;for(var i=Object.keys(t).sort(),u=[t,n],o=Array.isArray(t)?this._arrayTreeMap:this._objectTreeMap,a=0;a<i.length;a++){var c=i[a];o.has(c)||o.set(c,new e),o=o.get(c);var s=t[c];o.has(s)||o.set(s,new e),o=o.get(s)}var f=o.get("_ekm_value");return f&&this._map.delete(f[0]),o.set("_ekm_value",u),this._map.set(t,u),this}},{key:"get",value:function(e){if(null===e||"object"!==r(e))return this._map.get(e);var t=u(this,e);return t?t[1]:void 0}},{key:"has",value:function(e){return null===e||"object"!==r(e)?this._map.has(e):void 0!==u(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,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;this._map.forEach(function(i,u){null!==u&&"object"===r(u)&&(i=i[1]),e.call(n,i,u,t)})}},{key:"clear",value:function(){this._map=new Map,this._arrayTreeMap=new Map,this._objectTreeMap=new Map}},{key:"size",get:function(){return this._map.size}}]),e}();e.exports=o},67:function(e,t,n){"use strict";(function(e,r){var i,u=n(85);i="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:r;var o=Object(u.a)(i);t.a=o}).call(this,n(51),n(120)(e))},8:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(15);function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),i.forEach(function(t){Object(r.a)(e,t,n[t])})}return e}},85:function(e,t,n){"use strict";function r(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}n.d(t,"a",function(){return r})}});