: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
// do not edit .js files directly - edit src/index.jst
var envHasBigInt64Array = typeof BigInt64Array !== 'undefined';
module.exports = function equal(a, b) {
if (a === b) return true;
if (a && b && typeof a == 'object' && typeof b == 'object') {
if (a.constructor !== b.constructor) return false;
if (length != b.length) return false;
for (i = length; i-- !== 0;)
if (!equal(a[i], b[i])) return false;
if ((a instanceof Map) && (b instanceof Map)) {
if (a.size !== b.size) return false;
if (!b.has(i[0])) return false;
if (!equal(i[1], b.get(i[0]))) return false;
if ((a instanceof Set) && (b instanceof Set)) {
if (a.size !== b.size) return false;
if (!b.has(i[0])) return false;
if (ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) {
if (length != b.length) return false;
for (i = length; i-- !== 0;)
if (a[i] !== b[i]) return false;
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
if (length !== Object.keys(b).length) return false;
for (i = length; i-- !== 0;)
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
for (i = length; i-- !== 0;) {
if (!equal(a[key], b[key])) return false;
// true if both NaN, false otherwise
module.exports = window["wp"]["isShallowEqual"];
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ var cachedModule = __webpack_module_cache__[moduleId];
/******/ if (cachedModule !== undefined) {
/******/ return cachedModule.exports;
/******/ // Create a new module (and put it into the cache)
/******/ var module = __webpack_module_cache__[moduleId] = {
/******/ // no module.id needed
/******/ // no module.loaded needed
/******/ // Execute the module function
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
/******/ // Return the exports of the module
/******/ return module.exports;
/************************************************************************/
/******/ /* webpack/runtime/compat get default export */
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = (module) => {
/******/ var getter = module && module.__esModule ?
/******/ () => (module['default']) :
/******/ __webpack_require__.d(getter, { a: getter });
/******/ /* webpack/runtime/define property getters */
/******/ // define getter functions for harmony exports
/******/ __webpack_require__.d = (exports, definition) => {
/******/ for(var key in definition) {
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
/******/ /* webpack/runtime/hasOwnProperty shorthand */
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
/******/ /* webpack/runtime/make namespace object */
/******/ // define __esModule on exports
/******/ __webpack_require__.r = (exports) => {
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ Object.defineProperty(exports, '__esModule', { value: true });
/************************************************************************/
var __webpack_exports__ = {};
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
__webpack_require__.r(__webpack_exports__);
__webpack_require__.d(__webpack_exports__, {
EntityProvider: () => (/* reexport */ EntityProvider),
__experimentalFetchLinkSuggestions: () => (/* reexport */ _experimental_fetch_link_suggestions),
__experimentalFetchUrlData: () => (/* reexport */ _experimental_fetch_url_data),
__experimentalUseEntityRecord: () => (/* reexport */ __experimentalUseEntityRecord),
__experimentalUseEntityRecords: () => (/* reexport */ __experimentalUseEntityRecords),
__experimentalUseResourcePermissions: () => (/* reexport */ __experimentalUseResourcePermissions),
fetchBlockPatterns: () => (/* reexport */ fetchBlockPatterns),
store: () => (/* binding */ store),
useEntityBlockEditor: () => (/* reexport */ useEntityBlockEditor),
useEntityId: () => (/* reexport */ useEntityId),
useEntityProp: () => (/* reexport */ useEntityProp),
useEntityRecord: () => (/* reexport */ useEntityRecord),
useEntityRecords: () => (/* reexport */ useEntityRecords),
useResourcePermissions: () => (/* reexport */ useResourcePermissions)
// NAMESPACE OBJECT: ./node_modules/@wordpress/core-data/build-module/actions.js
var build_module_actions_namespaceObject = {};
__webpack_require__.r(build_module_actions_namespaceObject);
__webpack_require__.d(build_module_actions_namespaceObject, {
__experimentalBatch: () => (__experimentalBatch),
__experimentalReceiveCurrentGlobalStylesId: () => (__experimentalReceiveCurrentGlobalStylesId),
__experimentalReceiveThemeBaseGlobalStyles: () => (__experimentalReceiveThemeBaseGlobalStyles),
__experimentalReceiveThemeGlobalStyleVariations: () => (__experimentalReceiveThemeGlobalStyleVariations),
__experimentalSaveSpecifiedEntityEdits: () => (__experimentalSaveSpecifiedEntityEdits),
__unstableCreateUndoLevel: () => (__unstableCreateUndoLevel),
addEntities: () => (addEntities),
deleteEntityRecord: () => (deleteEntityRecord),
editEntityRecord: () => (editEntityRecord),
receiveAutosaves: () => (receiveAutosaves),
receiveCurrentTheme: () => (receiveCurrentTheme),
receiveCurrentUser: () => (receiveCurrentUser),
receiveDefaultTemplateId: () => (receiveDefaultTemplateId),
receiveEmbedPreview: () => (receiveEmbedPreview),
receiveEntityRecords: () => (receiveEntityRecords),
receiveNavigationFallbackId: () => (receiveNavigationFallbackId),
receiveRevisions: () => (receiveRevisions),
receiveThemeGlobalStyleRevisions: () => (receiveThemeGlobalStyleRevisions),
receiveThemeSupports: () => (receiveThemeSupports),
receiveUploadPermissions: () => (receiveUploadPermissions),
receiveUserPermission: () => (receiveUserPermission),
receiveUserQuery: () => (receiveUserQuery),
saveEditedEntityRecord: () => (saveEditedEntityRecord),
saveEntityRecord: () => (saveEntityRecord),
// NAMESPACE OBJECT: ./node_modules/@wordpress/core-data/build-module/selectors.js
var build_module_selectors_namespaceObject = {};
__webpack_require__.r(build_module_selectors_namespaceObject);
__webpack_require__.d(build_module_selectors_namespaceObject, {
__experimentalGetCurrentGlobalStylesId: () => (__experimentalGetCurrentGlobalStylesId),
__experimentalGetCurrentThemeBaseGlobalStyles: () => (__experimentalGetCurrentThemeBaseGlobalStyles),
__experimentalGetCurrentThemeGlobalStylesVariations: () => (__experimentalGetCurrentThemeGlobalStylesVariations),
__experimentalGetDirtyEntityRecords: () => (__experimentalGetDirtyEntityRecords),
__experimentalGetEntitiesBeingSaved: () => (__experimentalGetEntitiesBeingSaved),
__experimentalGetEntityRecordNoResolver: () => (__experimentalGetEntityRecordNoResolver),
__experimentalGetTemplateForLink: () => (__experimentalGetTemplateForLink),
canUser: () => (canUser),
canUserEditEntityRecord: () => (canUserEditEntityRecord),
getAuthors: () => (getAuthors),
getAutosave: () => (getAutosave),
getAutosaves: () => (getAutosaves),
getBlockPatternCategories: () => (getBlockPatternCategories),
getBlockPatterns: () => (getBlockPatterns),
getCurrentTheme: () => (getCurrentTheme),
getCurrentThemeGlobalStylesRevisions: () => (getCurrentThemeGlobalStylesRevisions),
getCurrentUser: () => (getCurrentUser),
getDefaultTemplateId: () => (getDefaultTemplateId),
getEditedEntityRecord: () => (getEditedEntityRecord),
getEmbedPreview: () => (getEmbedPreview),
getEntitiesByKind: () => (getEntitiesByKind),
getEntitiesConfig: () => (getEntitiesConfig),
getEntity: () => (getEntity),
getEntityConfig: () => (getEntityConfig),
getEntityRecord: () => (getEntityRecord),
getEntityRecordEdits: () => (getEntityRecordEdits),
getEntityRecordNonTransientEdits: () => (getEntityRecordNonTransientEdits),
getEntityRecords: () => (getEntityRecords),
getEntityRecordsTotalItems: () => (getEntityRecordsTotalItems),
getEntityRecordsTotalPages: () => (getEntityRecordsTotalPages),
getLastEntityDeleteError: () => (getLastEntityDeleteError),
getLastEntitySaveError: () => (getLastEntitySaveError),
getRawEntityRecord: () => (getRawEntityRecord),
getRedoEdit: () => (getRedoEdit),
getReferenceByDistinctEdits: () => (getReferenceByDistinctEdits),
getRevision: () => (getRevision),
getRevisions: () => (getRevisions),
getThemeSupports: () => (getThemeSupports),
getUndoEdit: () => (getUndoEdit),
getUserPatternCategories: () => (getUserPatternCategories),
getUserQueryResults: () => (getUserQueryResults),
hasEditsForEntityRecord: () => (hasEditsForEntityRecord),
hasEntityRecords: () => (hasEntityRecords),
hasFetchedAutosaves: () => (hasFetchedAutosaves),
hasRedo: () => (hasRedo),
hasUndo: () => (hasUndo),
isAutosavingEntityRecord: () => (isAutosavingEntityRecord),
isDeletingEntityRecord: () => (isDeletingEntityRecord),
isPreviewEmbedFallback: () => (isPreviewEmbedFallback),
isRequestingEmbedPreview: () => (isRequestingEmbedPreview),
isSavingEntityRecord: () => (isSavingEntityRecord)
// NAMESPACE OBJECT: ./node_modules/@wordpress/core-data/build-module/private-selectors.js
var private_selectors_namespaceObject = {};
__webpack_require__.r(private_selectors_namespaceObject);
__webpack_require__.d(private_selectors_namespaceObject, {
getBlockPatternsForPostType: () => (getBlockPatternsForPostType),
getNavigationFallbackId: () => (getNavigationFallbackId),
getUndoManager: () => (getUndoManager)
// NAMESPACE OBJECT: ./node_modules/@wordpress/core-data/build-module/resolvers.js
var resolvers_namespaceObject = {};
__webpack_require__.r(resolvers_namespaceObject);
__webpack_require__.d(resolvers_namespaceObject, {
__experimentalGetCurrentGlobalStylesId: () => (resolvers_experimentalGetCurrentGlobalStylesId),
__experimentalGetCurrentThemeBaseGlobalStyles: () => (resolvers_experimentalGetCurrentThemeBaseGlobalStyles),
__experimentalGetCurrentThemeGlobalStylesVariations: () => (resolvers_experimentalGetCurrentThemeGlobalStylesVariations),
__experimentalGetTemplateForLink: () => (resolvers_experimentalGetTemplateForLink),
canUser: () => (resolvers_canUser),
canUserEditEntityRecord: () => (resolvers_canUserEditEntityRecord),
getAuthors: () => (resolvers_getAuthors),
getAutosave: () => (resolvers_getAutosave),
getAutosaves: () => (resolvers_getAutosaves),
getBlockPatternCategories: () => (resolvers_getBlockPatternCategories),
getBlockPatterns: () => (resolvers_getBlockPatterns),
getCurrentTheme: () => (resolvers_getCurrentTheme),
getCurrentThemeGlobalStylesRevisions: () => (resolvers_getCurrentThemeGlobalStylesRevisions),
getCurrentUser: () => (resolvers_getCurrentUser),
getDefaultTemplateId: () => (resolvers_getDefaultTemplateId),
getEditedEntityRecord: () => (resolvers_getEditedEntityRecord),
getEmbedPreview: () => (resolvers_getEmbedPreview),
getEntityRecord: () => (resolvers_getEntityRecord),
getEntityRecords: () => (resolvers_getEntityRecords),
getNavigationFallbackId: () => (resolvers_getNavigationFallbackId),
getRawEntityRecord: () => (resolvers_getRawEntityRecord),
getRevision: () => (resolvers_getRevision),
getRevisions: () => (resolvers_getRevisions),
getThemeSupports: () => (resolvers_getThemeSupports),
getUserPatternCategories: () => (resolvers_getUserPatternCategories)
;// CONCATENATED MODULE: external ["wp","data"]
const external_wp_data_namespaceObject = window["wp"]["data"];
// EXTERNAL MODULE: ./node_modules/fast-deep-equal/es6/index.js
var es6 = __webpack_require__(7734);
var es6_default = /*#__PURE__*/__webpack_require__.n(es6);
;// CONCATENATED MODULE: external ["wp","compose"]
const external_wp_compose_namespaceObject = window["wp"]["compose"];
// EXTERNAL MODULE: ./node_modules/@wordpress/undo-manager/build-module/index.js
var build_module = __webpack_require__(6689);
;// CONCATENATED MODULE: ./node_modules/@wordpress/core-data/build-module/utils/if-matching-action.js
/** @typedef {import('../types').AnyFunction} AnyFunction */
* A higher-order reducer creator which invokes the original reducer only if
* the dispatching action matches the given predicate, **OR** if state is
* initializing (undefined).
* @param {AnyFunction} isMatch Function predicate for allowing reducer call.
* @return {AnyFunction} Higher-order reducer.
const ifMatchingAction = isMatch => reducer => (state, action) => {
if (state === undefined || isMatch(action)) {
return reducer(state, action);
/* harmony default export */ const if_matching_action = (ifMatchingAction);
;// CONCATENATED MODULE: ./node_modules/@wordpress/core-data/build-module/utils/replace-action.js
/** @typedef {import('../types').AnyFunction} AnyFunction */
* Higher-order reducer creator which substitutes the action object before
* passing to the original reducer.
* @param {AnyFunction} replacer Function mapping original action to replacement.
* @return {AnyFunction} Higher-order reducer.
const replaceAction = replacer => reducer => (state, action) => {
return reducer(state, replacer(action));
/* harmony default export */ const replace_action = (replaceAction);
;// CONCATENATED MODULE: ./node_modules/@wordpress/core-data/build-module/utils/conservative-map-item.js
* Given the current and next item entity record, returns the minimally "modified"
* result of the next item, preferring value references from the original item
* if equal. If all values match, the original item is returned.
* @param {Object} item Original item.
* @param {Object} nextItem Next item.
* @return {Object} Minimally modified merged item.
function conservativeMapItem(item, nextItem) {
// Return next item in its entirety if there is no original item.
for (const key in nextItem) {
if (es6_default()(item[key], nextItem[key])) {
result[key] = nextItem[key];
// Only at this point, backfill properties from the original item which
// weren't explicitly set into the result above. This is an optimization
// to allow `hasChanges` to return early.
for (const key in item) {
if (!result.hasOwnProperty(key)) {
;// CONCATENATED MODULE: ./node_modules/@wordpress/core-data/build-module/utils/on-sub-key.js
/** @typedef {import('../types').AnyFunction} AnyFunction */
* Higher-order reducer creator which creates a combined reducer object, keyed
* by a property on the action object.
* @param {string} actionProperty Action property by which to key object.
* @return {AnyFunction} Higher-order reducer.
const onSubKey = actionProperty => reducer => (state = {}, action) => {
// Retrieve subkey from action. Do not track if undefined; useful for cases
// where reducer is scoped by action shape.
const key = action[actionProperty];
// Avoid updating state if unchanged. Note that this also accounts for a
// reducer which returns undefined on a key which is not yet tracked.
const nextKeyState = reducer(state[key], action);
if (nextKeyState === state[key]) {
/* harmony default export */ const on_sub_key = (onSubKey);
;// CONCATENATED MODULE: ./node_modules/tslib/tslib.es6.mjs
/******************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
/* global Reflect, Promise, SuppressedError, Symbol */
var extendStatics = function(d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
return extendStatics(d, b);
function __extends(d, b) {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
var __assign = function() {
__assign = Object.assign || function __assign(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
return __assign.apply(this, arguments);
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
function __decorate(decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
function __param(paramIndex, decorator) {
return function (target, key) { decorator(target, key, paramIndex); }
function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;