mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-05 18:32:23 +01:00
6e4458c935
Props peterwilsoncc, desrosj. Fixes #53192. Built from https://develop.svn.wordpress.org/trunk@50940 git-svn-id: http://core.svn.wordpress.org/trunk@50549 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2 lines
10 KiB
JavaScript
2 lines
10 KiB
JavaScript
/*! This file is auto-generated */
|
|
this.wp=this.wp||{},this.wp.reduxRoutine=function(e){var n={};function t(r){if(n[r])return n[r].exports;var u=n[r]={i:r,l:!1,exports:{}};return e[r].call(u.exports,u,u.exports,t),u.l=!0,u.exports}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var u in e)t.d(r,u,function(n){return e[n]}.bind(null,u));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s="./node_modules/@wordpress/redux-routine/build-module/index.js")}({"./node_modules/@wordpress/redux-routine/build-module/index.js":function(e,n,t){"use strict";t.r(n),t.d(n,"default",(function(){return l}));var r=t("./node_modules/rungen/dist/index.js"),u=t("lodash"),o=t("./node_modules/is-promise/index.js"),i=t.n(o);function c(e){return Object(u.isPlainObject)(e)&&Object(u.isString)(e.type)}function s(e={},n){const t=Object(u.map)(e,(e,n)=>(t,r,u,o,s)=>{if(a=n,!c(l=t)||l.type!==a)return!1;var l,a;const f=e(t);return i()(f)?f.then(o,s):o(f),!0});t.push((e,t)=>!!c(e)&&(n(e),t(),!0));const o=Object(r.create)(t);return e=>new Promise((t,r)=>o(e,e=>{c(e)&&n(e),t(e)},r))}function l(e={}){return n=>{const t=s(e,n.dispatch);return e=>n=>{return(r=n)&&"function"==typeof r[Symbol.iterator]&&"function"==typeof r.next?t(n):e(n);var r}}}},"./node_modules/is-promise/index.js":function(e,n){function t(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}e.exports=t,e.exports.default=t},"./node_modules/rungen/dist/controls/async.js":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.race=n.join=n.fork=n.promise=void 0;var r=i(t("./node_modules/rungen/dist/utils/is.js")),u=t("./node_modules/rungen/dist/utils/helpers.js"),o=i(t("./node_modules/rungen/dist/utils/dispatcher.js"));function i(e){return e&&e.__esModule?e:{default:e}}var c=n.promise=function(e,n,t,u,o){return!!r.default.promise(e)&&(e.then(n,o),!0)},s=new Map,l=n.fork=function(e,n,t){if(!r.default.fork(e))return!1;var i=Symbol("fork"),c=(0,o.default)();s.set(i,c),t(e.iterator.apply(null,e.args),(function(e){return c.dispatch(e)}),(function(e){return c.dispatch((0,u.error)(e))}));var l=c.subscribe((function(){l(),s.delete(i)}));return n(i),!0},a=n.join=function(e,n,t,u,o){if(!r.default.join(e))return!1;var i,c=s.get(e.task);return c?i=c.subscribe((function(e){i(),n(e)})):o("join error : task not found"),!0},f=n.race=function(e,n,t,u,o){if(!r.default.race(e))return!1;var i,c=!1,s=function(e,t,r){c||(c=!0,e[t]=r,n(e))},l=function(e){c||o(e)};return r.default.array(e.competitors)?(i=e.competitors.map((function(){return!1})),e.competitors.forEach((function(e,n){t(e,(function(e){return s(i,n,e)}),l)}))):function(){var n=Object.keys(e.competitors).reduce((function(e,n){return e[n]=!1,e}),{});Object.keys(e.competitors).forEach((function(r){t(e.competitors[r],(function(e){return s(n,r,e)}),l)}))}(),!0};n.default=[c,l,a,f,function(e,n){if(!r.default.subscribe(e))return!1;if(!r.default.channel(e.channel))throw new Error('the first argument of "subscribe" must be a valid channel');var t=e.channel.subscribe((function(e){t&&t(),n(e)}));return!0}]},"./node_modules/rungen/dist/controls/builtin.js":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.iterator=n.array=n.object=n.error=n.any=void 0;var r,u=t("./node_modules/rungen/dist/utils/is.js"),o=(r=u)&&r.__esModule?r:{default:r};var i=n.any=function(e,n,t,r){return r(e),!0},c=n.error=function(e,n,t,r,u){return!!o.default.error(e)&&(u(e.error),!0)},s=n.object=function(e,n,t,r,u){if(!o.default.all(e)||!o.default.obj(e.value))return!1;var i={},c=Object.keys(e.value),s=0,l=!1;return c.map((function(n){t(e.value[n],(function(e){return function(e,n){l||(i[e]=n,++s===c.length&&r(i))}(n,e)}),(function(e){return function(e,n){l||(l=!0,u(n))}(0,e)}))})),!0},l=n.array=function(e,n,t,r,u){if(!o.default.all(e)||!o.default.array(e.value))return!1;var i=[],c=0,s=!1;return e.value.map((function(n,o){t(n,(function(n){return function(n,t){s||(i[n]=t,++c===e.value.length&&r(i))}(o,n)}),(function(e){return function(e,n){s||(s=!0,u(n))}(0,e)}))})),!0},a=n.iterator=function(e,n,t,r,u){return!!o.default.iterator(e)&&(t(e,n,u),!0)};n.default=[c,a,l,s,i]},"./node_modules/rungen/dist/controls/wrap.js":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.cps=n.call=void 0;var r,u=t("./node_modules/rungen/dist/utils/is.js"),o=(r=u)&&r.__esModule?r:{default:r};var i=n.call=function(e,n,t,r,u){if(!o.default.call(e))return!1;try{n(e.func.apply(e.context,e.args))}catch(e){u(e)}return!0},c=n.cps=function(e,n,t,r,u){var i;return!!o.default.cps(e)&&((i=e.func).call.apply(i,[null].concat(function(e){if(Array.isArray(e)){for(var n=0,t=Array(e.length);n<e.length;n++)t[n]=e[n];return t}return Array.from(e)}(e.args),[function(e,t){e?u(e):n(t)}])),!0)};n.default=[i,c]},"./node_modules/rungen/dist/create.js":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=o(t("./node_modules/rungen/dist/controls/builtin.js")),u=o(t("./node_modules/rungen/dist/utils/is.js"));function o(e){return e&&e.__esModule?e:{default:e}}function i(e){if(Array.isArray(e)){for(var n=0,t=Array(e.length);n<e.length;n++)t[n]=e[n];return t}return Array.from(e)}n.default=function(){var e=arguments.length<=0||void 0===arguments[0]?[]:arguments[0],n=[].concat(i(e),i(r.default)),t=function e(t){var r=arguments.length<=1||void 0===arguments[1]?function(){}:arguments[1],o=arguments.length<=2||void 0===arguments[2]?function(){}:arguments[2],i=function(t){var u=function(e){return function(n){try{var u=e?t.throw(n):t.next(n),c=u.value;if(u.done)return r(c);i(c)}catch(e){return o(e)}}},i=function t(r){n.some((function(n){return n(r,t,e,u(!1),u(!0))}))};u(!1)()},c=u.default.iterator(t)?t:regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t;case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))();i(c,r,o)};return t}},"./node_modules/rungen/dist/index.js":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.wrapControls=n.asyncControls=n.create=void 0;var r=t("./node_modules/rungen/dist/utils/helpers.js");Object.keys(r).forEach((function(e){"default"!==e&&Object.defineProperty(n,e,{enumerable:!0,get:function(){return r[e]}})}));var u=c(t("./node_modules/rungen/dist/create.js")),o=c(t("./node_modules/rungen/dist/controls/async.js")),i=c(t("./node_modules/rungen/dist/controls/wrap.js"));function c(e){return e&&e.__esModule?e:{default:e}}n.create=u.default,n.asyncControls=o.default,n.wrapControls=i.default},"./node_modules/rungen/dist/utils/dispatcher.js":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.default=function(){var e=[];return{subscribe:function(n){return e.push(n),function(){e=e.filter((function(e){return e!==n}))}},dispatch:function(n){e.slice().forEach((function(e){return e(n)}))}}}},"./node_modules/rungen/dist/utils/helpers.js":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.createChannel=n.subscribe=n.cps=n.apply=n.call=n.invoke=n.delay=n.race=n.join=n.fork=n.error=n.all=void 0;var r,u=t("./node_modules/rungen/dist/utils/keys.js"),o=(r=u)&&r.__esModule?r:{default:r};n.all=function(e){return{type:o.default.all,value:e}},n.error=function(e){return{type:o.default.error,error:e}},n.fork=function(e){for(var n=arguments.length,t=Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];return{type:o.default.fork,iterator:e,args:t}},n.join=function(e){return{type:o.default.join,task:e}},n.race=function(e){return{type:o.default.race,competitors:e}},n.delay=function(e){return new Promise((function(n){setTimeout((function(){return n(!0)}),e)}))},n.invoke=function(e){for(var n=arguments.length,t=Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];return{type:o.default.call,func:e,context:null,args:t}},n.call=function(e,n){for(var t=arguments.length,r=Array(t>2?t-2:0),u=2;u<t;u++)r[u-2]=arguments[u];return{type:o.default.call,func:e,context:n,args:r}},n.apply=function(e,n,t){return{type:o.default.call,func:e,context:n,args:t}},n.cps=function(e){for(var n=arguments.length,t=Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];return{type:o.default.cps,func:e,args:t}},n.subscribe=function(e){return{type:o.default.subscribe,channel:e}},n.createChannel=function(e){var n=[];return e((function(e){return n.forEach((function(n){return n(e)}))})),{subscribe:function(e){return n.push(e),function(){return n.splice(n.indexOf(e),1)}}}}},"./node_modules/rungen/dist/utils/is.js":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},o=t("./node_modules/rungen/dist/utils/keys.js"),i=(r=o)&&r.__esModule?r:{default:r};var c={obj:function(e){return"object"===(void 0===e?"undefined":u(e))&&!!e},all:function(e){return c.obj(e)&&e.type===i.default.all},error:function(e){return c.obj(e)&&e.type===i.default.error},array:Array.isArray,func:function(e){return"function"==typeof e},promise:function(e){return e&&c.func(e.then)},iterator:function(e){return e&&c.func(e.next)&&c.func(e.throw)},fork:function(e){return c.obj(e)&&e.type===i.default.fork},join:function(e){return c.obj(e)&&e.type===i.default.join},race:function(e){return c.obj(e)&&e.type===i.default.race},call:function(e){return c.obj(e)&&e.type===i.default.call},cps:function(e){return c.obj(e)&&e.type===i.default.cps},subscribe:function(e){return c.obj(e)&&e.type===i.default.subscribe},channel:function(e){return c.obj(e)&&c.func(e.subscribe)}};n.default=c},"./node_modules/rungen/dist/utils/keys.js":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={all:Symbol("all"),error:Symbol("error"),fork:Symbol("fork"),join:Symbol("join"),race:Symbol("race"),call:Symbol("call"),cps:Symbol("cps"),subscribe:Symbol("subscribe")};n.default=r},lodash:function(e,n){e.exports=window.lodash}}).default; |