: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
* This is optional and can be used to override the default settings.
* @param {Element} [props.children] Children elements for which the BlockEditorProvider context should apply.
* __unstableTemplate={ template }
* @return {JSX.Element} The rendered EditorProvider component.
function EditorProvider(props) {
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ExperimentalEditorProvider, {
BlockEditorProviderComponent: external_wp_blockEditor_namespaceObject.BlockEditorProvider,
/* harmony default export */ const provider = (EditorProvider);
;// CONCATENATED MODULE: external ["wp","serverSideRender"]
const external_wp_serverSideRender_namespaceObject = window["wp"]["serverSideRender"];
var external_wp_serverSideRender_default = /*#__PURE__*/__webpack_require__.n(external_wp_serverSideRender_namespaceObject);
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/deprecated.js
// Block Creation Components.
function deprecateComponent(name, Wrapped, staticsToHoist = []) {
const Component = (0,external_wp_element_namespaceObject.forwardRef)((props, ref) => {
external_wp_deprecated_default()('wp.editor.' + name, {
alternative: 'wp.blockEditor.' + name,
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Wrapped, {
staticsToHoist.forEach(staticName => {
Component[staticName] = deprecateComponent(name + '.' + staticName, Wrapped[staticName]);
function deprecateFunction(name, func) {
external_wp_deprecated_default()('wp.editor.' + name, {
alternative: 'wp.blockEditor.' + name,
* @deprecated since 5.3, use `wp.blockEditor.RichText` instead.
const RichText = deprecateComponent('RichText', external_wp_blockEditor_namespaceObject.RichText, ['Content']);
RichText.isEmpty = deprecateFunction('RichText.isEmpty', external_wp_blockEditor_namespaceObject.RichText.isEmpty);
* @deprecated since 5.3, use `wp.blockEditor.Autocomplete` instead.
const Autocomplete = deprecateComponent('Autocomplete', external_wp_blockEditor_namespaceObject.Autocomplete);
* @deprecated since 5.3, use `wp.blockEditor.AlignmentToolbar` instead.
const AlignmentToolbar = deprecateComponent('AlignmentToolbar', external_wp_blockEditor_namespaceObject.AlignmentToolbar);
* @deprecated since 5.3, use `wp.blockEditor.BlockAlignmentToolbar` instead.
const BlockAlignmentToolbar = deprecateComponent('BlockAlignmentToolbar', external_wp_blockEditor_namespaceObject.BlockAlignmentToolbar);
* @deprecated since 5.3, use `wp.blockEditor.BlockControls` instead.
const BlockControls = deprecateComponent('BlockControls', external_wp_blockEditor_namespaceObject.BlockControls, ['Slot']);
* @deprecated since 5.3, use `wp.blockEditor.BlockEdit` instead.
const BlockEdit = deprecateComponent('BlockEdit', external_wp_blockEditor_namespaceObject.BlockEdit);
* @deprecated since 5.3, use `wp.blockEditor.BlockEditorKeyboardShortcuts` instead.
const BlockEditorKeyboardShortcuts = deprecateComponent('BlockEditorKeyboardShortcuts', external_wp_blockEditor_namespaceObject.BlockEditorKeyboardShortcuts);
* @deprecated since 5.3, use `wp.blockEditor.BlockFormatControls` instead.
const BlockFormatControls = deprecateComponent('BlockFormatControls', external_wp_blockEditor_namespaceObject.BlockFormatControls, ['Slot']);
* @deprecated since 5.3, use `wp.blockEditor.BlockIcon` instead.
const BlockIcon = deprecateComponent('BlockIcon', external_wp_blockEditor_namespaceObject.BlockIcon);
* @deprecated since 5.3, use `wp.blockEditor.BlockInspector` instead.
const BlockInspector = deprecateComponent('BlockInspector', external_wp_blockEditor_namespaceObject.BlockInspector);
* @deprecated since 5.3, use `wp.blockEditor.BlockList` instead.
const BlockList = deprecateComponent('BlockList', external_wp_blockEditor_namespaceObject.BlockList);
* @deprecated since 5.3, use `wp.blockEditor.BlockMover` instead.
const BlockMover = deprecateComponent('BlockMover', external_wp_blockEditor_namespaceObject.BlockMover);
* @deprecated since 5.3, use `wp.blockEditor.BlockNavigationDropdown` instead.
const BlockNavigationDropdown = deprecateComponent('BlockNavigationDropdown', external_wp_blockEditor_namespaceObject.BlockNavigationDropdown);
* @deprecated since 5.3, use `wp.blockEditor.BlockSelectionClearer` instead.
const BlockSelectionClearer = deprecateComponent('BlockSelectionClearer', external_wp_blockEditor_namespaceObject.BlockSelectionClearer);
* @deprecated since 5.3, use `wp.blockEditor.BlockSettingsMenu` instead.
const BlockSettingsMenu = deprecateComponent('BlockSettingsMenu', external_wp_blockEditor_namespaceObject.BlockSettingsMenu);
* @deprecated since 5.3, use `wp.blockEditor.BlockTitle` instead.
const BlockTitle = deprecateComponent('BlockTitle', external_wp_blockEditor_namespaceObject.BlockTitle);
* @deprecated since 5.3, use `wp.blockEditor.BlockToolbar` instead.
const BlockToolbar = deprecateComponent('BlockToolbar', external_wp_blockEditor_namespaceObject.BlockToolbar);
* @deprecated since 5.3, use `wp.blockEditor.ColorPalette` instead.
const ColorPalette = deprecateComponent('ColorPalette', external_wp_blockEditor_namespaceObject.ColorPalette);
* @deprecated since 5.3, use `wp.blockEditor.ContrastChecker` instead.
const ContrastChecker = deprecateComponent('ContrastChecker', external_wp_blockEditor_namespaceObject.ContrastChecker);
* @deprecated since 5.3, use `wp.blockEditor.CopyHandler` instead.
const CopyHandler = deprecateComponent('CopyHandler', external_wp_blockEditor_namespaceObject.CopyHandler);
* @deprecated since 5.3, use `wp.blockEditor.DefaultBlockAppender` instead.
const DefaultBlockAppender = deprecateComponent('DefaultBlockAppender', external_wp_blockEditor_namespaceObject.DefaultBlockAppender);
* @deprecated since 5.3, use `wp.blockEditor.FontSizePicker` instead.
const FontSizePicker = deprecateComponent('FontSizePicker', external_wp_blockEditor_namespaceObject.FontSizePicker);
* @deprecated since 5.3, use `wp.blockEditor.Inserter` instead.
const Inserter = deprecateComponent('Inserter', external_wp_blockEditor_namespaceObject.Inserter);
* @deprecated since 5.3, use `wp.blockEditor.InnerBlocks` instead.
const InnerBlocks = deprecateComponent('InnerBlocks', external_wp_blockEditor_namespaceObject.InnerBlocks, ['ButtonBlockAppender', 'DefaultBlockAppender', 'Content']);
* @deprecated since 5.3, use `wp.blockEditor.InspectorAdvancedControls` instead.
const InspectorAdvancedControls = deprecateComponent('InspectorAdvancedControls', external_wp_blockEditor_namespaceObject.InspectorAdvancedControls, ['Slot']);
* @deprecated since 5.3, use `wp.blockEditor.InspectorControls` instead.
const InspectorControls = deprecateComponent('InspectorControls', external_wp_blockEditor_namespaceObject.InspectorControls, ['Slot']);
* @deprecated since 5.3, use `wp.blockEditor.PanelColorSettings` instead.
const PanelColorSettings = deprecateComponent('PanelColorSettings', external_wp_blockEditor_namespaceObject.PanelColorSettings);
* @deprecated since 5.3, use `wp.blockEditor.PlainText` instead.
const PlainText = deprecateComponent('PlainText', external_wp_blockEditor_namespaceObject.PlainText);
* @deprecated since 5.3, use `wp.blockEditor.RichTextShortcut` instead.
const RichTextShortcut = deprecateComponent('RichTextShortcut', external_wp_blockEditor_namespaceObject.RichTextShortcut);
* @deprecated since 5.3, use `wp.blockEditor.RichTextToolbarButton` instead.
const RichTextToolbarButton = deprecateComponent('RichTextToolbarButton', external_wp_blockEditor_namespaceObject.RichTextToolbarButton);
* @deprecated since 5.3, use `wp.blockEditor.__unstableRichTextInputEvent` instead.
const __unstableRichTextInputEvent = deprecateComponent('__unstableRichTextInputEvent', external_wp_blockEditor_namespaceObject.__unstableRichTextInputEvent);
* @deprecated since 5.3, use `wp.blockEditor.MediaPlaceholder` instead.
const MediaPlaceholder = deprecateComponent('MediaPlaceholder', external_wp_blockEditor_namespaceObject.MediaPlaceholder);
* @deprecated since 5.3, use `wp.blockEditor.MediaUpload` instead.
const MediaUpload = deprecateComponent('MediaUpload', external_wp_blockEditor_namespaceObject.MediaUpload);
* @deprecated since 5.3, use `wp.blockEditor.MediaUploadCheck` instead.
const MediaUploadCheck = deprecateComponent('MediaUploadCheck', external_wp_blockEditor_namespaceObject.MediaUploadCheck);
* @deprecated since 5.3, use `wp.blockEditor.MultiSelectScrollIntoView` instead.
const MultiSelectScrollIntoView = deprecateComponent('MultiSelectScrollIntoView', external_wp_blockEditor_namespaceObject.MultiSelectScrollIntoView);
* @deprecated since 5.3, use `wp.blockEditor.NavigableToolbar` instead.
const NavigableToolbar = deprecateComponent('NavigableToolbar', external_wp_blockEditor_namespaceObject.NavigableToolbar);
* @deprecated since 5.3, use `wp.blockEditor.ObserveTyping` instead.
const ObserveTyping = deprecateComponent('ObserveTyping', external_wp_blockEditor_namespaceObject.ObserveTyping);
* @deprecated since 5.3, use `wp.blockEditor.SkipToSelectedBlock` instead.
const SkipToSelectedBlock = deprecateComponent('SkipToSelectedBlock', external_wp_blockEditor_namespaceObject.SkipToSelectedBlock);
* @deprecated since 5.3, use `wp.blockEditor.URLInput` instead.
const URLInput = deprecateComponent('URLInput', external_wp_blockEditor_namespaceObject.URLInput);
* @deprecated since 5.3, use `wp.blockEditor.URLInputButton` instead.
const URLInputButton = deprecateComponent('URLInputButton', external_wp_blockEditor_namespaceObject.URLInputButton);
* @deprecated since 5.3, use `wp.blockEditor.URLPopover` instead.
const URLPopover = deprecateComponent('URLPopover', external_wp_blockEditor_namespaceObject.URLPopover);
* @deprecated since 5.3, use `wp.blockEditor.Warning` instead.
const Warning = deprecateComponent('Warning', external_wp_blockEditor_namespaceObject.Warning);
* @deprecated since 5.3, use `wp.blockEditor.WritingFlow` instead.
const WritingFlow = deprecateComponent('WritingFlow', external_wp_blockEditor_namespaceObject.WritingFlow);
* @deprecated since 5.3, use `wp.blockEditor.createCustomColorsHOC` instead.
const createCustomColorsHOC = deprecateFunction('createCustomColorsHOC', external_wp_blockEditor_namespaceObject.createCustomColorsHOC);
* @deprecated since 5.3, use `wp.blockEditor.getColorClassName` instead.
const getColorClassName = deprecateFunction('getColorClassName', external_wp_blockEditor_namespaceObject.getColorClassName);
* @deprecated since 5.3, use `wp.blockEditor.getColorObjectByAttributeValues` instead.
const getColorObjectByAttributeValues = deprecateFunction('getColorObjectByAttributeValues', external_wp_blockEditor_namespaceObject.getColorObjectByAttributeValues);
* @deprecated since 5.3, use `wp.blockEditor.getColorObjectByColorValue` instead.
const getColorObjectByColorValue = deprecateFunction('getColorObjectByColorValue', external_wp_blockEditor_namespaceObject.getColorObjectByColorValue);
* @deprecated since 5.3, use `wp.blockEditor.getFontSize` instead.
const getFontSize = deprecateFunction('getFontSize', external_wp_blockEditor_namespaceObject.getFontSize);
* @deprecated since 5.3, use `wp.blockEditor.getFontSizeClass` instead.
const getFontSizeClass = deprecateFunction('getFontSizeClass', external_wp_blockEditor_namespaceObject.getFontSizeClass);
* @deprecated since 5.3, use `wp.blockEditor.createCustomColorsHOC` instead.
const withColorContext = deprecateFunction('withColorContext', external_wp_blockEditor_namespaceObject.withColorContext);
* @deprecated since 5.3, use `wp.blockEditor.withColors` instead.
const withColors = deprecateFunction('withColors', external_wp_blockEditor_namespaceObject.withColors);
* @deprecated since 5.3, use `wp.blockEditor.withFontSizes` instead.
const withFontSizes = deprecateFunction('withFontSizes', external_wp_blockEditor_namespaceObject.withFontSizes);
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/index.js
// Block Creation Components.
// Post Related Components.
// State Related Components.
const VisualEditorGlobalKeyboardShortcuts = EditorKeyboardShortcuts;
const TextEditorGlobalKeyboardShortcuts = EditorKeyboardShortcuts;
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/utils/url.js
* Performs some basic cleanup of a string for use as a post slug
* This replicates some of what sanitize_title() does in WordPress core, but
* is only designed to approximate what the slug will be.
* Converts Latin-1 Supplement and Latin Extended-A letters to basic Latin letters.
* Removes combining diacritical marks. Converts whitespace, periods,
* and forward slashes to hyphens. Removes any remaining non-word characters
* except hyphens and underscores. Converts remaining string to lowercase.
* It does not account for octets, HTML entities, or other encoded characters.
* @param {string} string Title or slug to be processed
* @return {string} Processed string
function cleanForSlug(string) {
external_wp_deprecated_default()('wp.editor.cleanForSlug', {
alternative: 'wp.url.cleanForSlug'
return (0,external_wp_url_namespaceObject.cleanForSlug)(string);
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/utils/index.js
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/editor-interface/content-slot-fill.js
} = unlock(external_wp_components_namespaceObject.privateApis);
const SLOT_FILL_NAME = 'EditCanvasContainerSlot';
const EditorContentSlotFill = createPrivateSlotFill(SLOT_FILL_NAME);
/* harmony default export */ const content_slot_fill = (EditorContentSlotFill);
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/header/back-button.js
// Keeping an old name for backward compatibility.
const slotName = '__experimentalMainDashboardButton';
} = (0,external_wp_components_namespaceObject.createSlotFill)(slotName);
const BackButton = back_button_Fill;
const BackButtonSlot = ({
const fills = (0,external_wp_components_namespaceObject.__experimentalUseSlotFills)(slotName);
const hasFills = Boolean(fills && fills.length);
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(back_button_Slot, {
length: !fills ? 0 : fills.length
BackButton.Slot = BackButtonSlot;
/* harmony default export */ const back_button = (BackButton);
;// 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)