(function() { "use strict"; var wp; (wp ||= {}).editor = (() => { var __create = Object.create; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __getProtoOf = Object.getPrototypeOf; var __hasOwnProp = Object.prototype.hasOwnProperty; var __require = /* @__PURE__ */ ((x2) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x2, { get: (a2, b2) => (typeof require !== "undefined" ? require : a2)[b2] }) : x2)(function(x2) { if (typeof require !== "undefined") return require.apply(this, arguments); throw Error('Dynamic require of "' + x2 + '" is not supported'); }); var __commonJS = (cb, mod) => function __require4() { return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; }; var __export = (target, all) => { for (var name2 in all) __defProp(target, name2, { get: all[name2], enumerable: true }); }; var __copyProps = (to2, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to2, key) && key !== except) __defProp(to2, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to2; }; var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( // If the importer is in node compatibility mode or this is not an ESM // file that has been converted to a CommonJS file using a Babel- // compatible transform (i.e. "__esModule" has not been set), then set // "default" to the CommonJS "module.exports" for node compatibility. isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod )); var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); // package-external:@wordpress/data var require_data = __commonJS({ "package-external:@wordpress/data"(exports, module) { module.exports = window.wp.data; } }); // package-external:@wordpress/core-data var require_core_data = __commonJS({ "package-external:@wordpress/core-data"(exports, module) { module.exports = window.wp.coreData; } }); // package-external:@wordpress/element var require_element = __commonJS({ "package-external:@wordpress/element"(exports, module) { module.exports = window.wp.element; } }); // package-external:@wordpress/compose var require_compose = __commonJS({ "package-external:@wordpress/compose"(exports, module) { module.exports = window.wp.compose; } }); // package-external:@wordpress/hooks var require_hooks = __commonJS({ "package-external:@wordpress/hooks"(exports, module) { module.exports = window.wp.hooks; } }); // package-external:@wordpress/block-editor var require_block_editor = __commonJS({ "package-external:@wordpress/block-editor"(exports, module) { module.exports = window.wp.blockEditor; } }); // package-external:@wordpress/blocks var require_blocks = __commonJS({ "package-external:@wordpress/blocks"(exports, module) { module.exports = window.wp.blocks; } }); // package-external:@wordpress/date var require_date = __commonJS({ "package-external:@wordpress/date"(exports, module) { module.exports = window.wp.date; } }); // package-external:@wordpress/url var require_url = __commonJS({ "package-external:@wordpress/url"(exports, module) { module.exports = window.wp.url; } }); // package-external:@wordpress/deprecated var require_deprecated = __commonJS({ "package-external:@wordpress/deprecated"(exports, module) { module.exports = window.wp.deprecated; } }); // package-external:@wordpress/preferences var require_preferences = __commonJS({ "package-external:@wordpress/preferences"(exports, module) { module.exports = window.wp.preferences; } }); // package-external:@wordpress/private-apis var require_private_apis = __commonJS({ "package-external:@wordpress/private-apis"(exports, module) { module.exports = window.wp.privateApis; } }); // package-external:@wordpress/style-engine var require_style_engine = __commonJS({ "package-external:@wordpress/style-engine"(exports, module) { module.exports = window.wp.styleEngine; } }); // package-external:@wordpress/i18n var require_i18n = __commonJS({ "package-external:@wordpress/i18n"(exports, module) { module.exports = window.wp.i18n; } }); // node_modules/fast-deep-equal/es6/index.js var require_es6 = __commonJS({ "node_modules/fast-deep-equal/es6/index.js"(exports, module) { "use strict"; module.exports = function equal(a2, b2) { if (a2 === b2) return true; if (a2 && b2 && typeof a2 == "object" && typeof b2 == "object") { if (a2.constructor !== b2.constructor) return false; var length2, i2, keys; if (Array.isArray(a2)) { length2 = a2.length; if (length2 != b2.length) return false; for (i2 = length2; i2-- !== 0; ) if (!equal(a2[i2], b2[i2])) return false; return true; } if (a2 instanceof Map && b2 instanceof Map) { if (a2.size !== b2.size) return false; for (i2 of a2.entries()) if (!b2.has(i2[0])) return false; for (i2 of a2.entries()) if (!equal(i2[1], b2.get(i2[0]))) return false; return true; } if (a2 instanceof Set && b2 instanceof Set) { if (a2.size !== b2.size) return false; for (i2 of a2.entries()) if (!b2.has(i2[0])) return false; return true; } if (ArrayBuffer.isView(a2) && ArrayBuffer.isView(b2)) { length2 = a2.length; if (length2 != b2.length) return false; for (i2 = length2; i2-- !== 0; ) if (a2[i2] !== b2[i2]) return false; return true; } if (a2.constructor === RegExp) return a2.source === b2.source && a2.flags === b2.flags; if (a2.valueOf !== Object.prototype.valueOf) return a2.valueOf() === b2.valueOf(); if (a2.toString !== Object.prototype.toString) return a2.toString() === b2.toString(); keys = Object.keys(a2); length2 = keys.length; if (length2 !== Object.keys(b2).length) return false; for (i2 = length2; i2-- !== 0; ) if (!Object.prototype.hasOwnProperty.call(b2, keys[i2])) return false; for (i2 = length2; i2-- !== 0; ) { var key = keys[i2]; if (!equal(a2[key], b2[key])) return false; } return true; } return a2 !== a2 && b2 !== b2; }; } }); // node_modules/deepmerge/dist/cjs.js var require_cjs = __commonJS({ "node_modules/deepmerge/dist/cjs.js"(exports, module) { "use strict"; var isMergeableObject = function isMergeableObject2(value) { return isNonNullObject(value) && !isSpecial(value); }; function isNonNullObject(value) { return !!value && typeof value === "object"; } function isSpecial(value) { var stringValue = Object.prototype.toString.call(value); return stringValue === "[object RegExp]" || stringValue === "[object Date]" || isReactElement(value); } var canUseSymbol = typeof Symbol === "function" && Symbol.for; var REACT_ELEMENT_TYPE = canUseSymbol ? /* @__PURE__ */ Symbol.for("react.element") : 60103; function isReactElement(value) { return value.$$typeof === REACT_ELEMENT_TYPE; } function emptyTarget(val) { return Array.isArray(val) ? [] : {}; } function cloneUnlessOtherwiseSpecified(value, options) { return options.clone !== false && options.isMergeableObject(value) ? deepmerge2(emptyTarget(value), value, options) : value; } function defaultArrayMerge(target, source, options) { return target.concat(source).map(function(element) { return cloneUnlessOtherwiseSpecified(element, options); }); } function getMergeFunction(key, options) { if (!options.customMerge) { return deepmerge2; } var customMerge = options.customMerge(key); return typeof customMerge === "function" ? customMerge : deepmerge2; } function getEnumerableOwnPropertySymbols(target) { return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(target).filter(function(symbol3) { return Object.propertyIsEnumerable.call(target, symbol3); }) : []; } function getKeys2(target) { return Object.keys(target).concat(getEnumerableOwnPropertySymbols(target)); } function propertyIsOnObject(object, property) { try { return property in object; } catch (_) { return false; } } function propertyIsUnsafe(target, key) { return propertyIsOnObject(target, key) && !(Object.hasOwnProperty.call(target, key) && Object.propertyIsEnumerable.call(target, key)); } function mergeObject(target, source, options) { var destination = {}; if (options.isMergeableObject(target)) { getKeys2(target).forEach(function(key) { destination[key] = cloneUnlessOtherwiseSpecified(target[key], options); }); } getKeys2(source).forEach(function(key) { if (propertyIsUnsafe(target, key)) { return; } if (propertyIsOnObject(target, key) && options.isMergeableObject(source[key])) { destination[key] = getMergeFunction(key, options)(target[key], source[key], options); } else { destination[key] = cloneUnlessOtherwiseSpecified(source[key], options); } }); return destination; } function deepmerge2(target, source, options) { options = options || {}; options.arrayMerge = options.arrayMerge || defaultArrayMerge; options.isMergeableObject = options.isMergeableObject || isMergeableObject; options.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified; var sourceIsArray = Array.isArray(source); var targetIsArray = Array.isArray(target); var sourceAndTargetTypesMatch = sourceIsArray === targetIsArray; if (!sourceAndTargetTypesMatch) { return cloneUnlessOtherwiseSpecified(source, options); } else if (sourceIsArray) { return options.arrayMerge(target, source, options); } else { return mergeObject(target, source, options); } } deepmerge2.all = function deepmergeAll(array, options) { if (!Array.isArray(array)) { throw new Error("first argument should be an array"); } return array.reduce(function(prev, next) { return deepmerge2(prev, next, options); }, {}); }; var deepmerge_1 = deepmerge2; module.exports = deepmerge_1; } }); // package-external:@wordpress/a11y var require_a11y = __commonJS({ "package-external:@wordpress/a11y"(exports, module) { module.exports = window.wp.a11y; } }); // package-external:@wordpress/api-fetch var require_api_fetch = __commonJS({ "package-external:@wordpress/api-fetch"(exports, module) { module.exports = window.wp.apiFetch; } }); // package-external:@wordpress/escape-html var require_escape_html = __commonJS({ "package-external:@wordpress/escape-html"(exports, module) { module.exports = window.wp.escapeHtml; } }); // package-external:@wordpress/warning var require_warning = __commonJS({ "package-external:@wordpress/warning"(exports, module) { module.exports = window.wp.warning; } }); // package-external:@wordpress/notices var require_notices = __commonJS({ "package-external:@wordpress/notices"(exports, module) { module.exports = window.wp.notices; } }); // package-external:@wordpress/html-entities var require_html_entities = __commonJS({ "package-external:@wordpress/html-entities"(exports, module) { module.exports = window.wp.htmlEntities; } }); // package-external:@wordpress/primitives var require_primitives = __commonJS({ "package-external:@wordpress/primitives"(exports, module) { module.exports = window.wp.primitives; } }); // vendor-external:react/jsx-runtime var require_jsx_runtime = __commonJS({ "vendor-external:react/jsx-runtime"(exports, module) { module.exports = window.ReactJSXRuntime; } }); // package-external:@wordpress/components var require_components = __commonJS({ "package-external:@wordpress/components"(exports, module) { module.exports = window.wp.components; } }); // vendor-external:react var require_react = __commonJS({ "vendor-external:react"(exports, module) { module.exports = window.React; } }); // vendor-external:react-dom var require_react_dom = __commonJS({ "vendor-external:react-dom"(exports, module) { module.exports = window.ReactDOM; } }); // node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js var require_use_sync_external_store_shim_development = __commonJS({ "node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js"(exports) { "use strict"; (function() { function is2(x2, y3) { return x2 === y3 && (0 !== x2 || 1 / x2 === 1 / y3) || x2 !== x2 && y3 !== y3; } function useSyncExternalStore$2(subscribe5, getSnapshot2) { didWarnOld18Alpha || void 0 === React208.startTransition || (didWarnOld18Alpha = true, console.error( "You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release." )); var value = getSnapshot2(); if (!didWarnUncachedGetSnapshot) { var cachedValue = getSnapshot2(); objectIs(value, cachedValue) || (console.error( "The result of getSnapshot should be cached to avoid an infinite loop" ), didWarnUncachedGetSnapshot = true); } cachedValue = useState178({ inst: { value, getSnapshot: getSnapshot2 } }); var inst = cachedValue[0].inst, forceUpdate = cachedValue[1]; useLayoutEffect21( function() { inst.value = value; inst.getSnapshot = getSnapshot2; checkIfSnapshotChanged(inst) && forceUpdate({ inst }); }, [subscribe5, value, getSnapshot2] ); useEffect138( function() { checkIfSnapshotChanged(inst) && forceUpdate({ inst }); return subscribe5(function() { checkIfSnapshotChanged(inst) && forceUpdate({ inst }); }); }, [subscribe5] ); useDebugValue2(value); return value; } function checkIfSnapshotChanged(inst) { var latestGetSnapshot = inst.getSnapshot; inst = inst.value; try { var nextValue = latestGetSnapshot(); return !objectIs(inst, nextValue); } catch (error2) { return true; } } function useSyncExternalStore$1(subscribe5, getSnapshot2) { return getSnapshot2(); } "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()); var React208 = require_react(), objectIs = "function" === typeof Object.is ? Object.is : is2, useState178 = React208.useState, useEffect138 = React208.useEffect, useLayoutEffect21 = React208.useLayoutEffect, useDebugValue2 = React208.useDebugValue, didWarnOld18Alpha = false, didWarnUncachedGetSnapshot = false, shim = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? useSyncExternalStore$1 : useSyncExternalStore$2; exports.useSyncExternalStore = void 0 !== React208.useSyncExternalStore ? React208.useSyncExternalStore : shim; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error()); })(); } }); // node_modules/use-sync-external-store/shim/index.js var require_shim = __commonJS({ "node_modules/use-sync-external-store/shim/index.js"(exports, module) { "use strict"; if (false) { module.exports = null; } else { module.exports = require_use_sync_external_store_shim_development(); } } }); // node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js var require_with_selector_development = __commonJS({ "node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js"(exports) { "use strict"; (function() { function is2(x2, y3) { return x2 === y3 && (0 !== x2 || 1 / x2 === 1 / y3) || x2 !== x2 && y3 !== y3; } "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()); var React208 = require_react(), shim = require_shim(), objectIs = "function" === typeof Object.is ? Object.is : is2, useSyncExternalStore7 = shim.useSyncExternalStore, useRef167 = React208.useRef, useEffect138 = React208.useEffect, useMemo192 = React208.useMemo, useDebugValue2 = React208.useDebugValue; exports.useSyncExternalStoreWithSelector = function(subscribe5, getSnapshot2, getServerSnapshot2, selector2, isEqual2) { var instRef = useRef167(null); if (null === instRef.current) { var inst = { hasValue: false, value: null }; instRef.current = inst; } else inst = instRef.current; instRef = useMemo192( function() { function memoizedSelector(nextSnapshot) { if (!hasMemo) { hasMemo = true; memoizedSnapshot = nextSnapshot; nextSnapshot = selector2(nextSnapshot); if (void 0 !== isEqual2 && inst.hasValue) { var currentSelection = inst.value; if (isEqual2(currentSelection, nextSnapshot)) return memoizedSelection = currentSelection; } return memoizedSelection = nextSnapshot; } currentSelection = memoizedSelection; if (objectIs(memoizedSnapshot, nextSnapshot)) return currentSelection; var nextSelection = selector2(nextSnapshot); if (void 0 !== isEqual2 && isEqual2(currentSelection, nextSelection)) return memoizedSnapshot = nextSnapshot, currentSelection; memoizedSnapshot = nextSnapshot; return memoizedSelection = nextSelection; } var hasMemo = false, memoizedSnapshot, memoizedSelection, maybeGetServerSnapshot = void 0 === getServerSnapshot2 ? null : getServerSnapshot2; return [ function() { return memoizedSelector(getSnapshot2()); }, null === maybeGetServerSnapshot ? void 0 : function() { return memoizedSelector(maybeGetServerSnapshot()); } ]; }, [getSnapshot2, getServerSnapshot2, selector2, isEqual2] ); var value = useSyncExternalStore7(subscribe5, instRef[0], instRef[1]); useEffect138( function() { inst.hasValue = true; inst.value = value; }, [value] ); useDebugValue2(value); return value; }; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error()); })(); } }); // node_modules/use-sync-external-store/shim/with-selector.js var require_with_selector = __commonJS({ "node_modules/use-sync-external-store/shim/with-selector.js"(exports, module) { "use strict"; if (false) { module.exports = null; } else { module.exports = require_with_selector_development(); } } }); // package-external:@wordpress/theme var require_theme = __commonJS({ "package-external:@wordpress/theme"(exports, module) { module.exports = window.wp.theme; } }); // package-external:@wordpress/patterns var require_patterns = __commonJS({ "package-external:@wordpress/patterns"(exports, module) { module.exports = window.wp.patterns; } }); // package-external:@wordpress/blob var require_blob = __commonJS({ "package-external:@wordpress/blob"(exports, module) { module.exports = window.wp.blob; } }); // package-external:@wordpress/media-utils var require_media_utils = __commonJS({ "package-external:@wordpress/media-utils"(exports, module) { module.exports = window.wp.mediaUtils; } }); // node_modules/remove-accents/index.js var require_remove_accents = __commonJS({ "node_modules/remove-accents/index.js"(exports, module) { var characterMap = { "\xC0": "A", "\xC1": "A", "\xC2": "A", "\xC3": "A", "\xC4": "A", "\xC5": "A", "\u1EA4": "A", "\u1EAE": "A", "\u1EB2": "A", "\u1EB4": "A", "\u1EB6": "A", "\xC6": "AE", "\u1EA6": "A", "\u1EB0": "A", "\u0202": "A", "\u1EA2": "A", "\u1EA0": "A", "\u1EA8": "A", "\u1EAA": "A", "\u1EAC": "A", "\xC7": "C", "\u1E08": "C", "\xC8": "E", "\xC9": "E", "\xCA": "E", "\xCB": "E", "\u1EBE": "E", "\u1E16": "E", "\u1EC0": "E", "\u1E14": "E", "\u1E1C": "E", "\u0206": "E", "\u1EBA": "E", "\u1EBC": "E", "\u1EB8": "E", "\u1EC2": "E", "\u1EC4": "E", "\u1EC6": "E", "\xCC": "I", "\xCD": "I", "\xCE": "I", "\xCF": "I", "\u1E2E": "I", "\u020A": "I", "\u1EC8": "I", "\u1ECA": "I", "\xD0": "D", "\xD1": "N", "\xD2": "O", "\xD3": "O", "\xD4": "O", "\xD5": "O", "\xD6": "O", "\xD8": "O", "\u1ED0": "O", "\u1E4C": "O", "\u1E52": "O", "\u020E": "O", "\u1ECE": "O", "\u1ECC": "O", "\u1ED4": "O", "\u1ED6": "O", "\u1ED8": "O", "\u1EDC": "O", "\u1EDE": "O", "\u1EE0": "O", "\u1EDA": "O", "\u1EE2": "O", "\xD9": "U", "\xDA": "U", "\xDB": "U", "\xDC": "U", "\u1EE6": "U", "\u1EE4": "U", "\u1EEC": "U", "\u1EEE": "U", "\u1EF0": "U", "\xDD": "Y", "\xE0": "a", "\xE1": "a", "\xE2": "a", "\xE3": "a", "\xE4": "a", "\xE5": "a", "\u1EA5": "a", "\u1EAF": "a", "\u1EB3": "a", "\u1EB5": "a", "\u1EB7": "a", "\xE6": "ae", "\u1EA7": "a", "\u1EB1": "a", "\u0203": "a", "\u1EA3": "a", "\u1EA1": "a", "\u1EA9": "a", "\u1EAB": "a", "\u1EAD": "a", "\xE7": "c", "\u1E09": "c", "\xE8": "e", "\xE9": "e", "\xEA": "e", "\xEB": "e", "\u1EBF": "e", "\u1E17": "e", "\u1EC1": "e", "\u1E15": "e", "\u1E1D": "e", "\u0207": "e", "\u1EBB": "e", "\u1EBD": "e", "\u1EB9": "e", "\u1EC3": "e", "\u1EC5": "e", "\u1EC7": "e", "\xEC": "i", "\xED": "i", "\xEE": "i", "\xEF": "i", "\u1E2F": "i", "\u020B": "i", "\u1EC9": "i", "\u1ECB": "i", "\xF0": "d", "\xF1": "n", "\xF2": "o", "\xF3": "o", "\xF4": "o", "\xF5": "o", "\xF6": "o", "\xF8": "o", "\u1ED1": "o", "\u1E4D": "o", "\u1E53": "o", "\u020F": "o", "\u1ECF": "o", "\u1ECD": "o", "\u1ED5": "o", "\u1ED7": "o", "\u1ED9": "o", "\u1EDD": "o", "\u1EDF": "o", "\u1EE1": "o", "\u1EDB": "o", "\u1EE3": "o", "\xF9": "u", "\xFA": "u", "\xFB": "u", "\xFC": "u", "\u1EE7": "u", "\u1EE5": "u", "\u1EED": "u", "\u1EEF": "u", "\u1EF1": "u", "\xFD": "y", "\xFF": "y", "\u0100": "A", "\u0101": "a", "\u0102": "A", "\u0103": "a", "\u0104": "A", "\u0105": "a", "\u0106": "C", "\u0107": "c", "\u0108": "C", "\u0109": "c", "\u010A": "C", "\u010B": "c", "\u010C": "C", "\u010D": "c", "C\u0306": "C", "c\u0306": "c", "\u010E": "D", "\u010F": "d", "\u0110": "D", "\u0111": "d", "\u0112": "E", "\u0113": "e", "\u0114": "E", "\u0115": "e", "\u0116": "E", "\u0117": "e", "\u0118": "E", "\u0119": "e", "\u011A": "E", "\u011B": "e", "\u011C": "G", "\u01F4": "G", "\u011D": "g", "\u01F5": "g", "\u011E": "G", "\u011F": "g", "\u0120": "G", "\u0121": "g", "\u0122": "G", "\u0123": "g", "\u0124": "H", "\u0125": "h", "\u0126": "H", "\u0127": "h", "\u1E2A": "H", "\u1E2B": "h", "\u0128": "I", "\u0129": "i", "\u012A": "I", "\u012B": "i", "\u012C": "I", "\u012D": "i", "\u012E": "I", "\u012F": "i", "\u0130": "I", "\u0131": "i", "\u0132": "IJ", "\u0133": "ij", "\u0134": "J", "\u0135": "j", "\u0136": "K", "\u0137": "k", "\u1E30": "K", "\u1E31": "k", "K\u0306": "K", "k\u0306": "k", "\u0139": "L", "\u013A": "l", "\u013B": "L", "\u013C": "l", "\u013D": "L", "\u013E": "l", "\u013F": "L", "\u0140": "l", "\u0141": "l", "\u0142": "l", "\u1E3E": "M", "\u1E3F": "m", "M\u0306": "M", "m\u0306": "m", "\u0143": "N", "\u0144": "n", "\u0145": "N", "\u0146": "n", "\u0147": "N", "\u0148": "n", "\u0149": "n", "N\u0306": "N", "n\u0306": "n", "\u014C": "O", "\u014D": "o", "\u014E": "O", "\u014F": "o", "\u0150": "O", "\u0151": "o", "\u0152": "OE", "\u0153": "oe", "P\u0306": "P", "p\u0306": "p", "\u0154": "R", "\u0155": "r", "\u0156": "R", "\u0157": "r", "\u0158": "R", "\u0159": "r", "R\u0306": "R", "r\u0306": "r", "\u0212": "R", "\u0213": "r", "\u015A": "S", "\u015B": "s", "\u015C": "S", "\u015D": "s", "\u015E": "S", "\u0218": "S", "\u0219": "s", "\u015F": "s", "\u0160": "S", "\u0161": "s", "\u0162": "T", "\u0163": "t", "\u021B": "t", "\u021A": "T", "\u0164": "T", "\u0165": "t", "\u0166": "T", "\u0167": "t", "T\u0306": "T", "t\u0306": "t", "\u0168": "U", "\u0169": "u", "\u016A": "U", "\u016B": "u", "\u016C": "U", "\u016D": "u", "\u016E": "U", "\u016F": "u", "\u0170": "U", "\u0171": "u", "\u0172": "U", "\u0173": "u", "\u0216": "U", "\u0217": "u", "V\u0306": "V", "v\u0306": "v", "\u0174": "W", "\u0175": "w", "\u1E82": "W", "\u1E83": "w", "X\u0306": "X", "x\u0306": "x", "\u0176": "Y", "\u0177": "y", "\u0178": "Y", "Y\u0306": "Y", "y\u0306": "y", "\u0179": "Z", "\u017A": "z", "\u017B": "Z", "\u017C": "z", "\u017D": "Z", "\u017E": "z", "\u017F": "s", "\u0192": "f", "\u01A0": "O", "\u01A1": "o", "\u01AF": "U", "\u01B0": "u", "\u01CD": "A", "\u01CE": "a", "\u01CF": "I", "\u01D0": "i", "\u01D1": "O", "\u01D2": "o", "\u01D3": "U", "\u01D4": "u", "\u01D5": "U", "\u01D6": "u", "\u01D7": "U", "\u01D8": "u", "\u01D9": "U", "\u01DA": "u", "\u01DB": "U", "\u01DC": "u", "\u1EE8": "U", "\u1EE9": "u", "\u1E78": "U", "\u1E79": "u", "\u01FA": "A", "\u01FB": "a", "\u01FC": "AE", "\u01FD": "ae", "\u01FE": "O", "\u01FF": "o", "\xDE": "TH", "\xFE": "th", "\u1E54": "P", "\u1E55": "p", "\u1E64": "S", "\u1E65": "s", "X\u0301": "X", "x\u0301": "x", "\u0403": "\u0413", "\u0453": "\u0433", "\u040C": "\u041A", "\u045C": "\u043A", "A\u030B": "A", "a\u030B": "a", "E\u030B": "E", "e\u030B": "e", "I\u030B": "I", "i\u030B": "i", "\u01F8": "N", "\u01F9": "n", "\u1ED2": "O", "\u1ED3": "o", "\u1E50": "O", "\u1E51": "o", "\u1EEA": "U", "\u1EEB": "u", "\u1E80": "W", "\u1E81": "w", "\u1EF2": "Y", "\u1EF3": "y", "\u0200": "A", "\u0201": "a", "\u0204": "E", "\u0205": "e", "\u0208": "I", "\u0209": "i", "\u020C": "O", "\u020D": "o", "\u0210": "R", "\u0211": "r", "\u0214": "U", "\u0215": "u", "B\u030C": "B", "b\u030C": "b", "\u010C\u0323": "C", "\u010D\u0323": "c", "\xCA\u030C": "E", "\xEA\u030C": "e", "F\u030C": "F", "f\u030C": "f", "\u01E6": "G", "\u01E7": "g", "\u021E": "H", "\u021F": "h", "J\u030C": "J", "\u01F0": "j", "\u01E8": "K", "\u01E9": "k", "M\u030C": "M", "m\u030C": "m", "P\u030C": "P", "p\u030C": "p", "Q\u030C": "Q", "q\u030C": "q", "\u0158\u0329": "R", "\u0159\u0329": "r", "\u1E66": "S", "\u1E67": "s", "V\u030C": "V", "v\u030C": "v", "W\u030C": "W", "w\u030C": "w", "X\u030C": "X", "x\u030C": "x", "Y\u030C": "Y", "y\u030C": "y", "A\u0327": "A", "a\u0327": "a", "B\u0327": "B", "b\u0327": "b", "\u1E10": "D", "\u1E11": "d", "\u0228": "E", "\u0229": "e", "\u0190\u0327": "E", "\u025B\u0327": "e", "\u1E28": "H", "\u1E29": "h", "I\u0327": "I", "i\u0327": "i", "\u0197\u0327": "I", "\u0268\u0327": "i", "M\u0327": "M", "m\u0327": "m", "O\u0327": "O", "o\u0327": "o", "Q\u0327": "Q", "q\u0327": "q", "U\u0327": "U", "u\u0327": "u", "X\u0327": "X", "x\u0327": "x", "Z\u0327": "Z", "z\u0327": "z", "\u0439": "\u0438", "\u0419": "\u0418", "\u0451": "\u0435", "\u0401": "\u0415" }; var chars = Object.keys(characterMap).join("|"); var allAccents = new RegExp(chars, "g"); var firstAccent = new RegExp(chars, ""); function matcher(match3) { return characterMap[match3]; } var removeAccents7 = function(string) { return string.replace(allAccents, matcher); }; var hasAccents = function(string) { return !!string.match(firstAccent); }; module.exports = removeAccents7; module.exports.has = hasAccents; module.exports.remove = removeAccents7; } }); // package-external:@wordpress/wordcount var require_wordcount = __commonJS({ "package-external:@wordpress/wordcount"(exports, module) { module.exports = window.wp.wordcount; } }); // package-external:@wordpress/keycodes var require_keycodes = __commonJS({ "package-external:@wordpress/keycodes"(exports, module) { module.exports = window.wp.keycodes; } }); // package-external:@wordpress/keyboard-shortcuts var require_keyboard_shortcuts = __commonJS({ "package-external:@wordpress/keyboard-shortcuts"(exports, module) { module.exports = window.wp.keyboardShortcuts; } }); // package-external:@wordpress/block-serialization-default-parser var require_block_serialization_default_parser = __commonJS({ "package-external:@wordpress/block-serialization-default-parser"(exports, module) { module.exports = window.wp.blockSerializationDefaultParser; } }); // package-external:@wordpress/rich-text var require_rich_text = __commonJS({ "package-external:@wordpress/rich-text"(exports, module) { module.exports = window.wp.richText; } }); // package-external:@wordpress/commands var require_commands = __commonJS({ "package-external:@wordpress/commands"(exports, module) { module.exports = window.wp.commands; } }); // package-external:@wordpress/viewport var require_viewport = __commonJS({ "package-external:@wordpress/viewport"(exports, module) { module.exports = window.wp.viewport; } }); // package-external:@wordpress/plugins var require_plugins = __commonJS({ "package-external:@wordpress/plugins"(exports, module) { module.exports = window.wp.plugins; } }); // package-external:@wordpress/upload-media var require_upload_media = __commonJS({ "package-external:@wordpress/upload-media"(exports, module) { module.exports = window.wp.uploadMedia; } }); // package-external:@wordpress/dom var require_dom = __commonJS({ "package-external:@wordpress/dom"(exports, module) { module.exports = window.wp.dom; } }); // package-external:@wordpress/server-side-render var require_server_side_render = __commonJS({ "package-external:@wordpress/server-side-render"(exports, module) { module.exports = window.wp.serverSideRender; } }); // packages/editor/build-module/index.mjs var index_exports = {}; __export(index_exports, { AlignmentToolbar: () => AlignmentToolbar, Autocomplete: () => Autocomplete, AutosaveMonitor: () => AutosaveMonitor, BlockAlignmentToolbar: () => BlockAlignmentToolbar, BlockControls: () => BlockControls, BlockEdit: () => BlockEdit, BlockEditorKeyboardShortcuts: () => BlockEditorKeyboardShortcuts2, BlockFormatControls: () => BlockFormatControls, BlockIcon: () => BlockIcon3, BlockInspector: () => BlockInspector, BlockList: () => BlockList4, BlockMover: () => BlockMover, BlockNavigationDropdown: () => BlockNavigationDropdown, BlockSelectionClearer: () => BlockSelectionClearer, BlockSettingsMenu: () => BlockSettingsMenu, BlockTitle: () => BlockTitle, BlockToolbar: () => BlockToolbar, CharacterCount: () => CharacterCount, ColorPalette: () => ColorPalette3, ContrastChecker: () => ContrastChecker, CopyHandler: () => CopyHandler, DefaultBlockAppender: () => DefaultBlockAppender, DocumentBar: () => DocumentBar, DocumentOutline: () => DocumentOutline, DocumentOutlineCheck: () => DocumentOutlineCheck, EditorHistoryRedo: () => redo_default2, EditorHistoryUndo: () => undo_default2, EditorKeyboardShortcuts: () => EditorKeyboardShortcuts, EditorKeyboardShortcutsRegister: () => register_shortcuts_default, EditorNotices: () => editor_notices_default, EditorProvider: () => provider_default, EditorSnackbars: () => EditorSnackbars, EntitiesSavedStates: () => EntitiesSavedStates, ErrorBoundary: () => error_boundary_default, FontSizePicker: () => FontSizePicker, InnerBlocks: () => InnerBlocks, Inserter: () => Inserter, InspectorAdvancedControls: () => InspectorAdvancedControls, InspectorControls: () => InspectorControls, LocalAutosaveMonitor: () => local_autosave_monitor_default, MediaPlaceholder: () => MediaPlaceholder, MediaUpload: () => MediaUpload3, MediaUploadCheck: () => MediaUploadCheck2, MultiSelectScrollIntoView: () => MultiSelectScrollIntoView, NavigableToolbar: () => NavigableToolbar, ObserveTyping: () => ObserveTyping, PageAttributesCheck: () => check_default2, PageAttributesOrder: () => PageAttributesOrderWithChecks, PageAttributesPanel: () => PageAttributesPanel, PageAttributesParent: () => parent_default2, PageTemplate: () => classic_theme_default, PanelColorSettings: () => PanelColorSettings, PlainText: () => PlainText, PluginBlockSettingsMenuItem: () => plugin_block_settings_menu_item_default, PluginDocumentSettingPanel: () => plugin_document_setting_panel_default, PluginMoreMenuItem: () => PluginMoreMenuItem, PluginPostPublishPanel: () => plugin_post_publish_panel_default, PluginPostStatusInfo: () => plugin_post_status_info_default, PluginPrePublishPanel: () => plugin_pre_publish_panel_default, PluginPreviewMenuItem: () => PluginPreviewMenuItem, PluginSidebar: () => PluginSidebar, PluginSidebarMoreMenuItem: () => PluginSidebarMoreMenuItem, PostAuthor: () => post_author_default, PostAuthorCheck: () => PostAuthorCheck, PostAuthorPanel: () => panel_default, PostComments: () => post_comments_default, PostDiscussionPanel: () => PostDiscussionPanel, PostExcerpt: () => PostExcerpt, PostExcerptCheck: () => check_default3, PostExcerptPanel: () => PostExcerptPanel, PostFeaturedImage: () => post_featured_image_default, PostFeaturedImageCheck: () => check_default4, PostFeaturedImagePanel: () => PostFeaturedImagePanel, PostFormat: () => PostFormat, PostFormatCheck: () => PostFormatCheck, PostLastRevision: () => post_last_revision_default, PostLastRevisionCheck: () => check_default5, PostLastRevisionPanel: () => panel_default2, PostLockedModal: () => post_locked_modal_default, PostPendingStatus: () => post_pending_status_default, PostPendingStatusCheck: () => check_default6, PostPingbacks: () => post_pingbacks_default, PostPreviewButton: () => PostPreviewButton, PostPublishButton: () => post_publish_button_default, PostPublishButtonLabel: () => PublishButtonLabel, PostPublishPanel: () => PostPublishPanel, PostSavedState: () => PostSavedState, PostSchedule: () => PostSchedule, PostScheduleCheck: () => PostScheduleCheck, PostScheduleLabel: () => PostScheduleLabel, PostSchedulePanel: () => PostSchedulePanel, PostSticky: () => PostSticky, PostStickyCheck: () => PostStickyCheck, PostSwitchToDraftButton: () => PostSwitchToDraftButton, PostSyncStatus: () => PostSyncStatus, PostTaxonomies: () => post_taxonomies_default, PostTaxonomiesCheck: () => PostTaxonomiesCheck, PostTaxonomiesFlatTermSelector: () => FlatTermSelector, PostTaxonomiesHierarchicalTermSelector: () => HierarchicalTermSelector, PostTaxonomiesPanel: () => PostTaxonomies2, PostTemplatePanel: () => PostTemplatePanel, PostTextEditor: () => PostTextEditor, PostTitle: () => post_title_default, PostTitleRaw: () => post_title_raw_default, PostTrash: () => PostTrash, PostTrashCheck: () => PostTrashCheck, PostTypeSupportCheck: () => post_type_support_check_default, PostURL: () => PostURL, PostURLCheck: () => PostURLCheck, PostURLLabel: () => PostURLLabel, PostURLPanel: () => PostURLPanel, PostVisibility: () => PostVisibility, PostVisibilityCheck: () => PostVisibilityCheck, PostVisibilityLabel: () => PostVisibilityLabel, RichText: () => RichText, RichTextShortcut: () => RichTextShortcut, RichTextToolbarButton: () => RichTextToolbarButton, ServerSideRender: () => import_server_side_render.default, SkipToSelectedBlock: () => SkipToSelectedBlock, TableOfContents: () => table_of_contents_default, TextEditorGlobalKeyboardShortcuts: () => TextEditorGlobalKeyboardShortcuts, ThemeSupportCheck: () => ThemeSupportCheck, TimeToRead: () => TimeToRead, URLInput: () => URLInput, URLInputButton: () => URLInputButton, URLPopover: () => URLPopover, UnsavedChangesWarning: () => UnsavedChangesWarning, VisualEditorGlobalKeyboardShortcuts: () => VisualEditorGlobalKeyboardShortcuts, Warning: () => Warning, WordCount: () => WordCount, WritingFlow: () => WritingFlow, __unstableRichTextInputEvent: () => __unstableRichTextInputEvent, cleanForSlug: () => cleanForSlug3, createCustomColorsHOC: () => createCustomColorsHOC, getColorClassName: () => getColorClassName2, getColorObjectByAttributeValues: () => getColorObjectByAttributeValues, getColorObjectByColorValue: () => getColorObjectByColorValue, getFontSize: () => getFontSize, getFontSizeClass: () => getFontSizeClass, linkAutocompleter: () => link_default2, mediaUpload: () => mediaUpload, privateApis: () => privateApis9, registerEntityAction: () => registerEntityAction2, registerEntityField: () => registerEntityField2, store: () => store, storeConfig: () => storeConfig, transformStyles: () => import_block_editor115.transformStyles, unregisterEntityAction: () => unregisterEntityAction2, unregisterEntityField: () => unregisterEntityField2, useEntitiesSavedStatesIsDirty: () => useEntitiesSavedStatesIsDirty, usePostScheduleLabel: () => usePostScheduleLabel, usePostURLLabel: () => usePostURLLabel, usePostVisibilityLabel: () => usePostVisibilityLabel, userAutocompleter: () => user_default, withColorContext: () => withColorContext, withColors: () => withColors, withFontSizes: () => withFontSizes }); // packages/editor/build-module/hooks/custom-sources-backwards-compatibility.mjs var import_data93 = __toESM(require_data(), 1); var import_core_data64 = __toESM(require_core_data(), 1); var import_element309 = __toESM(require_element(), 1); var import_compose51 = __toESM(require_compose(), 1); var import_hooks43 = __toESM(require_hooks(), 1); // packages/editor/build-module/store/index.mjs var import_data92 = __toESM(require_data(), 1); // packages/editor/build-module/store/reducer.mjs var import_data2 = __toESM(require_data(), 1); // packages/editor/build-module/store/defaults.mjs var import_block_editor = __toESM(require_block_editor(), 1); var EDITOR_SETTINGS_DEFAULTS = { ...import_block_editor.SETTINGS_DEFAULTS, richEditingEnabled: true, codeEditingEnabled: true, responsiveEditingEnabled: true, blockStatesEditingEnabled: true, fontLibraryEnabled: true, enableCustomFields: void 0, defaultRenderingMode: "post-only", autoAttachMediaEnabled: true }; // packages/editor/build-module/dataviews/store/reducer.mjs var import_data = __toESM(require_data(), 1); function isReady(state2 = {}, action) { switch (action.type) { case "SET_IS_READY": return { ...state2, [action.kind]: { ...state2[action.kind], [action.name]: true } }; } return state2; } function actions(state2 = {}, action) { switch (action.type) { case "REGISTER_ENTITY_ACTION": return { ...state2, [action.kind]: { ...state2[action.kind], [action.name]: [ ...(state2[action.kind]?.[action.name] ?? []).filter( (_action) => _action.id !== action.config.id ), action.config ] } }; case "UNREGISTER_ENTITY_ACTION": { return { ...state2, [action.kind]: { ...state2[action.kind], [action.name]: (state2[action.kind]?.[action.name] ?? []).filter((_action) => _action.id !== action.actionId) } }; } } return state2; } function fields(state2 = {}, action) { switch (action.type) { case "REGISTER_ENTITY_FIELD": return { ...state2, [action.kind]: { ...state2[action.kind], [action.name]: [ ...(state2[action.kind]?.[action.name] ?? []).filter( (_field) => _field.id !== action.config.id ), action.config ] } }; case "UNREGISTER_ENTITY_FIELD": return { ...state2, [action.kind]: { ...state2[action.kind], [action.name]: (state2[action.kind]?.[action.name] ?? []).filter((_field) => _field.id !== action.fieldId) } }; } return state2; } var reducer_default = (0, import_data.combineReducers)({ actions, fields, isReady }); // packages/editor/build-module/store/reducer.mjs function getPostRawValue(value) { if (value && "object" === typeof value && "raw" in value) { return value.raw; } return value; } function postId(state2 = null, action) { switch (action.type) { case "SET_EDITED_POST": return action.postId; } return state2; } function templateId(state2 = null, action) { switch (action.type) { case "SET_CURRENT_TEMPLATE_ID": return action.id; } return state2; } function postType(state2 = null, action) { switch (action.type) { case "SET_EDITED_POST": return action.postType; } return state2; } function template(state2 = { isValid: true }, action) { switch (action.type) { case "SET_TEMPLATE_VALIDITY": return { ...state2, isValid: action.isValid }; } return state2; } function saving(state2 = {}, action) { switch (action.type) { case "REQUEST_POST_UPDATE_START": case "REQUEST_POST_UPDATE_FINISH": return { pending: action.type === "REQUEST_POST_UPDATE_START", options: action.options || {} }; } return state2; } function deleting(state2 = {}, action) { switch (action.type) { case "REQUEST_POST_DELETE_START": case "REQUEST_POST_DELETE_FINISH": return { pending: action.type === "REQUEST_POST_DELETE_START" }; } return state2; } function postLock(state2 = { isLocked: false }, action) { switch (action.type) { case "UPDATE_POST_LOCK": return action.lock; } return state2; } function postSavingLock(state2 = {}, action) { switch (action.type) { case "LOCK_POST_SAVING": return { ...state2, [action.lockName]: true }; case "UNLOCK_POST_SAVING": { const { [action.lockName]: removedLockName, ...restState } = state2; return restState; } } return state2; } function postAutosavingLock(state2 = {}, action) { switch (action.type) { case "LOCK_POST_AUTOSAVING": return { ...state2, [action.lockName]: true }; case "UNLOCK_POST_AUTOSAVING": { const { [action.lockName]: removedLockName, ...restState } = state2; return restState; } } return state2; } function editorSettings(state2 = EDITOR_SETTINGS_DEFAULTS, action) { switch (action.type) { case "UPDATE_EDITOR_SETTINGS": return { ...state2, ...action.settings }; } return state2; } function renderingMode(state2 = "post-only", action) { switch (action.type) { case "SET_RENDERING_MODE": return action.mode; } return state2; } function canvasWidth(state2 = void 0, action) { switch (action.type) { case "SET_CANVAS_WIDTH": return action.width; } return state2; } function removedPanels(state2 = [], action) { switch (action.type) { case "REMOVE_PANEL": if (!state2.includes(action.panelName)) { return [...state2, action.panelName]; } } return state2; } function blockInserterPanel(state2 = false, action) { switch (action.type) { case "SET_IS_LIST_VIEW_OPENED": return action.isOpen ? false : state2; case "SET_IS_INSERTER_OPENED": return action.value; } return state2; } function listViewPanel(state2 = false, action) { switch (action.type) { case "SET_IS_INSERTER_OPENED": return action.value ? false : state2; case "SET_IS_LIST_VIEW_OPENED": return action.isOpen; } return state2; } function listViewToggleRef(state2 = { current: null }) { return state2; } function inserterSidebarToggleRef(state2 = { current: null }) { return state2; } function publishSidebarActive(state2 = false, action) { switch (action.type) { case "OPEN_PUBLISH_SIDEBAR": return true; case "CLOSE_PUBLISH_SIDEBAR": return false; case "TOGGLE_PUBLISH_SIDEBAR": return !state2; } return state2; } function stylesPath(state2 = "/", action) { switch (action.type) { case "SET_STYLES_PATH": return action.path; case "RESET_STYLES_NAVIGATION": return "/"; } return state2; } function showStylebook(state2 = false, action) { switch (action.type) { case "SET_SHOW_STYLEBOOK": return action.show; case "RESET_STYLES_NAVIGATION": return false; } return state2; } function revisionId(state2 = null, action) { switch (action.type) { case "SET_CURRENT_REVISION_ID": return action.revisionId; } return state2; } function revisionPage(state2 = 1, action) { switch (action.type) { case "SET_REVISION_PAGE": return action.page; case "SET_CURRENT_REVISION_ID": if (!action.revisionId) { return 1; } return state2; } return state2; } function showRevisionDiff(state2 = true, action) { switch (action.type) { case "SET_SHOW_REVISION_DIFF": return action.showDiff; case "SET_CURRENT_REVISION_ID": return !action.revisionId ? true : state2; } return state2; } function selectedNote(state2 = {}, action) { switch (action.type) { case "SELECT_NOTE": return { noteId: action.noteId, options: action.options }; } return state2; } var reducer_default2 = (0, import_data2.combineReducers)({ postId, postType, templateId, saving, deleting, postLock, template, postSavingLock, editorSettings, postAutosavingLock, renderingMode, canvasWidth, removedPanels, blockInserterPanel, inserterSidebarToggleRef, listViewPanel, listViewToggleRef, publishSidebarActive, stylesPath, showStylebook, revisionId, revisionPage, showRevisionDiff, selectedNote, dataviews: reducer_default }); // packages/editor/build-module/store/selectors.mjs var selectors_exports = {}; __export(selectors_exports, { __experimentalGetDefaultTemplatePartAreas: () => __experimentalGetDefaultTemplatePartAreas, __experimentalGetDefaultTemplateType: () => __experimentalGetDefaultTemplateType, __experimentalGetDefaultTemplateTypes: () => __experimentalGetDefaultTemplateTypes, __experimentalGetTemplateInfo: () => __experimentalGetTemplateInfo, __unstableIsEditorReady: () => __unstableIsEditorReady, canInsertBlockType: () => canInsertBlockType, canUserUseUnfilteredHTML: () => canUserUseUnfilteredHTML, didPostSaveRequestFail: () => didPostSaveRequestFail, didPostSaveRequestSucceed: () => didPostSaveRequestSucceed, getActivePostLock: () => getActivePostLock, getAdjacentBlockClientId: () => getAdjacentBlockClientId, getAutosaveAttribute: () => getAutosaveAttribute, getBlock: () => getBlock, getBlockAttributes: () => getBlockAttributes, getBlockCount: () => getBlockCount, getBlockHierarchyRootClientId: () => getBlockHierarchyRootClientId, getBlockIndex: () => getBlockIndex, getBlockInsertionPoint: () => getBlockInsertionPoint, getBlockListSettings: () => getBlockListSettings, getBlockMode: () => getBlockMode, getBlockName: () => getBlockName, getBlockOrder: () => getBlockOrder, getBlockRootClientId: () => getBlockRootClientId, getBlockSelectionEnd: () => getBlockSelectionEnd, getBlockSelectionStart: () => getBlockSelectionStart, getBlocks: () => getBlocks, getBlocksByClientId: () => getBlocksByClientId, getClientIdsOfDescendants: () => getClientIdsOfDescendants, getClientIdsWithDescendants: () => getClientIdsWithDescendants, getCurrentPost: () => getCurrentPost, getCurrentPostAttribute: () => getCurrentPostAttribute, getCurrentPostId: () => getCurrentPostId, getCurrentPostLastRevisionId: () => getCurrentPostLastRevisionId, getCurrentPostRevisionsCount: () => getCurrentPostRevisionsCount, getCurrentPostType: () => getCurrentPostType, getCurrentTemplateId: () => getCurrentTemplateId, getDeviceType: () => getDeviceType, getEditedPostAttribute: () => getEditedPostAttribute, getEditedPostContent: () => getEditedPostContent, getEditedPostPreviewLink: () => getEditedPostPreviewLink, getEditedPostSlug: () => getEditedPostSlug, getEditedPostVisibility: () => getEditedPostVisibility, getEditorBlocks: () => getEditorBlocks, getEditorMode: () => getEditorMode, getEditorSelection: () => getEditorSelection, getEditorSelectionEnd: () => getEditorSelectionEnd, getEditorSelectionStart: () => getEditorSelectionStart, getEditorSettings: () => getEditorSettings, getFirstMultiSelectedBlockClientId: () => getFirstMultiSelectedBlockClientId, getGlobalBlockCount: () => getGlobalBlockCount, getInserterItems: () => getInserterItems, getLastMultiSelectedBlockClientId: () => getLastMultiSelectedBlockClientId, getMultiSelectedBlockClientIds: () => getMultiSelectedBlockClientIds, getMultiSelectedBlocks: () => getMultiSelectedBlocks, getMultiSelectedBlocksEndClientId: () => getMultiSelectedBlocksEndClientId, getMultiSelectedBlocksStartClientId: () => getMultiSelectedBlocksStartClientId, getNextBlockClientId: () => getNextBlockClientId, getPermalink: () => getPermalink, getPermalinkParts: () => getPermalinkParts, getPostEdits: () => getPostEdits, getPostLockUser: () => getPostLockUser, getPostTypeLabel: () => getPostTypeLabel, getPreviousBlockClientId: () => getPreviousBlockClientId, getRenderingMode: () => getRenderingMode, getSelectedBlock: () => getSelectedBlock, getSelectedBlockClientId: () => getSelectedBlockClientId, getSelectedBlockCount: () => getSelectedBlockCount, getSelectedBlocksInitialCaretPosition: () => getSelectedBlocksInitialCaretPosition, getStateBeforeOptimisticTransaction: () => getStateBeforeOptimisticTransaction, getSuggestedPostFormat: () => getSuggestedPostFormat, getTemplate: () => getTemplate, getTemplateLock: () => getTemplateLock, hasChangedContent: () => hasChangedContent, hasEditorRedo: () => hasEditorRedo, hasEditorUndo: () => hasEditorUndo, hasInserterItems: () => hasInserterItems, hasMultiSelection: () => hasMultiSelection, hasNonPostEntityChanges: () => hasNonPostEntityChanges, hasSelectedBlock: () => hasSelectedBlock, hasSelectedInnerBlock: () => hasSelectedInnerBlock, inSomeHistory: () => inSomeHistory, isAncestorMultiSelected: () => isAncestorMultiSelected, isAutosavingPost: () => isAutosavingPost, isBlockInsertionPointVisible: () => isBlockInsertionPointVisible, isBlockMultiSelected: () => isBlockMultiSelected, isBlockSelected: () => isBlockSelected, isBlockValid: () => isBlockValid, isBlockWithinSelection: () => isBlockWithinSelection, isCaretWithinFormattedText: () => isCaretWithinFormattedText, isCleanNewPost: () => isCleanNewPost, isCurrentPostPending: () => isCurrentPostPending, isCurrentPostPublished: () => isCurrentPostPublished, isCurrentPostScheduled: () => isCurrentPostScheduled, isDeletingPost: () => isDeletingPost, isEditedPostAutosaveable: () => isEditedPostAutosaveable, isEditedPostBeingScheduled: () => isEditedPostBeingScheduled, isEditedPostDateFloating: () => isEditedPostDateFloating, isEditedPostDirty: () => isEditedPostDirty, isEditedPostEmpty: () => isEditedPostEmpty, isEditedPostNew: () => isEditedPostNew, isEditedPostPublishable: () => isEditedPostPublishable, isEditedPostSaveable: () => isEditedPostSaveable, isEditorPanelEnabled: () => isEditorPanelEnabled, isEditorPanelOpened: () => isEditorPanelOpened, isEditorPanelRemoved: () => isEditorPanelRemoved, isFirstMultiSelectedBlock: () => isFirstMultiSelectedBlock, isInserterOpened: () => isInserterOpened, isListViewOpened: () => isListViewOpened, isMultiSelecting: () => isMultiSelecting, isPermalinkEditable: () => isPermalinkEditable, isPostAutosavingLocked: () => isPostAutosavingLocked, isPostLockTakeover: () => isPostLockTakeover, isPostLocked: () => isPostLocked, isPostSavingLocked: () => isPostSavingLocked, isPreviewingPost: () => isPreviewingPost, isPublishSidebarEnabled: () => isPublishSidebarEnabled, isPublishSidebarOpened: () => isPublishSidebarOpened, isPublishingPost: () => isPublishingPost, isSavingNonPostEntityChanges: () => isSavingNonPostEntityChanges, isSavingPost: () => isSavingPost, isSelectionEnabled: () => isSelectionEnabled, isTyping: () => isTyping, isValidTemplate: () => isValidTemplate }); var import_blocks3 = __toESM(require_blocks(), 1); var import_date = __toESM(require_date(), 1); var import_url = __toESM(require_url(), 1); var import_data4 = __toESM(require_data(), 1); var import_deprecated = __toESM(require_deprecated(), 1); var import_block_editor2 = __toESM(require_block_editor(), 1); var import_core_data = __toESM(require_core_data(), 1); var import_preferences = __toESM(require_preferences(), 1); // packages/editor/build-module/store/constants.mjs var EDIT_MERGE_PROPERTIES = /* @__PURE__ */ new Set(["meta"]); var STORE_NAME = "core/editor"; var PERMALINK_POSTNAME_REGEX = /%(?:postname|pagename)%/; var ONE_MINUTE_IN_MS = 60 * 1e3; var AUTOSAVE_PROPERTIES = ["title", "excerpt", "content"]; var TEMPLATE_POST_TYPE = "wp_template"; var TEMPLATE_PART_POST_TYPE = "wp_template_part"; var PATTERN_POST_TYPE = "wp_block"; var NAVIGATION_POST_TYPE = "wp_navigation"; var ATTACHMENT_POST_TYPE = "attachment"; var TEMPLATE_ORIGINS = { custom: "custom", theme: "theme", plugin: "plugin" }; var TEMPLATE_POST_TYPES = ["wp_template", "wp_template_part"]; var GLOBAL_POST_TYPES = [ ...TEMPLATE_POST_TYPES, "wp_block", "wp_navigation" ]; var DESIGN_POST_TYPES = [ TEMPLATE_POST_TYPE, TEMPLATE_PART_POST_TYPE, PATTERN_POST_TYPE, NAVIGATION_POST_TYPE ]; // packages/editor/build-module/lock-unlock.mjs var import_private_apis = __toESM(require_private_apis(), 1); var { lock, unlock } = (0, import_private_apis.__dangerousOptInToUnstableAPIsOnlyForCoreModules)( "I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.", "@wordpress/editor" ); // packages/global-styles-engine/build-module/utils/object.mjs function setImmutably(object, path, value) { path = Array.isArray(path) ? [...path] : [path]; object = Array.isArray(object) ? [...object] : { ...object }; const leaf = path.pop(); let prev = object; for (const key of path) { const lvl = prev[key]; prev = prev[key] = Array.isArray(lvl) ? [...lvl] : { ...lvl }; } prev[leaf] = value; return object; } var getValueFromObjectPath = (object, path, defaultValue2) => { const arrayPath = Array.isArray(path) ? path : path.split("."); let value = object; arrayPath.forEach((fieldName) => { value = value?.[fieldName]; }); return value ?? defaultValue2; }; // packages/global-styles-engine/build-module/settings/get-setting.mjs var VALID_SETTINGS = [ "appearanceTools", "useRootPaddingAwareAlignments", "background.backgroundImage", "background.backgroundRepeat", "background.backgroundSize", "background.backgroundPosition", "background.gradient", "border.color", "border.radius", "border.radiusSizes", "border.style", "border.width", "shadow.presets", "shadow.defaultPresets", "color.background", "color.button", "color.caption", "color.custom", "color.customDuotone", "color.customGradient", "color.defaultDuotone", "color.defaultGradients", "color.defaultPalette", "color.duotone", "color.gradients", "color.heading", "color.link", "color.palette", "color.text", "custom", "dimensions.aspectRatio", "dimensions.height", "dimensions.minHeight", "dimensions.minWidth", "dimensions.width", "dimensions.dimensionSizes", "layout.contentSize", "layout.definitions", "layout.wideSize", "lightbox.enabled", "lightbox.allowEditing", "position.fixed", "position.sticky", "spacing.customSpacingSize", "spacing.defaultSpacingSizes", "spacing.spacingSizes", "spacing.spacingScale", "spacing.blockGap", "spacing.margin", "spacing.padding", "spacing.units", "typography.fluid", "typography.customFontSize", "typography.defaultFontSizes", "typography.dropCap", "typography.fontFamilies", "typography.fontSizes", "typography.fontStyle", "typography.fontWeight", "typography.letterSpacing", "typography.lineHeight", "typography.textAlign", "typography.textColumns", "typography.textDecoration", "typography.textIndent", "typography.textShadow", "typography.defaultTextShadowPresets", "typography.textShadowPresets", "typography.textTransform", "typography.writingMode", "viewport.mobile", "viewport.tablet" ]; function getSetting(globalStyles, path, blockName) { const appendedBlockPath = blockName ? ".blocks." + blockName : ""; const appendedPropertyPath = path ? "." + path : ""; const contextualPath = `settings${appendedBlockPath}${appendedPropertyPath}`; const globalPath = `settings${appendedPropertyPath}`; if (path) { return getValueFromObjectPath(globalStyles, contextualPath) ?? getValueFromObjectPath(globalStyles, globalPath); } let result = {}; VALID_SETTINGS.forEach((setting) => { const value = getValueFromObjectPath( globalStyles, `settings${appendedBlockPath}.${setting}` ) ?? getValueFromObjectPath(globalStyles, `settings.${setting}`); if (value !== void 0) { result = setImmutably(result, setting.split("."), value); } }); return result; } // packages/global-styles-engine/build-module/settings/set-setting.mjs function setSetting(globalStyles, path, newValue, blockName) { const appendedBlockPath = blockName ? ".blocks." + blockName : ""; const appendedPropertyPath = path ? "." + path : ""; const finalPath = `settings${appendedBlockPath}${appendedPropertyPath}`; return setImmutably( globalStyles, finalPath.split("."), newValue ); } // packages/global-styles-engine/build-module/utils/common.mjs var import_style_engine = __toESM(require_style_engine(), 1); // packages/global-styles-engine/build-module/utils/fluid.mjs var DEFAULT_MAXIMUM_VIEWPORT_WIDTH = "1600px"; var DEFAULT_MINIMUM_VIEWPORT_WIDTH = "320px"; var DEFAULT_SCALE_FACTOR = 1; var DEFAULT_MINIMUM_FONT_SIZE_FACTOR_MIN = 0.25; var DEFAULT_MINIMUM_FONT_SIZE_FACTOR_MAX = 0.75; var DEFAULT_MINIMUM_FONT_SIZE_LIMIT = "14px"; function getComputedFluidTypographyValue({ minimumFontSize, maximumFontSize, fontSize, minimumViewportWidth = DEFAULT_MINIMUM_VIEWPORT_WIDTH, maximumViewportWidth = DEFAULT_MAXIMUM_VIEWPORT_WIDTH, scaleFactor = DEFAULT_SCALE_FACTOR, minimumFontSizeLimit }) { minimumFontSizeLimit = !!getTypographyValueAndUnit(minimumFontSizeLimit) ? minimumFontSizeLimit : DEFAULT_MINIMUM_FONT_SIZE_LIMIT; if (fontSize) { const fontSizeParsed = getTypographyValueAndUnit(fontSize); if (!fontSizeParsed?.unit || !fontSizeParsed?.value) { return null; } const minimumFontSizeLimitParsed = getTypographyValueAndUnit( minimumFontSizeLimit, { coerceTo: fontSizeParsed.unit } ); if (!!minimumFontSizeLimitParsed?.value && !minimumFontSize && !maximumFontSize) { if (fontSizeParsed?.value <= minimumFontSizeLimitParsed?.value) { return null; } } if (!maximumFontSize) { maximumFontSize = `${fontSizeParsed.value}${fontSizeParsed.unit}`; } if (!minimumFontSize) { const fontSizeValueInPx = fontSizeParsed.unit === "px" ? fontSizeParsed.value : fontSizeParsed.value * 16; const minimumFontSizeFactor = Math.min( Math.max( 1 - 0.075 * Math.log2(fontSizeValueInPx), DEFAULT_MINIMUM_FONT_SIZE_FACTOR_MIN ), DEFAULT_MINIMUM_FONT_SIZE_FACTOR_MAX ); const calculatedMinimumFontSize = roundToPrecision( fontSizeParsed.value * minimumFontSizeFactor, 3 ); if (!!minimumFontSizeLimitParsed?.value && calculatedMinimumFontSize < minimumFontSizeLimitParsed?.value) { minimumFontSize = `${minimumFontSizeLimitParsed.value}${minimumFontSizeLimitParsed.unit}`; } else { minimumFontSize = `${calculatedMinimumFontSize}${fontSizeParsed.unit}`; } } } const minimumFontSizeParsed = getTypographyValueAndUnit(minimumFontSize); const fontSizeUnit = minimumFontSizeParsed?.unit || "rem"; const maximumFontSizeParsed = getTypographyValueAndUnit(maximumFontSize, { coerceTo: fontSizeUnit }); if (!minimumFontSizeParsed || !maximumFontSizeParsed) { return null; } const minimumFontSizeRem = getTypographyValueAndUnit(minimumFontSize, { coerceTo: "rem" }); const maximumViewportWidthParsed = getTypographyValueAndUnit( maximumViewportWidth, { coerceTo: fontSizeUnit } ); const minimumViewportWidthParsed = getTypographyValueAndUnit( minimumViewportWidth, { coerceTo: fontSizeUnit } ); if (!maximumViewportWidthParsed || !minimumViewportWidthParsed || !minimumFontSizeRem) { return null; } const linearDenominator = maximumViewportWidthParsed.value - minimumViewportWidthParsed.value; if (!linearDenominator) { return null; } const minViewportWidthOffsetValue = roundToPrecision( minimumViewportWidthParsed.value / 100, 3 ); const viewportWidthOffset = roundToPrecision(minViewportWidthOffsetValue, 3) + fontSizeUnit; const linearFactor = 100 * ((maximumFontSizeParsed.value - minimumFontSizeParsed.value) / linearDenominator); const linearFactorScaled = roundToPrecision( (linearFactor || 1) * scaleFactor, 3 ); const fluidTargetFontSize = `${minimumFontSizeRem.value}${minimumFontSizeRem.unit} + ((1vw - ${viewportWidthOffset}) * ${linearFactorScaled})`; return `clamp(${minimumFontSize}, ${fluidTargetFontSize}, ${maximumFontSize})`; } function getTypographyValueAndUnit(rawValue, options = {}) { if (typeof rawValue !== "string" && typeof rawValue !== "number") { return null; } if (isFinite(rawValue)) { rawValue = `${rawValue}px`; } const { coerceTo, rootSizeValue, acceptableUnits } = { coerceTo: "", // Default browser font size. Later we could inject some JS to compute this `getComputedStyle( document.querySelector( "html" ) ).fontSize`. rootSizeValue: 16, acceptableUnits: ["rem", "px", "em"], ...options }; const acceptableUnitsGroup = acceptableUnits?.join("|"); const regexUnits = new RegExp( `^(\\d*\\.?\\d+)(${acceptableUnitsGroup}){1,1}$` ); const matches = rawValue.toString().match(regexUnits); if (!matches || matches.length < 3) { return null; } let [, value, unit] = matches; let returnValue = parseFloat(value); if ("px" === coerceTo && ("em" === unit || "rem" === unit)) { returnValue = returnValue * rootSizeValue; unit = coerceTo; } if ("px" === unit && ("em" === coerceTo || "rem" === coerceTo)) { returnValue = returnValue / rootSizeValue; unit = coerceTo; } if (("em" === coerceTo || "rem" === coerceTo) && ("em" === unit || "rem" === unit)) { unit = coerceTo; } if (!unit) { return null; } return { value: roundToPrecision(returnValue, 3), unit }; } function roundToPrecision(value, digits = 3) { const base = Math.pow(10, digits); return Math.round(value * base) / base; } // packages/global-styles-engine/build-module/utils/typography.mjs function isFluidTypographyEnabled(typographySettings) { const fluidSettings = typographySettings?.fluid; return true === fluidSettings || fluidSettings && typeof fluidSettings === "object" && Object.keys(fluidSettings).length > 0; } function getFluidTypographyOptionsFromSettings(settings) { const typographySettings = settings?.typography ?? {}; const layoutSettings = settings?.layout; const defaultMaxViewportWidth = getTypographyValueAndUnit( layoutSettings?.wideSize ) ? layoutSettings?.wideSize : null; return isFluidTypographyEnabled(typographySettings) && defaultMaxViewportWidth ? { fluid: { maxViewportWidth: defaultMaxViewportWidth, ...typeof typographySettings.fluid === "object" ? typographySettings.fluid : {} } } : { fluid: typographySettings?.fluid }; } function getTypographyFontSizeValue(preset, settings) { const { size: defaultSize } = preset; if (!defaultSize || "0" === defaultSize || false === preset?.fluid) { return defaultSize; } if (!isFluidTypographyEnabled(settings?.typography) && !isFluidTypographyEnabled(preset)) { return defaultSize; } const fluidTypographySettings = getFluidTypographyOptionsFromSettings(settings)?.fluid ?? {}; const fluidFontSizeValue = getComputedFluidTypographyValue({ minimumFontSize: typeof preset?.fluid === "boolean" ? void 0 : preset?.fluid?.min, maximumFontSize: typeof preset?.fluid === "boolean" ? void 0 : preset?.fluid?.max, fontSize: defaultSize, minimumFontSizeLimit: typeof fluidTypographySettings === "object" ? fluidTypographySettings?.minFontSize : void 0, maximumViewportWidth: typeof fluidTypographySettings === "object" ? fluidTypographySettings?.maxViewportWidth : void 0, minimumViewportWidth: typeof fluidTypographySettings === "object" ? fluidTypographySettings?.minViewportWidth : void 0 }); if (!!fluidFontSizeValue) { return fluidFontSizeValue; } return defaultSize; } // packages/global-styles-engine/build-module/utils/common.mjs var ROOT_BLOCK_SELECTOR = "body"; var ROOT_CSS_PROPERTIES_SELECTOR = ":root"; function splitSelectorList(selector2) { if (!selector2.includes(",")) { return [selector2]; } const selectors5 = []; let currentSelector = ""; let parenthesesDepth = 0; for (const char of selector2) { if (char === "(") { parenthesesDepth++; } else if (char === ")" && parenthesesDepth > 0) { parenthesesDepth--; } else if (char === "," && parenthesesDepth === 0) { selectors5.push(currentSelector); currentSelector = ""; continue; } currentSelector += char; } selectors5.push(currentSelector); return selectors5; } var PRESET_METADATA = [ { path: ["color", "palette"], valueKey: "color", cssVarInfix: "color", classes: [ { classSuffix: "color", propertyName: "color" }, { classSuffix: "background-color", propertyName: "background-color" }, { classSuffix: "border-color", propertyName: "border-color" } ] }, { path: ["color", "gradients"], valueKey: "gradient", cssVarInfix: "gradient", classes: [ { classSuffix: "gradient-background", propertyName: "background" } ] }, { path: ["color", "duotone"], valueKey: "colors", cssVarInfix: "duotone", valueFunc: ({ slug }) => `url( '#wp-duotone-${slug}' )`, classes: [] }, { path: ["shadow", "presets"], valueKey: "shadow", cssVarInfix: "shadow", classes: [] }, { path: ["typography", "fontSizes"], valueFunc: (preset, settings) => getTypographyFontSizeValue(preset, settings), valueKey: "size", cssVarInfix: "font-size", classes: [{ classSuffix: "font-size", propertyName: "font-size" }] }, { path: ["typography", "fontFamilies"], valueKey: "fontFamily", cssVarInfix: "font-family", classes: [ { classSuffix: "font-family", propertyName: "font-family" } ] }, { path: ["typography", "textShadowPresets"], valueKey: "textShadow", cssVarInfix: "text-shadow", classes: [ { classSuffix: "text-shadow", propertyName: "text-shadow" } ] }, { path: ["spacing", "spacingSizes"], valueKey: "size", cssVarInfix: "spacing", valueFunc: ({ size: size4 }) => size4, classes: [] }, { path: ["border", "radiusSizes"], valueKey: "size", cssVarInfix: "border-radius", classes: [] }, { path: ["dimensions", "dimensionSizes"], valueKey: "size", cssVarInfix: "dimension", classes: [] } ]; function scopeSelector(scope, selector2) { if (!scope || !selector2) { return selector2; } const scopes = splitSelectorList(scope); const selectors5 = splitSelectorList(selector2); const selectorsScoped = []; scopes.forEach((outer) => { selectors5.forEach((inner) => { selectorsScoped.push(`${outer.trim()} ${inner.trim()}`); }); }); return selectorsScoped.join(", "); } function scopeFeatureSelectors(scope, selectors5) { if (!scope || !selectors5) { return; } const featureSelectors = {}; Object.entries(selectors5).forEach(([feature, selector2]) => { if (typeof selector2 === "string") { featureSelectors[feature] = scopeSelector(scope, selector2); } if (typeof selector2 === "object") { featureSelectors[feature] = {}; Object.entries(selector2).forEach( ([subfeature, subfeatureSelector]) => { featureSelectors[feature][subfeature] = scopeSelector( scope, subfeatureSelector ); } ); } }); return featureSelectors; } function appendToSelector(selector2, toAppend) { if (!selector2.includes(",")) { return selector2 + toAppend; } const selectors5 = splitSelectorList(selector2); const newSelectors = selectors5.map((sel) => sel + toAppend); return newSelectors.join(","); } function getBlockStyleVariationSelector(variation, blockSelector) { const variationClass = `.is-style-${variation}`; if (!blockSelector) { return variationClass; } const ancestorRegex = /[^\s:]+/; const addVariationClass = (match3) => match3 + variationClass; const result = splitSelectorList(blockSelector).map( (part) => part.replace(ancestorRegex, addVariationClass) ); return result.join(","); } function getBlockStyleVariationFeatureSelector(variation, featureSelector) { const variationClass = `.is-style-${variation}`; const selectorParts = splitSelectorList(featureSelector).map( (selector2) => { const trimmedSelector = selector2.trim(); const prefix2 = `${variationClass} `; if (trimmedSelector.startsWith(prefix2)) { return trimmedSelector.slice(prefix2.length); } return trimmedSelector; } ); return getBlockStyleVariationSelector( variation, selectorParts.join(",") ); } function getResolvedRefValue(ruleValue, tree) { if (!ruleValue || !tree) { return ruleValue; } if (typeof ruleValue === "object" && "ref" in ruleValue && ruleValue?.ref) { const resolvedRuleValue = (0, import_style_engine.getCSSValueFromRawStyle)( getValueFromObjectPath(tree, ruleValue.ref) ); if (typeof resolvedRuleValue === "object" && resolvedRuleValue !== null && "ref" in resolvedRuleValue && resolvedRuleValue?.ref) { return void 0; } if (resolvedRuleValue === void 0) { return ruleValue; } return resolvedRuleValue; } return ruleValue; } function getResolvedThemeFilePath(file, themeFileURIs) { if (!file || !themeFileURIs || !Array.isArray(themeFileURIs)) { return file; } const uri = themeFileURIs.find( (themeFileUri) => themeFileUri?.name === file ); if (!uri?.href) { return file; } return uri?.href; } function getResolvedValue(ruleValue, tree) { if (!ruleValue || !tree) { return ruleValue; } const resolvedValue = getResolvedRefValue(ruleValue, tree); if (typeof resolvedValue === "object" && resolvedValue !== null && "url" in resolvedValue && resolvedValue?.url) { return { ...resolvedValue, url: getResolvedThemeFilePath( resolvedValue.url, tree?._links?.["wp:theme-file"] ) }; } return resolvedValue; } function findInPresetsBy(settings, blockName, presetPath = [], presetProperty = "slug", presetValueValue) { const orderedPresetsByOrigin = [ blockName ? getValueFromObjectPath(settings, [ "blocks", blockName, ...presetPath ]) : void 0, getValueFromObjectPath(settings, presetPath) ].filter(Boolean); for (const presetByOrigin of orderedPresetsByOrigin) { if (presetByOrigin) { const origins = ["custom", "theme", "default"]; for (const origin of origins) { const presets = presetByOrigin[origin]; if (presets) { const presetObject = presets.find( (preset) => preset[presetProperty] === presetValueValue ); if (presetObject) { if (presetProperty === "slug") { return presetObject; } const highestPresetObjectWithSameSlug = findInPresetsBy( settings, blockName, presetPath, "slug", presetObject.slug ); if (highestPresetObjectWithSameSlug[presetProperty] === presetObject[presetProperty]) { return presetObject; } return void 0; } } } } } } function getValueFromPresetVariable(features, blockName, variable, [presetType, slug] = []) { const metadata = PRESET_METADATA.find( (data) => data.cssVarInfix === presetType ); if (!metadata || !features.settings) { return variable; } const presetObject = findInPresetsBy( features.settings, blockName, metadata.path, "slug", slug ); if (presetObject) { const { valueKey } = metadata; const result = presetObject[valueKey]; return getValueFromVariable(features, blockName, result); } return variable; } function getValueFromCustomVariable(features, blockName, variable, path = []) { const result = (blockName ? getValueFromObjectPath(features?.settings ?? {}, [ "blocks", blockName, "custom", ...path ]) : void 0) ?? getValueFromObjectPath(features?.settings ?? {}, [ "custom", ...path ]); if (!result) { return variable; } return getValueFromVariable(features, blockName, result); } function getValueFromVariable(features, blockName, variable) { if (!variable || typeof variable !== "string") { if (typeof variable === "object" && variable !== null && "ref" in variable && typeof variable.ref === "string") { const resolvedVariable = getValueFromObjectPath( features, variable.ref ); if (!resolvedVariable || typeof resolvedVariable === "object" && "ref" in resolvedVariable) { return resolvedVariable; } variable = resolvedVariable; } else { return variable; } } const USER_VALUE_PREFIX = "var:"; const THEME_VALUE_PREFIX = "var(--wp--"; const THEME_VALUE_SUFFIX = ")"; let parsedVar; if (variable.startsWith(USER_VALUE_PREFIX)) { parsedVar = variable.slice(USER_VALUE_PREFIX.length).split("|"); } else if (variable.startsWith(THEME_VALUE_PREFIX) && variable.endsWith(THEME_VALUE_SUFFIX)) { parsedVar = variable.slice(THEME_VALUE_PREFIX.length, -THEME_VALUE_SUFFIX.length).split("--"); } else { return variable; } const [type, ...path] = parsedVar; if (type === "preset") { return getValueFromPresetVariable( features, blockName, variable, path ); } if (type === "custom") { return getValueFromCustomVariable( features, blockName, variable, path ); } return variable; } // packages/global-styles-engine/build-module/style-state-back-compat.mjs var LEGACY_STYLE_STATE_ALIASES = { "@mobile": "mobile", "@tablet": "tablet", "-current": "@current" }; function isObjectRecord(value) { return !!value && typeof value === "object" && !Array.isArray(value); } function normalizeStyleStateNode(node) { if (!isObjectRecord(node)) { return node; } let normalized = node; Object.entries(LEGACY_STYLE_STATE_ALIASES).forEach( ([state2, legacyState]) => { if (Object.hasOwn(node, legacyState)) { if (normalized === node) { normalized = { ...node }; } if (!Object.hasOwn(node, state2)) { normalized[state2] = node[legacyState]; } delete normalized[legacyState]; } } ); Object.entries(normalized).forEach(([key, value]) => { if (!isObjectRecord(value)) { return; } const normalizedValue = normalizeStyleStateNode(value); if (normalizedValue !== value) { if (normalized === node) { normalized = { ...node }; } normalized[key] = normalizedValue; } }); return normalized; } function normalizeStyleStateAliases(globalStyles) { if (false) { return globalStyles; } if (!globalStyles?.styles) { return globalStyles; } const styles = normalizeStyleStateNode(globalStyles.styles); return styles === globalStyles.styles ? globalStyles : { ...globalStyles, styles }; } function getLegacyStyleStatePath(path) { if (false) { return void 0; } const pathParts = path.split("."); const legacyPathParts = pathParts.map( (part) => LEGACY_STYLE_STATE_ALIASES[part] ?? part ); return legacyPathParts.some( (part, index3) => part !== pathParts[index3] ) ? legacyPathParts.join(".") : void 0; } // packages/global-styles-engine/build-module/settings/get-style.mjs function getStyle(globalStyles, path, blockName, shouldDecodeEncode = true) { const appendedPath = path ? "." + path : ""; const finalPath = !blockName ? `styles${appendedPath}` : `styles.blocks.${blockName}${appendedPath}`; if (!globalStyles) { return void 0; } let rawResult = getValueFromObjectPath(globalStyles, finalPath); const legacyPath = getLegacyStyleStatePath(finalPath); if (rawResult === void 0 && legacyPath) { let hasCanonicalPath = true; let currentValue = globalStyles; for (const pathPart of finalPath.split(".")) { if (!currentValue || typeof currentValue !== "object" || !Object.hasOwn(currentValue, pathPart)) { hasCanonicalPath = false; break; } currentValue = currentValue[pathPart]; } if (!hasCanonicalPath) { rawResult = getValueFromObjectPath(globalStyles, legacyPath); } } const result = shouldDecodeEncode ? getValueFromVariable(globalStyles, blockName, rawResult) : rawResult; return result; } // packages/global-styles-engine/build-module/settings/set-style.mjs function setStyle(globalStyles, path, newValue, blockName) { const appendedPath = path ? "." + path : ""; const finalPath = !blockName ? `styles${appendedPath}` : `styles.blocks.${blockName}${appendedPath}`; return setImmutably( normalizeStyleStateAliases(globalStyles), finalPath.split("."), newValue ); } // packages/global-styles-engine/build-module/core/equal.mjs var import_es6 = __toESM(require_es6(), 1); function areGlobalStylesEqual(original, variation) { if (typeof original !== "object" || typeof variation !== "object") { return original === variation; } return (0, import_es6.default)(original?.styles, variation?.styles) && (0, import_es6.default)(original?.settings, variation?.settings); } // packages/global-styles-engine/build-module/core/merge.mjs var import_deepmerge = __toESM(require_cjs(), 1); // node_modules/is-plain-object/dist/is-plain-object.mjs function isObject(o3) { return Object.prototype.toString.call(o3) === "[object Object]"; } function isPlainObject(o3) { var ctor, prot; if (isObject(o3) === false) return false; ctor = o3.constructor; if (ctor === void 0) return true; prot = ctor.prototype; if (isObject(prot) === false) return false; if (prot.hasOwnProperty("isPrototypeOf") === false) { return false; } return true; } // packages/global-styles-engine/build-module/core/merge.mjs function mergeGlobalStyles(base, user) { return (0, import_deepmerge.default)( normalizeStyleStateAliases(base), normalizeStyleStateAliases(user), { /* * We only pass as arrays the presets, * in which case we want the new array of values * to override the old array (no merging). */ isMergeableObject: isPlainObject, /* * Exceptions to the above rule. * Background images should be replaced, not merged, * as they themselves are specific object definitions for the style. */ customMerge: (key) => { if (key === "backgroundImage") { return (baseConfig, userConfig) => userConfig ?? baseConfig; } return void 0; } } ); } // node_modules/memize/dist/index.js function memize(fn, options) { var size4 = 0; var head2; var tail; options = options || {}; function memoized() { var node = head2, len2 = arguments.length, args, i2; searchCache: while (node) { if (node.args.length !== arguments.length) { node = node.next; continue; } for (i2 = 0; i2 < len2; i2++) { if (node.args[i2] !== arguments[i2]) { node = node.next; continue searchCache; } } if (node !== head2) { if (node === tail) { tail = node.prev; } node.prev.next = node.next; if (node.next) { node.next.prev = node.prev; } node.next = head2; node.prev = null; head2.prev = node; head2 = node; } return node.val; } args = new Array(len2); for (i2 = 0; i2 < len2; i2++) { args[i2] = arguments[i2]; } node = { args, // Generate the result from original function val: fn.apply(null, args) }; if (head2) { head2.prev = node; node.next = head2; } else { tail = node; } if (size4 === /** @type {MemizeOptions} */ options.maxSize) { tail = /** @type {MemizeCacheNode} */ tail.prev; tail.next = null; } else { size4++; } head2 = node; return node.val; } memoized.clear = function() { head2 = null; tail = null; size4 = 0; }; return memoized; } // packages/global-styles-engine/build-module/utils/get-global-styles-changes.mjs var import_i18n = __toESM(require_i18n(), 1); var import_blocks = __toESM(require_blocks(), 1); var globalStylesChangesCache = /* @__PURE__ */ new Map(); var EMPTY_ARRAY = []; var translationMap = { caption: (0, import_i18n.__)("Caption"), link: (0, import_i18n.__)("Link"), button: (0, import_i18n.__)("Button"), heading: (0, import_i18n.__)("Heading"), h1: (0, import_i18n.__)("H1"), h2: (0, import_i18n.__)("H2"), h3: (0, import_i18n.__)("H3"), h4: (0, import_i18n.__)("H4"), h5: (0, import_i18n.__)("H5"), h6: (0, import_i18n.__)("H6"), "settings.color": (0, import_i18n.__)("Color"), "settings.typography": (0, import_i18n.__)("Typography"), "settings.shadow": (0, import_i18n.__)("Shadow"), "settings.layout": (0, import_i18n.__)("Layout"), "styles.color": (0, import_i18n.__)("Colors"), "styles.spacing": (0, import_i18n.__)("Spacing"), "styles.background": (0, import_i18n.__)("Background"), "styles.typography": (0, import_i18n.__)("Typography"), "styles.border": (0, import_i18n.__)("Border"), "styles.shadow": (0, import_i18n.__)("Shadow"), "styles.outline": (0, import_i18n.__)("Outline"), "styles.filter": (0, import_i18n.__)("Filter"), "styles.dimensions": (0, import_i18n.__)("Dimensions") }; var getBlockNames = memize( () => (0, import_blocks.getBlockTypes)().reduce( (accumulator, { name: name2, title }) => { accumulator[name2] = title; return accumulator; }, {} ) ); var isObject2 = (obj) => obj !== null && typeof obj === "object"; function getTranslation(key) { if (translationMap[key]) { return translationMap[key]; } const keyArray = key.split("."); if (keyArray?.[0] === "blocks") { const blockName = getBlockNames()?.[keyArray[1]]; return blockName || keyArray[1]; } if (keyArray?.[0] === "elements") { return translationMap[keyArray[1]] || keyArray[1]; } return void 0; } function deepCompare(changedObject, originalObject, parentPath = "") { if (!isObject2(changedObject) && !isObject2(originalObject)) { return changedObject !== originalObject ? parentPath.split(".").slice(0, 2).join(".") : void 0; } changedObject = isObject2(changedObject) ? changedObject : {}; originalObject = isObject2(originalObject) ? originalObject : {}; const allKeys = /* @__PURE__ */ new Set([ ...Object.keys(changedObject), ...Object.keys(originalObject) ]); let diffs = []; for (const key of allKeys) { const path = parentPath ? parentPath + "." + key : key; const changedPath = deepCompare( changedObject[key], originalObject[key], path ); if (changedPath) { diffs = diffs.concat(changedPath); } } return diffs; } var COMPARED_STYLE_KEYS = [ "background", "color", "typography", "spacing", "border", "shadow", "outline", "filter", "dimensions" ]; function pickComparedStyles(config2) { return Object.fromEntries( COMPARED_STYLE_KEYS.map((key) => [key, config2?.styles?.[key]]) ); } function getGlobalStylesChangelist(next, previous) { const cacheKey2 = JSON.stringify({ next, previous }); if (globalStylesChangesCache.has(cacheKey2)) { return globalStylesChangesCache.get(cacheKey2); } const changedValueTree = deepCompare( { styles: pickComparedStyles(next), blocks: next?.styles?.blocks, elements: next?.styles?.elements, settings: next?.settings }, { styles: pickComparedStyles(previous), blocks: previous?.styles?.blocks, elements: previous?.styles?.elements, settings: previous?.settings } ); if (!changedValueTree || Array.isArray(changedValueTree) && !changedValueTree.length) { globalStylesChangesCache.set(cacheKey2, []); return []; } const changedValueArray = Array.isArray(changedValueTree) ? changedValueTree : [changedValueTree]; const result = [...new Set(changedValueArray)].reduce((acc, curr) => { const translation = getTranslation(curr); if (translation) { acc.push([curr.split(".")[0], translation]); } return acc; }, []); globalStylesChangesCache.set(cacheKey2, result); return result; } function getGlobalStylesChanges(next, previous, options = {}) { let changeList = getGlobalStylesChangelist(next, previous); const changesLength = changeList.length; const { maxResults } = options; if (changesLength) { if (!!maxResults && changesLength > maxResults) { changeList = changeList.slice(0, maxResults); } return Object.entries( changeList.reduce((acc, curr) => { const group = acc[curr[0]] || []; if (!group.includes(curr[1])) { acc[curr[0]] = [...group, curr[1]]; } return acc; }, {}) ).map(([key, changeValues]) => { const changeValuesLength = changeValues.length; const joinedChangesValue = changeValues.join( /* translators: Used between list items, there is a space after the comma. */ (0, import_i18n.__)(", ") // eslint-disable-line @wordpress/i18n-no-flanking-whitespace ); switch (key) { case "blocks": { return (0, import_i18n.sprintf)( // translators: %s: a list of block names separated by a comma. (0, import_i18n._n)("%s block.", "%s blocks.", changeValuesLength), joinedChangesValue ); } case "elements": { return (0, import_i18n.sprintf)( // translators: %s: a list of element names separated by a comma. (0, import_i18n._n)("%s element.", "%s elements.", changeValuesLength), joinedChangesValue ); } case "settings": { return (0, import_i18n.sprintf)( // translators: %s: a list of theme.json setting labels separated by a comma. (0, import_i18n.__)("%s settings."), joinedChangesValue ); } case "styles": { return (0, import_i18n.sprintf)( // translators: %s: a list of theme.json top-level styles labels separated by a comma. (0, import_i18n.__)("%s styles."), joinedChangesValue ); } default: { return (0, import_i18n.sprintf)( // translators: %s: a list of global styles changes separated by a comma. (0, import_i18n.__)("%s."), joinedChangesValue ); } } }); } return EMPTY_ARRAY; } // packages/global-styles-engine/build-module/core/render.mjs var import_blocks2 = __toESM(require_blocks(), 1); var import_style_engine2 = __toESM(require_style_engine(), 1); var import_data3 = __toESM(require_data(), 1); // packages/global-styles-engine/build-module/core/selectors.mjs function getBlockSelector(blockType, target = "root", options = {}) { if (!target) { return null; } const { fallback = false } = options; const { name: name2, selectors: selectors5, supports } = blockType; const hasSelectors = selectors5 && Object.keys(selectors5).length > 0; const path = Array.isArray(target) ? target.join(".") : target; let rootSelector = null; if (hasSelectors && selectors5.root) { rootSelector = selectors5?.root; } else if (supports?.__experimentalSelector) { rootSelector = supports.__experimentalSelector; } else { rootSelector = ".wp-block-" + name2.replace("core/", "").replace("/", "-"); } if (path === "root") { return rootSelector; } const pathArray = Array.isArray(target) ? target : target.split("."); if (pathArray.length === 1) { const fallbackSelector = fallback ? rootSelector : null; if (hasSelectors) { const featureSelector2 = getValueFromObjectPath( selectors5, `${path}.root`, null ) || getValueFromObjectPath(selectors5, path, null); return featureSelector2 || fallbackSelector; } const featureSelector = supports ? getValueFromObjectPath( supports, `${path}.__experimentalSelector`, null ) : void 0; if (!featureSelector) { return fallbackSelector; } return scopeSelector(rootSelector, featureSelector); } let subfeatureSelector; if (hasSelectors) { subfeatureSelector = getValueFromObjectPath(selectors5, path, null); } if (subfeatureSelector) { return subfeatureSelector; } if (fallback) { return getBlockSelector(blockType, pathArray[0], options); } return null; } // node_modules/colord/index.mjs for (r4 = { grad: 0.9, turn: 360, rad: 360 / (2 * Math.PI) }, t3 = function(r5) { return "string" == typeof r5 ? r5.length > 0 : "number" == typeof r5; }, n2 = function(r5, t4, n3) { return void 0 === t4 && (t4 = 0), void 0 === n3 && (n3 = Math.pow(10, t4)), Math.round(n3 * r5) / n3 + 0; }, u2 = function(r5, t4, n3) { return void 0 === t4 && (t4 = 0), void 0 === n3 && (n3 = 1), r5 > n3 ? n3 : r5 > t4 ? r5 : t4; }, e2 = function(r5) { return (r5 = isFinite(r5) ? r5 % 360 : 0) < 0 ? r5 + 360 : r5; }, o3 = function(r5, t4) { return void 0 === t4 && (t4 = 0), n2(r5, t4) % 360; }, a2 = function(r5) { return { r: u2(r5.r, 0, 255), g: u2(r5.g, 0, 255), b: u2(r5.b, 0, 255), a: u2(r5.a) }; }, i2 = function(r5) { return { r: n2(r5.r), g: n2(r5.g), b: n2(r5.b), a: n2(r5.a, 3) }; }, s2 = /^#([0-9a-f]{3,8})$/i, d2 = function(r5, t4) { var n3 = r5.charCodeAt(t4); return (15 & n3) + 9 * (n3 >> 6); }, h2 = function(r5, t4) { return d2(r5, t4) << 4 | d2(r5, t4 + 1); }, b2 = [], f2 = 0; f2 < 256; f2++) b2.push((f2 < 16 ? "0" : "") + f2.toString(16)); var r4; var t3; var n2; var u2; var e2; var o3; var a2; var i2; var s2; var d2; var h2; var b2; var f2; var g = function(r4) { return b2[u2(r4, 0, 255)]; }; var c = function(r4) { var t3 = r4.r, n2 = r4.g, u2 = r4.b, e2 = r4.a, o3 = Math.max(t3, n2, u2), a2 = o3 - Math.min(t3, n2, u2), i2 = a2 ? o3 === t3 ? (n2 - u2) / a2 : o3 === n2 ? 2 + (u2 - t3) / a2 : 4 + (t3 - n2) / a2 : 0; return { h: 60 * (i2 < 0 ? i2 + 6 : i2), s: o3 ? a2 / o3 * 100 : 0, v: o3 / 255 * 100, a: e2 }; }; var v = function(r4) { var t3 = r4.h, n2 = r4.s, u2 = r4.v, e2 = r4.a; t3 = t3 / 360 * 6, n2 /= 100, u2 /= 100; var o3 = Math.floor(t3), a2 = u2 * (1 - n2), i2 = u2 * (1 - (t3 - o3) * n2), s2 = u2 * (1 - (1 - t3 + o3) * n2), d2 = o3 % 6; return { r: 255 * [u2, i2, a2, a2, s2, u2][d2], g: 255 * [s2, u2, u2, i2, a2, a2][d2], b: 255 * [a2, a2, s2, u2, u2, i2][d2], a: e2 }; }; var l = function(r4) { return { h: e2(r4.h), s: u2(r4.s, 0, 100), l: u2(r4.l, 0, 100), a: u2(r4.a) }; }; var p2 = function(r4) { return { h: o3(r4.h), s: n2(r4.s), l: n2(r4.l), a: n2(r4.a, 3) }; }; var m = function(r4) { return v((n2 = (t3 = r4).s, { h: t3.h, s: (n2 *= ((u2 = t3.l) < 50 ? u2 : 100 - u2) / 100) > 0 ? 2 * n2 / (u2 + n2) * 100 : 0, v: u2 + n2, a: t3.a })); var t3, n2, u2; }; var y = function(r4) { return { h: (t3 = c(r4)).h, s: (e2 = (200 - (n2 = t3.s)) * (u2 = t3.v) / 100) > 0 && e2 < 200 ? n2 * u2 / 100 / (e2 <= 100 ? e2 : 200 - e2) * 100 : 0, l: e2 / 2, a: t3.a }; var t3, n2, u2, e2; }; var N = /^hsla?\(\s*([+-]?(?:\d*\.\d+|\d+))(deg|rad|grad|turn)?\s*,\s*([+-]?(?:\d*\.\d+|\d+))%\s*,\s*([+-]?(?:\d*\.\d+|\d+))%\s*(?:,\s*([+-]?(?:\d*\.\d+|\d+))(%)?\s*)?\)$/i; var x = /^hsla?\(\s*([+-]?(?:\d*\.\d+|\d+))(deg|rad|grad|turn)?\s+([+-]?(?:\d*\.\d+|\d+))%\s+([+-]?(?:\d*\.\d+|\d+))%\s*(?:\/\s*([+-]?(?:\d*\.\d+|\d+))(%)?\s*)?\)$/i; var M = /^rgba?\(\s*([+-]?(?:\d*\.\d+|\d+))(%)?\s*,\s*([+-]?(?:\d*\.\d+|\d+))(%)?\s*,\s*([+-]?(?:\d*\.\d+|\d+))(%)?\s*(?:,\s*([+-]?(?:\d*\.\d+|\d+))(%)?\s*)?\)$/i; var H = /^rgba?\(\s*([+-]?(?:\d*\.\d+|\d+))(%)?\s+([+-]?(?:\d*\.\d+|\d+))(%)?\s+([+-]?(?:\d*\.\d+|\d+))(%)?\s*(?:\/\s*([+-]?(?:\d*\.\d+|\d+))(%)?\s*)?\)$/i; var $ = { string: [[function(r4) { if (!s2.test(r4)) return null; var t3 = r4.length; return t3 <= 5 ? { r: 17 * d2(r4, 1), g: 17 * d2(r4, 2), b: 17 * d2(r4, 3), a: 5 === t3 ? n2(17 * d2(r4, 4) / 255, 2) : 1 } : 7 === t3 || 9 === t3 ? { r: h2(r4, 1), g: h2(r4, 3), b: h2(r4, 5), a: 9 === t3 ? n2(h2(r4, 7) / 255, 2) : 1 } : null; }, "hex"], [function(r4) { var t3 = M.exec(r4) || H.exec(r4); return t3 ? t3[2] !== t3[4] || t3[4] !== t3[6] ? null : a2({ r: Number(t3[1]) / (t3[2] ? 100 / 255 : 1), g: Number(t3[3]) / (t3[4] ? 100 / 255 : 1), b: Number(t3[5]) / (t3[6] ? 100 / 255 : 1), a: void 0 === t3[7] ? 1 : Number(t3[7]) / (t3[8] ? 100 : 1) }) : null; }, "rgb"], [function(t3) { var n2 = N.exec(t3) || x.exec(t3); if (!n2) return null; var u2, e2, o3 = l({ h: (u2 = n2[1], e2 = n2[2], void 0 === e2 && (e2 = "deg"), Number(u2) * (r4[e2] || 1)), s: Number(n2[3]), l: Number(n2[4]), a: void 0 === n2[5] ? 1 : Number(n2[5]) / (n2[6] ? 100 : 1) }); return m(o3); }, "hsl"]], object: [[function(r4) { var n2 = r4.r, u2 = r4.g, e2 = r4.b, o3 = r4.a, i2 = void 0 === o3 ? 1 : o3; return t3(n2) && t3(u2) && t3(e2) ? a2({ r: Number(n2), g: Number(u2), b: Number(e2), a: Number(i2) }) : null; }, "rgb"], [function(r4) { var n2 = r4.h, u2 = r4.s, e2 = r4.l, o3 = r4.a, a2 = void 0 === o3 ? 1 : o3; if (!t3(n2) || !t3(u2) || !t3(e2)) return null; var i2 = l({ h: Number(n2), s: Number(u2), l: Number(e2), a: Number(a2) }); return m(i2); }, "hsl"], [function(r4) { var n2 = r4.h, o3 = r4.s, a2 = r4.v, i2 = r4.a, s2 = void 0 === i2 ? 1 : i2; if (!t3(n2) || !t3(o3) || !t3(a2)) return null; var d2 = (function(r5) { return { h: e2(r5.h), s: u2(r5.s, 0, 100), v: u2(r5.v, 0, 100), a: u2(r5.a) }; })({ h: Number(n2), s: Number(o3), v: Number(a2), a: Number(s2) }); return v(d2); }, "hsv"]] }; var j = function(r4, t3) { for (var n2 = 0; n2 < t3.length; n2++) { var u2 = t3[n2][0](r4); if (u2) return [u2, t3[n2][1]]; } return [null, void 0]; }; var w = function(r4) { return "string" == typeof r4 ? j(r4.trim(), $.string) : "object" == typeof r4 && null !== r4 ? j(r4, $.object) : [null, void 0]; }; var k = function(r4, t3) { var n2 = y(r4); return { h: n2.h, s: u2(n2.s + 100 * t3, 0, 100), l: n2.l, a: n2.a }; }; var E = function(r4) { return (299 * r4.r + 587 * r4.g + 114 * r4.b) / 1e3 / 255; }; var R = function(r4, t3) { var n2 = y(r4); return { h: n2.h, s: n2.s, l: u2(n2.l + 100 * t3, 0, 100), a: n2.a }; }; var q = (function() { function r4(r5) { this.parsed = w(r5)[0], this.rgba = this.parsed || { r: 0, g: 0, b: 0, a: 1 }; } return r4.prototype.isValid = function() { return null !== this.parsed; }, r4.prototype.brightness = function() { return n2(E(this.rgba), 2); }, r4.prototype.isDark = function() { return E(this.rgba) < 0.5; }, r4.prototype.isLight = function() { return E(this.rgba) >= 0.5; }, r4.prototype.toHex = function() { return r5 = i2(this.rgba), t3 = r5.r, u2 = r5.g, e2 = r5.b, a2 = (o3 = r5.a) < 1 ? g(n2(255 * o3)) : "", "#" + g(t3) + g(u2) + g(e2) + a2; var r5, t3, u2, e2, o3, a2; }, r4.prototype.toRgb = function() { return i2(this.rgba); }, r4.prototype.toRgbString = function() { return r5 = i2(this.rgba), t3 = r5.r, n2 = r5.g, u2 = r5.b, (e2 = r5.a) < 1 ? "rgba(" + t3 + ", " + n2 + ", " + u2 + ", " + e2 + ")" : "rgb(" + t3 + ", " + n2 + ", " + u2 + ")"; var r5, t3, n2, u2, e2; }, r4.prototype.toHsl = function() { return p2(y(this.rgba)); }, r4.prototype.toHslString = function() { return r5 = p2(y(this.rgba)), t3 = r5.h, n2 = r5.s, u2 = r5.l, (e2 = r5.a) < 1 ? "hsla(" + t3 + ", " + n2 + "%, " + u2 + "%, " + e2 + ")" : "hsl(" + t3 + ", " + n2 + "%, " + u2 + "%)"; var r5, t3, n2, u2, e2; }, r4.prototype.toHsv = function() { return r5 = c(this.rgba), { h: o3(r5.h), s: n2(r5.s), v: n2(r5.v), a: n2(r5.a, 3) }; var r5; }, r4.prototype.invert = function() { return A({ r: 255 - (r5 = this.rgba).r, g: 255 - r5.g, b: 255 - r5.b, a: r5.a }); var r5; }, r4.prototype.saturate = function(r5) { return void 0 === r5 && (r5 = 0.1), A(k(this.rgba, r5)); }, r4.prototype.desaturate = function(r5) { return void 0 === r5 && (r5 = 0.1), A(k(this.rgba, -r5)); }, r4.prototype.grayscale = function() { return A(k(this.rgba, -1)); }, r4.prototype.lighten = function(r5) { return void 0 === r5 && (r5 = 0.1), A(R(this.rgba, r5)); }, r4.prototype.darken = function(r5) { return void 0 === r5 && (r5 = 0.1), A(R(this.rgba, -r5)); }, r4.prototype.rotate = function(r5) { return void 0 === r5 && (r5 = 15), this.hue(y(this.rgba).h + r5); }, r4.prototype.alpha = function(r5) { return "number" == typeof r5 ? A({ r: (t3 = this.rgba).r, g: t3.g, b: t3.b, a: r5 }) : n2(this.rgba.a, 3); var t3; }, r4.prototype.hue = function(r5) { var t3 = y(this.rgba); return "number" == typeof r5 ? A({ h: r5, s: t3.s, l: t3.l, a: t3.a }) : o3(t3.h); }, r4.prototype.isEqual = function(r5) { return this.toHex() === A(r5).toHex(); }, r4; })(); var A = function(r4) { return r4 instanceof q ? r4 : new q(r4); }; var C = []; var D = function(r4) { r4.forEach(function(r5) { C.indexOf(r5) < 0 && (r5(q, $), C.push(r5)); }); }; // packages/global-styles-engine/build-module/utils/duotone.mjs function getValuesFromColors(colors2 = []) { const values = { r: [], g: [], b: [], a: [] }; colors2.forEach((color) => { const rgbColor = A(color).toRgb(); values.r.push(rgbColor.r / 255); values.g.push(rgbColor.g / 255); values.b.push(rgbColor.b / 255); values.a.push(rgbColor.a); }); return values; } function getDuotoneUnsetStylesheet(selector2) { return `${selector2}{filter:none}`; } function getDuotoneStylesheet(selector2, id) { return `${selector2}{filter:url(#${id})}`; } function getDuotoneFilter(id, colors2) { const values = getValuesFromColors(colors2); return ` `; } // packages/global-styles-engine/build-module/utils/string.mjs function kebabCase(str3) { return str3.replace(/([a-z])([A-Z])/g, "$1-$2").replace(/([0-9])([a-zA-Z])/g, "$1-$2").replace(/([a-zA-Z])([0-9])/g, "$1-$2").replace(/[\s_]+/g, "-").toLowerCase(); } // packages/global-styles-engine/build-module/utils/spacing.mjs function getSpacingPresetCssVar(value) { if (!value) { return; } const slug = value.match(/var:preset\|spacing\|(.+)/); if (!slug) { return value; } return `var(--wp--preset--spacing--${slug[1]})`; } // packages/global-styles-engine/build-module/utils/gap.mjs function getGapBoxControlValueFromStyle(blockGapValue) { if (!blockGapValue) { return null; } const isValueString = typeof blockGapValue === "string"; return { top: isValueString ? blockGapValue : blockGapValue?.top, left: isValueString ? blockGapValue : blockGapValue?.left }; } function getGapCSSValue(blockGapValue, defaultValue2 = "0") { const blockGapBoxControlValue = getGapBoxControlValueFromStyle(blockGapValue); if (!blockGapBoxControlValue) { return null; } const row = getSpacingPresetCssVar(blockGapBoxControlValue?.top) || defaultValue2; const column = getSpacingPresetCssVar(blockGapBoxControlValue?.left) || defaultValue2; return row === column ? row : `${row} ${column}`; } // packages/global-styles-engine/build-module/utils/background.mjs var BACKGROUND_BLOCK_DEFAULT_VALUES = { backgroundSize: "cover", backgroundPosition: "50% 50%" // used only when backgroundSize is 'contain'. }; function hasImageUrl(backgroundImage) { return typeof backgroundImage === "object" && backgroundImage !== null && "url" in backgroundImage && !!backgroundImage.url; } function setBackgroundStyleDefaults(backgroundStyle) { if (!backgroundStyle || !hasImageUrl(backgroundStyle.backgroundImage)) { return; } let backgroundStylesWithDefaults; if (!backgroundStyle?.backgroundSize) { backgroundStylesWithDefaults = { backgroundSize: BACKGROUND_BLOCK_DEFAULT_VALUES.backgroundSize }; } if ("contain" === backgroundStyle?.backgroundSize && !backgroundStyle?.backgroundPosition) { backgroundStylesWithDefaults = { backgroundPosition: BACKGROUND_BLOCK_DEFAULT_VALUES.backgroundPosition }; } return backgroundStylesWithDefaults; } // packages/global-styles-engine/build-module/utils/layout.mjs var LAYOUT_DEFINITIONS = { default: { name: "default", slug: "flow", className: "is-layout-flow", baseStyles: [ { selector: " > .alignleft", rules: { float: "left", "margin-inline-start": "0", "margin-inline-end": "2em" } }, { selector: " > .alignright", rules: { float: "right", "margin-inline-start": "2em", "margin-inline-end": "0" } }, { selector: " > .aligncenter", rules: { "margin-left": "auto !important", "margin-right": "auto !important" } } ], spacingStyles: [ { selector: " > :first-child", rules: { "margin-block-start": "0" } }, { selector: " > :last-child", rules: { "margin-block-end": "0" } }, { selector: " > *", rules: { "margin-block-start": null, "margin-block-end": "0" } } ] }, constrained: { name: "constrained", slug: "constrained", className: "is-layout-constrained", baseStyles: [ { selector: " > .alignleft", rules: { float: "left", "margin-inline-start": "0", "margin-inline-end": "2em" } }, { selector: " > .alignright", rules: { float: "right", "margin-inline-start": "2em", "margin-inline-end": "0" } }, { selector: " > .aligncenter", rules: { "margin-left": "auto !important", "margin-right": "auto !important" } }, { selector: " > :where(:not(.alignleft):not(.alignright):not(.alignfull))", rules: { "max-width": "var(--wp--style--global--content-size)", "margin-left": "auto !important", "margin-right": "auto !important" } }, { selector: " > .alignwide", rules: { "max-width": "var(--wp--style--global--wide-size)" } } ], spacingStyles: [ { selector: " > :first-child", rules: { "margin-block-start": "0" } }, { selector: " > :last-child", rules: { "margin-block-end": "0" } }, { selector: " > *", rules: { "margin-block-start": null, "margin-block-end": "0" } } ] }, flex: { name: "flex", slug: "flex", className: "is-layout-flex", displayMode: "flex", baseStyles: [ { selector: "", rules: { "flex-wrap": "wrap", "align-items": "center" } }, { selector: " > :is(*, div)", // :is(*, div) instead of just * increases the specificity by 001. rules: { margin: "0" } } ], spacingStyles: [ { selector: "", rules: { gap: null } } ] }, grid: { name: "grid", slug: "grid", className: "is-layout-grid", displayMode: "grid", baseStyles: [ { selector: " > :is(*, div)", // :is(*, div) instead of just * increases the specificity by 001. rules: { margin: "0" } } ], spacingStyles: [ { selector: "", rules: { gap: null } } ] } }; // packages/global-styles-engine/build-module/utils/viewport.mjs var DEFAULT_VIEWPORT_BREAKPOINTS = { mobile: "480px", tablet: "782px" }; var VIEWPORT_SIZE_REGEXP = /^(\d+|\d*\.\d+)(px|em|rem)$/; var DEFAULT_FONT_SIZE = 16; function isViewportSettings(configOrSettings) { return "mobile" in configOrSettings || "tablet" in configOrSettings; } function getViewportSettings(configOrSettings) { if (!configOrSettings || typeof configOrSettings !== "object") { return {}; } if (isViewportSettings(configOrSettings)) { return configOrSettings; } return configOrSettings.settings?.viewport ?? {}; } function isValidViewportSize(value) { return typeof value === "string" && VIEWPORT_SIZE_REGEXP.test(value.trim()); } function getViewportBreakpointValueInPixels(value) { if (typeof value === "number") { return value; } if (typeof value !== "string") { return void 0; } const match3 = value.trim().match(VIEWPORT_SIZE_REGEXP); if (!match3) { return void 0; } const numericValue = Number.parseFloat(match3[1]); const unit = match3[2]; return unit === "px" ? numericValue : numericValue * DEFAULT_FONT_SIZE; } function getViewportBreakpoints(configOrSettings) { const viewportSettings = getViewportSettings(configOrSettings); const breakpoints = {}; const breakpointValuesInPixels = {}; Object.keys(DEFAULT_VIEWPORT_BREAKPOINTS).forEach((breakpoint) => { const key = breakpoint; const value = viewportSettings[key]; const px = getViewportBreakpointValueInPixels(value); if (px !== void 0 && isValidViewportSize(value)) { breakpoints[key] = value.trim(); breakpointValuesInPixels[key] = px; } }); const breakpointNames = Object.keys(breakpoints); if (!breakpointNames.length) { return { ...DEFAULT_VIEWPORT_BREAKPOINTS }; } if (1 === breakpointNames.length) { return breakpoints; } const mobile = breakpoints.mobile; const tablet = breakpoints.tablet; if (breakpointValuesInPixels.mobile >= breakpointValuesInPixels.tablet) { return { mobile }; } return { mobile, tablet }; } function getResponsiveMediaQueries(configOrSettings) { const breakpoints = getViewportBreakpoints(configOrSettings); const mediaQueries = {}; if (breakpoints.mobile) { mediaQueries["@mobile"] = `@media (width <= ${breakpoints.mobile})`; } if (breakpoints.tablet) { mediaQueries["@tablet"] = breakpoints.mobile ? `@media (${breakpoints.mobile} < width <= ${breakpoints.tablet})` : `@media (width <= ${breakpoints.tablet})`; } return mediaQueries; } // packages/global-styles-engine/build-module/core/render.mjs var ELEMENT_CLASS_NAMES = { button: "wp-element-button", caption: "wp-element-caption" }; var BLOCK_SUPPORT_FEATURE_LEVEL_SELECTORS = { __experimentalBorder: "border", color: "color", dimensions: "dimensions", spacing: "spacing", typography: "typography" }; var VALID_BLOCK_PSEUDO_SELECTORS = { "core/button": [":hover", ":focus", ":focus-visible", ":active"], "core/navigation-link": [":hover", ":focus", ":focus-visible", ":active"] }; var VALID_ELEMENT_PSEUDO_SELECTORS = { link: [ ":link", ":any-link", ":visited", ":hover", ":focus", ":focus-visible", ":active" ], button: [ ":link", ":any-link", ":visited", ":hover", ":focus", ":focus-visible", ":active" ] }; function getPresetsClasses(blockSelector = "*", blockPresets = {}) { return PRESET_METADATA.reduce( (declarations, { path, cssVarInfix, classes }) => { if (!classes) { return declarations; } const presetByOrigin = getValueFromObjectPath( blockPresets, path, [] ); ["default", "theme", "custom"].forEach((origin) => { if (presetByOrigin[origin]) { presetByOrigin[origin].forEach( ({ slug }) => { classes.forEach( ({ classSuffix, propertyName }) => { const classSelectorToUse = `.has-${kebabCase( slug )}-${classSuffix}`; const selectorToUse = blockSelector ? `:where(${blockSelector})${classSelectorToUse}` : classSelectorToUse; const value = `var(--wp--preset--${cssVarInfix}--${kebabCase( slug )})`; declarations += `${selectorToUse}{${propertyName}: ${value} !important;}`; } ); } ); } }); return declarations; }, "" ); } function getPresetsSvgFilters(blockPresets = {}) { return PRESET_METADATA.filter( // Duotone are the only type of filters for now. (metadata) => metadata.path.at(-1) === "duotone" ).flatMap((metadata) => { const presetByOrigin = getValueFromObjectPath( blockPresets, metadata.path, {} ); return ["default", "theme", "custom"].filter((origin) => presetByOrigin[origin]).flatMap( (origin) => presetByOrigin[origin].map( (preset) => getDuotoneFilter( `wp-duotone-${preset.slug}`, preset.colors ) ) ).join(""); }); } function flattenTree(input = {}, prefix2, token) { let result = []; Object.keys(input).forEach((key) => { const newKey = prefix2 + kebabCase(key.replace("/", "-")); const newLeaf = input[key]; if (newLeaf instanceof Object) { const newPrefix = newKey + token; result = [...result, ...flattenTree(newLeaf, newPrefix, token)]; } else { result.push(`${newKey}: ${newLeaf}`); } }); return result; } var updateParagraphTextIndentSelector = (featureDeclarations, settings, blockName) => { if (blockName !== "core/paragraph") { return featureDeclarations; } const blockSettings = settings?.blocks?.["core/paragraph"]; const textIndentSetting = blockSettings?.typography?.textIndent ?? settings?.typography?.textIndent ?? "subsequent"; if (textIndentSetting !== "all") { return featureDeclarations; } const oldSelector = ".wp-block-paragraph + .wp-block-paragraph"; const newSelector = ".wp-block-paragraph"; if (oldSelector in featureDeclarations) { const declarations = featureDeclarations[oldSelector]; const updated = { ...featureDeclarations }; delete updated[oldSelector]; updated[newSelector] = declarations; return updated; } return featureDeclarations; }; var updateButtonWidthDeclarations = (featureDeclarations, settings) => { const buttonSelector = ".wp-block-button"; if (!(buttonSelector in featureDeclarations)) { return featureDeclarations; } const updated = { ...featureDeclarations }; updated[buttonSelector] = updated[buttonSelector].map( (declaration) => { const match3 = declaration.match(/^width:\s*(.+)$/); if (!match3) { return declaration; } const value = match3[1]; let percentage = null; if (value.endsWith("%")) { percentage = parseFloat(value); } const presetPrefix = "var(--wp--preset--dimension--"; if (percentage === null && value.startsWith(presetPrefix) && value.endsWith(")")) { const slug = value.slice(presetPrefix.length, -1); const dimensionSizes = { ...settings?.dimensions?.dimensionSizes ?? {}, ...settings?.blocks?.["core/button"]?.dimensions?.dimensionSizes ?? {} }; for (const origin of Object.values(dimensionSizes)) { if (!Array.isArray(origin)) { continue; } for (const preset of origin) { if (preset.slug === slug && typeof preset.size === "string" && preset.size.endsWith("%")) { percentage = parseFloat(preset.size); break; } } if (percentage !== null) { break; } } } if (percentage === null || isNaN(percentage)) { return declaration; } return `width: calc(${percentage} * 1% - (var(--wp--style--block-gap, 0.5em) * (1 - ${percentage} / 100)))`; } ); return updated; }; var getFeatureDeclarations = (selectors5, styles) => { const declarations = {}; Object.entries(selectors5).forEach(([feature, selector2]) => { if (feature === "root" || !styles?.[feature]) { return; } const isShorthand = typeof selector2 === "string"; if (!isShorthand && typeof selector2 === "object" && selector2 !== null) { Object.entries(selector2).forEach( ([subfeature, subfeatureSelector]) => { if (subfeature === "root" || !styles?.[feature][subfeature]) { return; } const subfeatureStyles = { [feature]: { [subfeature]: styles[feature][subfeature] } }; const newDeclarations = getStylesDeclarations(subfeatureStyles); declarations[subfeatureSelector] = [ ...declarations[subfeatureSelector] || [], ...newDeclarations ]; delete styles[feature][subfeature]; } ); } if (isShorthand || typeof selector2 === "object" && selector2 !== null && "root" in selector2) { const featureSelector = isShorthand ? selector2 : selector2.root; const featureStyles = { [feature]: styles[feature] }; const newDeclarations = getStylesDeclarations(featureStyles); declarations[featureSelector] = [ ...declarations[featureSelector] || [], ...newDeclarations ]; delete styles[feature]; } }); return declarations; }; function getStylesDeclarations(blockStyles = {}, selector2 = "", useRootPaddingAlign, tree = {}, disableRootPadding = false) { const isRoot = ROOT_BLOCK_SELECTOR === selector2; const output = Object.entries( import_blocks2.__EXPERIMENTAL_STYLE_PROPERTY ).reduce( (declarations, [key, { value, properties, useEngine, rootOnly }]) => { if (rootOnly && !isRoot) { return declarations; } const pathToValue = value; if (pathToValue[0] === "elements" || useEngine) { return declarations; } const styleValue = getValueFromObjectPath( blockStyles, pathToValue ); if (key === "--wp--style--root--padding" && (typeof styleValue === "string" || !useRootPaddingAlign)) { return declarations; } if (properties && typeof styleValue !== "string") { Object.entries(properties).forEach((entry) => { const [name2, prop] = entry; if (!getValueFromObjectPath(styleValue, [prop], false)) { return; } const cssProperty = name2.startsWith("--") ? name2 : kebabCase(name2); declarations.push( `${cssProperty}: ${(0, import_style_engine2.getCSSValueFromRawStyle)( getValueFromObjectPath(styleValue, [prop]) )}` ); }); } else if (getValueFromObjectPath(blockStyles, pathToValue, false)) { const cssProperty = key.startsWith("--") ? key : kebabCase(key); declarations.push( `${cssProperty}: ${(0, import_style_engine2.getCSSValueFromRawStyle)( getValueFromObjectPath(blockStyles, pathToValue) )}` ); } return declarations; }, [] ); if (!!blockStyles.background) { if (blockStyles.background?.backgroundImage) { blockStyles.background.backgroundImage = getResolvedValue( blockStyles.background.backgroundImage, tree ); } if (!isRoot && !!blockStyles.background?.backgroundImage?.id) { blockStyles = { ...blockStyles, background: { ...blockStyles.background, ...setBackgroundStyleDefaults(blockStyles.background) } }; } } const extraRules = (0, import_style_engine2.getCSSRules)(blockStyles); extraRules.forEach((rule) => { if (isRoot && (useRootPaddingAlign || disableRootPadding) && rule.key.startsWith("padding")) { return; } const cssProperty = rule.key.startsWith("--") ? rule.key : kebabCase(rule.key); let ruleValue = getResolvedValue(rule.value, tree); if (cssProperty === "font-size") { ruleValue = getTypographyFontSizeValue( { name: "", slug: "", size: ruleValue }, tree?.settings ); } if (cssProperty === "aspect-ratio") { output.push("min-height: unset"); } output.push(`${cssProperty}: ${ruleValue}`); }); return output; } function getLayoutStyles({ layoutDefinitions = LAYOUT_DEFINITIONS, style, selector: selector2, hasBlockGapSupport, hasFallbackGapSupport, fallbackGapValue }) { let ruleset = ""; const blockGapValue = style?.spacing?.blockGap; let gapValue = hasBlockGapSupport ? getGapCSSValue(blockGapValue) : ""; if (hasFallbackGapSupport) { if (selector2 === ROOT_BLOCK_SELECTOR) { gapValue = !gapValue ? "0.5em" : gapValue; } else if (!hasBlockGapSupport && fallbackGapValue) { gapValue = fallbackGapValue; } } const rowGapValue = hasBlockGapSupport && blockGapValue && typeof blockGapValue !== "string" ? getGapCSSValue(blockGapValue.top) : gapValue; if (gapValue && layoutDefinitions) { Object.values(layoutDefinitions).forEach( ({ className, name: name2, spacingStyles }) => { if (!hasBlockGapSupport && "flex" !== name2 && "grid" !== name2) { return; } const layoutGapValue = ["default", "constrained"].includes( name2 ) ? rowGapValue : gapValue; if (spacingStyles?.length) { spacingStyles.forEach((spacingStyle) => { const declarations = []; if (spacingStyle.rules) { Object.entries(spacingStyle.rules).forEach( ([cssProperty, cssValue]) => { declarations.push( `${cssProperty}: ${cssValue ? cssValue : layoutGapValue}` ); } ); } if (declarations.length) { let combinedSelector = ""; if (!hasBlockGapSupport) { combinedSelector = selector2 === ROOT_BLOCK_SELECTOR ? `:where(.${className}${spacingStyle?.selector || ""})` : `:where(${selector2}.${className}${spacingStyle?.selector || ""})`; } else { combinedSelector = selector2 === ROOT_BLOCK_SELECTOR ? `:root :where(.${className})${spacingStyle?.selector || ""}` : `:root :where(${selector2}-${className})${spacingStyle?.selector || ""}`; } ruleset += `${combinedSelector} { ${declarations.join( "; " )}; }`; } }); } } ); if (selector2 === ROOT_BLOCK_SELECTOR && hasBlockGapSupport) { ruleset += `${ROOT_CSS_PROPERTIES_SELECTOR} { --wp--style--block-gap: ${gapValue}; }`; } } if (selector2 === ROOT_BLOCK_SELECTOR && layoutDefinitions) { const validDisplayModes = ["block", "flex", "grid"]; Object.values(layoutDefinitions).forEach( ({ className, displayMode, baseStyles }) => { if (displayMode && validDisplayModes.includes(displayMode)) { ruleset += `${selector2} .${className} { display:${displayMode}; }`; } if (baseStyles?.length) { baseStyles.forEach((baseStyle) => { const declarations = []; if (baseStyle.rules) { Object.entries(baseStyle.rules).forEach( ([cssProperty, cssValue]) => { declarations.push( `${cssProperty}: ${cssValue}` ); } ); } if (declarations.length) { const combinedSelector = `.${className}${baseStyle?.selector || ""}`; ruleset += `${combinedSelector} { ${declarations.join( "; " )}; }`; } }); } } ); } return ruleset; } var STYLE_KEYS = [ "border", "color", "dimensions", "spacing", "typography", "filter", "outline", "shadow", "background" ]; function pickStyleKeys(treeToPickFrom, responsiveMediaQueries) { return pickStyleAndPseudoKeys( treeToPickFrom, void 0, responsiveMediaQueries ); } function pickStyleAndPseudoKeys(treeToPickFrom, blockName, responsiveMediaQueries) { if (!treeToPickFrom) { return {}; } const entries = Object.entries(treeToPickFrom); const allowedPseudoSelectors = blockName ? VALID_BLOCK_PSEUDO_SELECTORS[blockName] ?? [] : []; const pickedEntries = entries.filter( ([key]) => STYLE_KEYS.includes(key) || allowedPseudoSelectors.includes(key) || responsiveMediaQueries[key] ); const clonedEntries = pickedEntries.map(([key, style]) => [ key, JSON.parse(JSON.stringify(style)) ]); return Object.fromEntries(clonedEntries); } function getPseudoStyleNodes(node) { const { styles, selector: selector2, featureSelectors, name: name2, elementName, mediaQuery, variationName } = node; const pseudoSelectors = name2 ? VALID_BLOCK_PSEUDO_SELECTORS[name2] ?? [] : VALID_ELEMENT_PSEUDO_SELECTORS[elementName ?? ""] ?? []; if (!pseudoSelectors.length) { return []; } return pseudoSelectors.flatMap((pseudoSelector) => { const pseudoStyles = styles?.[pseudoSelector]; if (!pseudoStyles || typeof pseudoStyles !== "object") { return []; } return [ { styles: JSON.parse(JSON.stringify(pseudoStyles)), selector: selector2, selectorSuffix: pseudoSelector, mediaQuery, featureSelectors: featureSelectors && typeof featureSelectors !== "string" ? featureSelectors : void 0, name: name2, elementName, variationName } ]; }); } function getResponsiveStyleNodes(node, responsiveMediaQueries) { const { styles, selector: selector2, fallbackGapValue, featureSelectors, hasLayoutSupport, layoutHasBlockGapSupport, layoutSelector, name: name2, elementName, isStyleVariation, variationName } = node; if (!name2 && !elementName) { return []; } return Object.entries(responsiveMediaQueries).flatMap( ([breakpointKey, mediaQuery]) => { const breakpointStyles = styles?.[breakpointKey]; if (!breakpointStyles || typeof breakpointStyles !== "object") { return []; } return [ { styles: JSON.parse(JSON.stringify(breakpointStyles)), selector: selector2, mediaQuery, featureSelectors: featureSelectors && typeof featureSelectors !== "string" ? featureSelectors : void 0, fallbackGapValue, hasLayoutSupport, name: name2, elementName, isStyleVariation, variationName, layoutSelector, layoutHasBlockGapSupport } ]; } ); } function getElementStylesByName(styleNode, responsiveMediaQueries) { const elementStylesByName = { ...styleNode?.elements ?? {} }; Object.keys(responsiveMediaQueries).forEach((breakpointKey) => { Object.entries(styleNode?.[breakpointKey]?.elements ?? {}).forEach( ([elementName, styles]) => { elementStylesByName[elementName] = { ...elementStylesByName[elementName] ?? {}, [breakpointKey]: styles }; } ); }); return elementStylesByName; } var getNodesWithStyles = (tree, blockSelectors) => { const nodes = []; if (!tree?.styles) { return nodes; } const responsiveMediaQueries = getResponsiveMediaQueries(tree); const styles = pickStyleKeys(tree.styles, responsiveMediaQueries); if (styles) { nodes.push({ styles, selector: ROOT_BLOCK_SELECTOR, // Root selector (body) styles should not be wrapped in `:root where()` to keep // specificity at (0,0,1) and maintain backwards compatibility. skipSelectorWrapper: true }); } Object.entries(import_blocks2.__EXPERIMENTAL_ELEMENTS).forEach(([name2, selector2]) => { if (tree.styles?.elements?.[name2]) { nodes.push({ styles: tree.styles?.elements?.[name2] ?? {}, selector: selector2, elementName: name2, // Top level elements that don't use a class name should not receive the // `:root :where()` wrapper to maintain backwards compatibility. skipSelectorWrapper: !ELEMENT_CLASS_NAMES[name2] }); } }); Object.entries(tree.styles?.blocks ?? {}).forEach( ([blockName, node]) => { const blockStyles = pickStyleAndPseudoKeys( node, blockName, responsiveMediaQueries ); const typedNode = node; const variationNodesToAdd = []; const variationStyleNodesToAdd = []; if (typedNode?.variations) { Object.entries(typedNode.variations).forEach( ([variationName, variation]) => { const typedVariation = variation; const variationStyles = pickStyleAndPseudoKeys( typedVariation, blockName, responsiveMediaQueries ); if (typedVariation?.css) { variationStyles.css = typedVariation.css; } const variationSelector = typeof blockSelectors !== "string" ? blockSelectors[blockName]?.styleVariationSelectors?.[variationName] : void 0; if (variationSelector && typeof blockSelectors !== "string") { const blockSelector = blockSelectors[blockName]; variationStyleNodesToAdd.push({ styles: variationStyles, selector: variationSelector, featureSelectors: blockSelector?.featureSelectors, fallbackGapValue: blockSelector?.fallbackGapValue, hasLayoutSupport: blockSelector?.hasLayoutSupport, isStyleVariation: true, variationName, layoutSelector: variationSelector + blockSelector.selector, layoutHasBlockGapSupport: true, name: blockName }); } Object.entries( getElementStylesByName( typedVariation, responsiveMediaQueries ) ).forEach(([element, elementStyles]) => { if (elementStyles && import_blocks2.__EXPERIMENTAL_ELEMENTS[element]) { variationNodesToAdd.push({ styles: elementStyles, selector: scopeSelector( variationSelector, import_blocks2.__EXPERIMENTAL_ELEMENTS[element] ), elementName: element, isStyleVariation: true }); } }); Object.entries(typedVariation?.blocks ?? {}).forEach( ([ variationBlockName, variationBlockStyles ]) => { const variationBlockSelector = typeof blockSelectors !== "string" ? scopeSelector( variationSelector, blockSelectors[variationBlockName]?.selector ) : void 0; const variationDuotoneSelector = typeof blockSelectors !== "string" ? scopeSelector( variationSelector, blockSelectors[variationBlockName]?.duotoneSelector ) : void 0; const variationFeatureSelectors = typeof blockSelectors !== "string" ? scopeFeatureSelectors( variationSelector, blockSelectors[variationBlockName]?.featureSelectors ?? {} ) : void 0; const variationBlockStyleNodes = pickStyleAndPseudoKeys( variationBlockStyles, variationBlockName, responsiveMediaQueries ); if (variationBlockStyles?.css) { variationBlockStyleNodes.css = variationBlockStyles.css; } if (!variationBlockSelector || typeof blockSelectors === "string") { return; } variationNodesToAdd.push({ selector: variationBlockSelector, name: variationBlockName, isStyleVariation: true, duotoneSelector: variationDuotoneSelector, featureSelectors: variationFeatureSelectors, fallbackGapValue: blockSelectors[variationBlockName]?.fallbackGapValue, hasLayoutSupport: blockSelectors[variationBlockName]?.hasLayoutSupport, styles: variationBlockStyleNodes }); Object.entries( getElementStylesByName( variationBlockStyles, responsiveMediaQueries ) ).forEach( ([ variationBlockElement, variationBlockElementStyles ]) => { if (variationBlockElementStyles && import_blocks2.__EXPERIMENTAL_ELEMENTS[variationBlockElement]) { variationNodesToAdd.push({ styles: variationBlockElementStyles, selector: scopeSelector( variationBlockSelector, import_blocks2.__EXPERIMENTAL_ELEMENTS[variationBlockElement] ), elementName: variationBlockElement, isStyleVariation: true }); } } ); } ); } ); } if (typeof blockSelectors !== "string" && blockSelectors?.[blockName]?.selector) { nodes.push({ duotoneSelector: blockSelectors[blockName].duotoneSelector, fallbackGapValue: blockSelectors[blockName].fallbackGapValue, hasLayoutSupport: blockSelectors[blockName].hasLayoutSupport, selector: blockSelectors[blockName].selector, styles: blockStyles, featureSelectors: blockSelectors[blockName].featureSelectors, name: blockName }); } nodes.push(...variationStyleNodesToAdd); Object.entries( getElementStylesByName(typedNode, responsiveMediaQueries) ).forEach(([elementName, value]) => { if (typeof blockSelectors !== "string" && value && blockSelectors?.[blockName] && import_blocks2.__EXPERIMENTAL_ELEMENTS[elementName]) { nodes.push({ styles: value, selector: blockSelectors[blockName]?.selector.split(",").map((sel) => { const elementSelectors = import_blocks2.__EXPERIMENTAL_ELEMENTS[elementName].split(","); return elementSelectors.map( (elementSelector) => sel + " " + elementSelector ); }).join(","), elementName }); } }); nodes.push(...variationNodesToAdd); } ); return nodes; }; var getNodesWithSettings = (tree, blockSelectors) => { const nodes = []; if (!tree?.settings) { return nodes; } const pickPresets = (treeToPickFrom) => { let presets2 = {}; PRESET_METADATA.forEach(({ path }) => { const value = getValueFromObjectPath(treeToPickFrom, path, false); if (value !== false) { presets2 = setImmutably(presets2, path, value); } }); return presets2; }; const presets = pickPresets(tree.settings); const custom = tree.settings?.custom; if (Object.keys(presets).length > 0 || custom) { nodes.push({ presets, custom, selector: ROOT_CSS_PROPERTIES_SELECTOR }); } Object.entries(tree.settings?.blocks ?? {}).forEach( ([blockName, node]) => { const blockCustom = node.custom; if (typeof blockSelectors === "string" || !blockSelectors[blockName]) { return; } const blockPresets = pickPresets(node); if (Object.keys(blockPresets).length > 0 || blockCustom) { nodes.push({ presets: blockPresets, custom: blockCustom, selector: blockSelectors[blockName]?.selector, featureSelectors: blockSelectors[blockName]?.featureSelectors }); } } ); return nodes; }; function resolveFeatureSelector(featureSelectors, featureKey, fallback) { if (!featureSelectors || typeof featureSelectors === "string") { return fallback; } const feature = featureSelectors[featureKey]; if (typeof feature === "string") { return feature; } if (typeof feature === "object" && feature.root) { return feature.root; } return fallback; } function getPresetVarDeclarations(presets, mergedSettings, { path, valueKey, valueFunc, cssVarInfix }) { const presetByOrigin = getValueFromObjectPath( presets, path, [] ); const declarations = []; for (const origin of ["default", "theme", "custom"]) { if (!presetByOrigin[origin]) { continue; } for (const value of presetByOrigin[origin]) { const slug = kebabCase(value.slug); if (valueKey && !valueFunc) { declarations.push( `--wp--preset--${cssVarInfix}--${slug}: ${value[valueKey]}` ); } else if (valueFunc && typeof valueFunc === "function") { declarations.push( `--wp--preset--${cssVarInfix}--${slug}: ${valueFunc( value, mergedSettings )}` ); } } } return declarations; } var generateCustomProperties = (tree, blockSelectors) => { const nodes = getNodesWithSettings(tree, blockSelectors); let ruleset = ""; for (const { presets, custom, selector: selector2, featureSelectors } of nodes) { const defaultSelector = selector2; const varsBySelector = { [defaultSelector]: [] }; if (tree?.settings) { for (const metadata of PRESET_METADATA) { const declarations = getPresetVarDeclarations( presets, tree.settings, metadata ); if (declarations.length === 0) { continue; } const target = resolveFeatureSelector( featureSelectors, metadata.path[0], defaultSelector ); if (!varsBySelector[target]) { varsBySelector[target] = []; } varsBySelector[target].push(...declarations); } } const customProps = flattenTree(custom, "--wp--custom--", "--"); if (customProps.length > 0) { varsBySelector[defaultSelector].push(...customProps); } for (const [ruleSelector, declarations] of Object.entries( varsBySelector )) { if (declarations.length > 0) { ruleset += `${ruleSelector}{${declarations.join(";")};}`; } } } return ruleset; }; function renderStylesNode(node, { tree, useRootPaddingAlign, disableLayoutStyles, hasBlockGapSupport, hasFallbackGapSupport, disableRootPadding }) { const { selector: selector2, selectorSuffix, mediaQuery, duotoneSelector, styles, fallbackGapValue, hasLayoutSupport, featureSelectors, layoutSelector, layoutHasBlockGapSupport, skipSelectorWrapper, name: name2, variationName } = node; let ruleset = ""; const effectiveSelector = selectorSuffix ? appendToSelector(selector2, selectorSuffix) : selector2; if (featureSelectors && typeof featureSelectors !== "string") { let featureDeclarations = getFeatureDeclarations( featureSelectors, styles ); featureDeclarations = updateParagraphTextIndentSelector( featureDeclarations, tree.settings, name2 ); featureDeclarations = updateButtonWidthDeclarations( featureDeclarations, tree.settings ); Object.entries(featureDeclarations).forEach( ([featureSelector, declarations]) => { if (declarations.length) { let selectorForRule = variationName ? getBlockStyleVariationFeatureSelector( variationName, featureSelector ) : featureSelector; selectorForRule = selectorSuffix ? appendToSelector(selectorForRule, selectorSuffix) : selectorForRule; const rules = declarations.join(";"); ruleset += `:root :where(${selectorForRule}){${rules};}`; } } ); } if (duotoneSelector) { const duotoneStyles = {}; if (styles?.filter) { duotoneStyles.filter = styles.filter; delete styles.filter; } const duotoneDeclarations = getStylesDeclarations(duotoneStyles); if (duotoneDeclarations.length) { ruleset += `${duotoneSelector}{${duotoneDeclarations.join( ";" )};}`; } } const selectorForLayout = layoutSelector ?? effectiveSelector; const hasBlockGapSupportForLayout = layoutHasBlockGapSupport ?? hasBlockGapSupport; if (!disableLayoutStyles && (ROOT_BLOCK_SELECTOR === selectorForLayout || hasLayoutSupport)) { ruleset += getLayoutStyles({ style: styles, selector: selectorForLayout, hasBlockGapSupport: hasBlockGapSupportForLayout, hasFallbackGapSupport, fallbackGapValue }); } const styleDeclarations = getStylesDeclarations( styles, effectiveSelector, useRootPaddingAlign, tree, disableRootPadding ); if (styleDeclarations?.length) { const generalSelector = skipSelectorWrapper ? effectiveSelector : `:root :where(${effectiveSelector})`; ruleset += `${generalSelector}{${styleDeclarations.join(";")};}`; } if (styles?.css) { ruleset += processCSSNesting( styles.css, `:root :where(${effectiveSelector})` ); } if (mediaQuery && ruleset) { return `${mediaQuery}{${ruleset}}`; } return ruleset; } var transformToStyles = (tree, blockSelectors, hasBlockGapSupport, hasFallbackGapSupport, disableLayoutStyles = false, disableRootPadding = false, styleOptions = {}) => { const options = { blockGap: true, blockStyles: true, layoutStyles: true, marginReset: true, presets: true, rootPadding: true, variationStyles: false, ...styleOptions }; const normalizedTree = normalizeStyleStateAliases(tree); const nodesWithStyles = getNodesWithStyles( normalizedTree, blockSelectors ); const nodesWithSettings = getNodesWithSettings( normalizedTree, blockSelectors ); const useRootPaddingAlign = normalizedTree?.settings?.useRootPaddingAwareAlignments; const { contentSize, wideSize } = normalizedTree?.settings?.layout || {}; const hasBodyStyles = options.marginReset || options.rootPadding || options.layoutStyles; let ruleset = ""; if (options.presets && (contentSize || wideSize)) { ruleset += `${ROOT_CSS_PROPERTIES_SELECTOR} {`; ruleset = contentSize ? ruleset + ` --wp--style--global--content-size: ${contentSize};` : ruleset; ruleset = wideSize ? ruleset + ` --wp--style--global--wide-size: ${wideSize};` : ruleset; ruleset += "}"; } if (hasBodyStyles) { ruleset += ":where(body) {margin: 0;"; if (options.rootPadding && useRootPaddingAlign) { ruleset += `padding-right: 0; padding-left: 0; padding-top: var(--wp--style--root--padding-top); padding-bottom: var(--wp--style--root--padding-bottom) } .has-global-padding { padding-right: var(--wp--style--root--padding-right); padding-left: var(--wp--style--root--padding-left); } .has-global-padding > .alignfull { margin-right: calc(var(--wp--style--root--padding-right) * -1); margin-left: calc(var(--wp--style--root--padding-left) * -1); } .has-global-padding :where(:not(.alignfull.is-layout-flow) > .has-global-padding:not(.wp-block-block, .alignfull)) { padding-right: 0; padding-left: 0; } .has-global-padding :where(:not(.alignfull.is-layout-flow) > .has-global-padding:not(.wp-block-block, .alignfull)) > .alignfull { margin-left: 0; margin-right: 0; `; } ruleset += "}"; } if (options.blockStyles) { const responsiveMediaQueries = getResponsiveMediaQueries(tree); nodesWithStyles.forEach((node) => { if (node.isStyleVariation && !options.variationStyles) { return; } const responsiveNodes = getResponsiveStyleNodes( node, responsiveMediaQueries ); [ node, ...responsiveNodes, ...getPseudoStyleNodes(node), ...responsiveNodes.flatMap(getPseudoStyleNodes) ].forEach((expandedNode) => { ruleset += renderStylesNode(expandedNode, { tree: normalizedTree, useRootPaddingAlign, disableLayoutStyles, hasBlockGapSupport, hasFallbackGapSupport, disableRootPadding }); }); }); } if (options.layoutStyles) { ruleset = ruleset + ".wp-site-blocks > .alignleft { float: left; margin-right: 2em; }"; ruleset = ruleset + ".wp-site-blocks > .alignright { float: right; margin-left: 2em; }"; ruleset = ruleset + ".wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }"; } if (options.blockGap && hasBlockGapSupport) { const gapValue = getGapCSSValue(normalizedTree?.styles?.spacing?.blockGap) || "0.5em"; ruleset = ruleset + `:root :where(.wp-site-blocks) > * { margin-block-start: ${gapValue}; margin-block-end: 0; }`; ruleset = ruleset + ":root :where(.wp-site-blocks) > :first-child { margin-block-start: 0; }"; ruleset = ruleset + ":root :where(.wp-site-blocks) > :last-child { margin-block-end: 0; }"; } if (options.presets) { nodesWithSettings.forEach(({ selector: selector2, presets }) => { if (ROOT_BLOCK_SELECTOR === selector2 || ROOT_CSS_PROPERTIES_SELECTOR === selector2) { selector2 = ""; } const classes = getPresetsClasses(selector2, presets); if (classes.length > 0) { ruleset += classes; } }); } return ruleset; }; function generateSvgFilters(tree, blockSelectors) { const nodesWithSettings = getNodesWithSettings(tree, blockSelectors); return nodesWithSettings.flatMap(({ presets }) => { return getPresetsSvgFilters(presets); }); } var getSelectorsConfig = (blockType, rootSelector) => { if (blockType?.selectors && Object.keys(blockType.selectors).length > 0) { return blockType.selectors; } const config2 = { root: rootSelector }; Object.entries(BLOCK_SUPPORT_FEATURE_LEVEL_SELECTORS).forEach( ([featureKey, featureName]) => { const featureSelector = getBlockSelector(blockType, featureKey); if (featureSelector) { config2[featureName] = featureSelector; } } ); return config2; }; var getBlockSelectors = (blockTypes, variationInstanceId) => { const { getBlockStyles } = (0, import_data3.select)(import_blocks2.store); const result = {}; blockTypes.forEach((blockType) => { const name2 = blockType.name; const selector2 = getBlockSelector(blockType); if (!selector2) { return; } let duotoneSelector = getBlockSelector(blockType, "filter.duotone"); if (!duotoneSelector) { const rootSelector = getBlockSelector(blockType); const duotoneSupport = (0, import_blocks2.getBlockSupport)( blockType, "color.__experimentalDuotone", false ); if (typeof duotoneSupport === "string" && rootSelector) { duotoneSelector = scopeSelector(rootSelector, duotoneSupport); } } const hasLayoutSupport = !!blockType?.supports?.layout || !!blockType?.supports?.__experimentalLayout; const blockGapSupport = blockType?.supports?.spacing?.blockGap; const fallbackGapValue = typeof blockGapSupport === "object" && !Array.isArray(blockGapSupport) ? blockGapSupport.__experimentalDefault : void 0; const blockStyleVariations = getBlockStyles(name2); const styleVariationSelectors = {}; blockStyleVariations?.forEach((variation) => { const variationSuffix = variationInstanceId ? `-${variationInstanceId}` : ""; const variationName = `${variation.name}${variationSuffix}`; const styleVariationSelector = getBlockStyleVariationSelector( variationName, selector2 ); styleVariationSelectors[variationName] = styleVariationSelector; }); const featureSelectors = getSelectorsConfig(blockType, selector2); result[name2] = { duotoneSelector: duotoneSelector ?? void 0, fallbackGapValue, featureSelectors: Object.keys(featureSelectors).length ? featureSelectors : void 0, hasLayoutSupport, name: name2, selector: selector2, styleVariationSelectors: blockStyleVariations?.length ? styleVariationSelectors : void 0 }; }); return result; }; function updateConfigWithSeparator(config2) { const blocks = config2.styles?.blocks; const separatorBlock = blocks?.["core/separator"]; const needsSeparatorStyleUpdate = separatorBlock && separatorBlock.color?.background && !separatorBlock.color?.text && !separatorBlock.border?.color; if (needsSeparatorStyleUpdate) { return { ...config2, styles: { ...config2.styles, blocks: { ...blocks, "core/separator": { ...separatorBlock, color: { ...separatorBlock.color, text: separatorBlock.color?.background } } } } }; } return config2; } function processCSSNesting(css, blockSelector) { let processedCSS = ""; if (!css || css.trim() === "") { return processedCSS; } const parts = css.split("&"); parts.forEach((part) => { if (!part || part.trim() === "") { return; } const isRootCss = !part.includes("{"); if (isRootCss) { processedCSS += `:root :where(${blockSelector}){${part.trim()}}`; } else { const splitPart = part.replace("}", "").split("{"); if (splitPart.length !== 2) { return; } const [nestedSelector, cssValue] = splitPart; const matches = nestedSelector.match(/([>+~\s]*::[a-zA-Z-]+)/); const pseudoPart = matches ? matches[1] : ""; const withoutPseudoElement = matches ? nestedSelector.replace(pseudoPart, "").trim() : nestedSelector.trim(); let combinedSelector; if (withoutPseudoElement === "") { combinedSelector = blockSelector; } else { combinedSelector = nestedSelector.startsWith(" ") ? scopeSelector(blockSelector, withoutPseudoElement) : appendToSelector(blockSelector, withoutPseudoElement); } processedCSS += `:root :where(${combinedSelector})${pseudoPart}{${cssValue.trim()}}`; } }); return processedCSS; } function generateGlobalStyles(config2 = {}, blockTypes = [], options = {}) { const { hasBlockGapSupport: hasBlockGapSupportOption, hasFallbackGapSupport: hasFallbackGapSupportOption, disableLayoutStyles = false, disableRootPadding = false, styleOptions = {} } = options; const blocks = blockTypes.length > 0 ? blockTypes : (0, import_blocks2.getBlockTypes)(); const blockGap = getSetting(config2, "spacing.blockGap"); const hasBlockGapSupport = hasBlockGapSupportOption ?? (blockGap !== null && blockGap !== void 0); const hasFallbackGapSupport = hasFallbackGapSupportOption ?? !hasBlockGapSupport; if (!config2?.styles || !config2?.settings) { return [[], {}]; } const updatedConfig = updateConfigWithSeparator(config2); const blockSelectors = getBlockSelectors(blocks); const customProperties = generateCustomProperties( updatedConfig, blockSelectors ); const globalStyles = transformToStyles( updatedConfig, blockSelectors, hasBlockGapSupport, hasFallbackGapSupport, disableLayoutStyles, disableRootPadding, styleOptions ); const svgs = generateSvgFilters(updatedConfig, blockSelectors); const styles = [ { css: customProperties, isGlobalStyles: true }, { css: globalStyles, isGlobalStyles: true }, // Load custom CSS in own stylesheet so that any invalid CSS entered in the input won't break all the global styles in the editor. { css: updatedConfig?.styles?.css ?? "", isGlobalStyles: true }, { assets: svgs, __unstableType: "svgs", isGlobalStyles: true } ]; blocks.forEach((blockType) => { const blockStyles = updatedConfig?.styles?.blocks?.[blockType.name]; if (blockStyles?.css) { const { featureSelectors } = blockSelectors[blockType.name]; const cssFeatureSelector = typeof featureSelectors === "object" ? featureSelectors?.css : void 0; let resolvedCssSelector; if (typeof cssFeatureSelector === "string") { resolvedCssSelector = cssFeatureSelector; } else if (typeof cssFeatureSelector === "object") { resolvedCssSelector = cssFeatureSelector?.root; } const selector2 = resolvedCssSelector ?? blockSelectors[blockType.name].selector; styles.push({ css: processCSSNesting(blockStyles.css, selector2), isGlobalStyles: true }); } }); return [styles, updatedConfig.settings]; } // packages/global-styles-engine/build-module/variation.mjs function getVariationStyle(globalStyles, name2, variation, { resolveRefs = true } = {}) { if (!globalStyles?.styles?.blocks?.[name2]?.variations?.[variation]) { return void 0; } const replaceRefs = (variationStyles) => { Object.keys(variationStyles).forEach((key) => { const value = variationStyles[key]; if (typeof value === "object" && value !== null) { if (value.ref !== void 0) { if (typeof value.ref !== "string" || value.ref.trim() === "") { delete variationStyles[key]; } else { const refValue = getValueFromObjectPath( globalStyles, value.ref ); if (refValue !== void 0 && refValue !== null) { variationStyles[key] = refValue; } else { delete variationStyles[key]; } } } else { replaceRefs(value); if (Object.keys(value).length === 0) { delete variationStyles[key]; } } } }); }; const styles = JSON.parse( JSON.stringify( globalStyles.styles.blocks[name2].variations[variation] ) ); if (resolveRefs) { replaceRefs(styles); } return styles; } // packages/global-styles-engine/build-module/resolve-style.mjs var DEFAULT_STATE_VALUE = "default"; function isDefaultBlockStyleState(selectedState) { const viewport = selectedState?.viewport; const pseudoState = selectedState?.pseudoState; return (!viewport || viewport === DEFAULT_STATE_VALUE) && (!pseudoState || pseudoState === DEFAULT_STATE_VALUE); } function getStyleStatePath(selectedState) { if (isDefaultBlockStyleState(selectedState)) { return []; } return [selectedState.viewport, selectedState.pseudoState].filter( (state2) => !!state2 && state2 !== DEFAULT_STATE_VALUE ); } function getStyleForState(style, selectedState) { const path = getStyleStatePath(selectedState); if (!path.length) { return style; } return getValueFromObjectPath(style, path); } var TREE_STRUCTURAL_KEYS = /* @__PURE__ */ new Set(["blocks", "variations", "css"]); var EMPTY_INHERITANCE = Object.freeze({ value: {}, sources: {} }); var SOURCE_DESCRIPTORS = { root: { layer: "root" }, element: { layer: "element" }, block: { layer: "block" }, blockVariation: { layer: "blockVariation" } }; function createSourceDescriptor(type) { const descriptor = SOURCE_DESCRIPTORS[type]; if (!descriptor) { return null; } return { ...descriptor }; } function createContribution(styles, source) { if (!styles || !source) { return null; } return { styles, source }; } function getPathKey(path) { return path.join("."); } function getSourceForPath(source) { return { ...source }; } function isExplicitEmpty(value) { if (value === "" || value === null) { return true; } if (typeof value === "object" && !Array.isArray(value) && Object.keys(value).length === 0) { return true; } return false; } function isRefObject(value) { return value !== null && typeof value === "object" && !Array.isArray(value) && typeof value.ref === "string"; } function pickLayerRootContribution(layer) { if (!layer || typeof layer !== "object" || Array.isArray(layer)) { return null; } const contribution = {}; for (const key of Object.keys(layer)) { if (TREE_STRUCTURAL_KEYS.has(key)) { continue; } if (key === "elements") { if (layer.elements && typeof layer.elements === "object") { contribution.elements = layer.elements; } continue; } if (isExplicitEmpty(layer[key])) { continue; } contribution[key] = layer[key]; } return Object.keys(contribution).length === 0 ? null : contribution; } var ATOMIC_OBJECT_KEYS = /* @__PURE__ */ new Set(["backgroundImage"]); function deepMergeDroppingEmpties(target, source, globalStyles, sourceMetadata, sources, path = []) { if (!source || typeof source !== "object" || Array.isArray(source)) { return target; } for (const key of Object.keys(source)) { let sourceValue = source[key]; if (isExplicitEmpty(sourceValue)) { continue; } if (isRefObject(sourceValue)) { if (sourceValue.ref.trim() === "") { continue; } const resolved = getValueFromObjectPath( globalStyles, sourceValue.ref ); if (resolved === void 0 || resolved === null || isRefObject(resolved)) { continue; } sourceValue = resolved; } const nextPath = [...path, key]; if (!ATOMIC_OBJECT_KEYS.has(key) && sourceValue !== null && typeof sourceValue === "object" && !Array.isArray(sourceValue) && !isRefObject(sourceValue)) { const existing = target[key] && typeof target[key] === "object" && !Array.isArray(target[key]) ? target[key] : {}; target[key] = deepMergeDroppingEmpties( { ...existing }, sourceValue, globalStyles, sourceMetadata, sources, nextPath ); } else { target[key] = ATOMIC_OBJECT_KEYS.has(key) && sourceValue !== null && typeof sourceValue === "object" && !Array.isArray(sourceValue) ? { ...sourceValue } : sourceValue; if (sourceMetadata && sources) { sources[getPathKey(nextPath)] = getSourceForPath(sourceMetadata); } } } return target; } function getStateSlice(layerObject, selectedState) { if (!layerObject) { return null; } const slice2 = getStyleForState(layerObject, selectedState); return slice2 && typeof slice2 === "object" && !Array.isArray(slice2) ? slice2 : null; } var NON_CASCADING_ROOT_PREFIXES = [ "color.background", "color.gradient", "background", "spacing", "dimensions", "border", "shadow", "filter" ]; function isNonCascadingRootPath(pathKey) { if (pathKey.startsWith("elements.")) { return false; } return NON_CASCADING_ROOT_PREFIXES.some( (prefix2) => pathKey === prefix2 || pathKey.startsWith(`${prefix2}.`) ); } function deleteAtPath(target, pathSegments) { if (!target || typeof target !== "object") { return; } const [head2, ...rest] = pathSegments; if (rest.length === 0) { delete target[head2]; return; } const child = target[head2]; if (child && typeof child === "object") { deleteAtPath(child, rest); if (Object.keys(child).length === 0) { delete target[head2]; } } } function dropNonCascadingRootLeaves(value, sources) { for (const pathKey of Object.keys(sources)) { if (sources[pathKey].layer === "root" && isNonCascadingRootPath(pathKey)) { deleteAtPath(value, pathKey.split(".")); delete sources[pathKey]; } } } function resolveThemeFileBackgroundImage(value, globalStyles, links) { const image = value?.background?.backgroundImage; if (!image) { return; } const resolved = getResolvedValue(image, { ...globalStyles, _links: links ?? void 0 }); if (resolved !== void 0) { value.background.backgroundImage = resolved; } } function computeResolvedStyle(globalStyles, { blockName, variationName = null, elements: elements2 = null, viewport = null, pseudoState = null } = {}) { if (!globalStyles || !globalStyles.styles) { return EMPTY_INHERITANCE; } if (!blockName) { return EMPTY_INHERITANCE; } const styles = globalStyles.styles; const selectedState = { viewport, pseudoState }; const root = styles; const block = styles.blocks?.[blockName] ?? null; const elementLayers = (elements2 ?? []).map((elementName) => styles.elements?.[elementName] ?? null).filter((layer) => !!layer); const variation = variationName ? getVariationStyle(globalStyles, blockName, variationName) ?? null : null; const contributions = [ createContribution( pickLayerRootContribution(root), createSourceDescriptor("root") ), ...elementLayers.map( (layer) => createContribution( pickLayerRootContribution(layer), createSourceDescriptor("element") ) ), block ? createContribution( pickLayerRootContribution(block), createSourceDescriptor("block") ) : null, variation ? createContribution( pickLayerRootContribution(variation), createSourceDescriptor("blockVariation") ) : null ]; if (!isDefaultBlockStyleState(selectedState)) { contributions.push( createContribution( pickLayerRootContribution( getStateSlice(root, selectedState) ), createSourceDescriptor("root") ), ...elementLayers.map( (layer) => createContribution( pickLayerRootContribution( getStateSlice(layer, selectedState) ), createSourceDescriptor("element") ) ), block ? createContribution( pickLayerRootContribution( getStateSlice(block, selectedState) ), createSourceDescriptor("block") ) : null, variation ? createContribution( pickLayerRootContribution( getStateSlice(variation, selectedState) ), createSourceDescriptor("blockVariation") ) : null ); } const filteredContributions = contributions.filter( Boolean ); if (filteredContributions.length === 0) { return EMPTY_INHERITANCE; } const sources = {}; const value = filteredContributions.reduce( (mergedValue, contribution) => deepMergeDroppingEmpties( mergedValue, contribution.styles, globalStyles, contribution.source, sources ), {} ); dropNonCascadingRootLeaves(value, sources); resolveThemeFileBackgroundImage( value, globalStyles, globalStyles._links ?? null ); return { value, sources }; } var NO_LINKS = {}; var memo = /* @__PURE__ */ new WeakMap(); function resolveStyle(globalStyles, context = {}) { const styleData = globalStyles?.styles; if (!styleData || typeof styleData !== "object") { return computeResolvedStyle(globalStyles, context); } let byLinks = memo.get(styleData); if (!byLinks) { byLinks = /* @__PURE__ */ new WeakMap(); memo.set(styleData, byLinks); } const linksKey = globalStyles?._links ?? NO_LINKS; let inner = byLinks.get(linksKey); if (!inner) { inner = /* @__PURE__ */ new Map(); byLinks.set(linksKey, inner); } const sliceKey = `${context.elements?.join(",") ?? ""}:${context.viewport ?? ""}:${context.pseudoState ?? ""}`; const key = (context.blockName || "") + "" + (context.variationName || "") + "" + sliceKey; if (inner.has(key)) { return inner.get(key); } const result = computeResolvedStyle(globalStyles, context); inner.set(key, result); return result; } // packages/global-styles-engine/build-module/lock-unlock.mjs var import_private_apis2 = __toESM(require_private_apis(), 1); var { lock: lock2, unlock: unlock2 } = (0, import_private_apis2.__dangerousOptInToUnstableAPIsOnlyForCoreModules)( "I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.", "@wordpress/global-styles-engine" ); // packages/global-styles-engine/build-module/private-apis.mjs var privateApis = {}; lock2(privateApis, { getResponsiveMediaQueries, getViewportBreakpoints, getViewportBreakpointValueInPixels, getDuotoneFilter, getDuotoneStylesheet, getDuotoneUnsetStylesheet, resolveStyle, getVariationStyle }); // packages/global-styles-engine/build-module/preview-state-styles.mjs function generatePreviewStateStyles(stateStyles, blockName) { if (!stateStyles || !blockName) { return ""; } const previewConfig = { settings: {}, // Empty settings to satisfy the config structure styles: { blocks: { [blockName]: stateStyles } } }; try { const [generatedStyles] = generateGlobalStyles(previewConfig, []); return generatedStyles.map((style) => style.css).join("\n"); } catch { return ""; } } // packages/editor/build-module/utils/device-type.mjs var { getViewportBreakpoints: getViewportBreakpoints2, getViewportBreakpointValueInPixels: getViewportBreakpointValueInPixels2 } = unlock( privateApis ); var VIEWPORT_KEY_BY_DEVICE_TYPE = { Tablet: "tablet", Mobile: "mobile" }; var DESKTOP_DEVICE_TYPE = "Desktop"; var TABLET_DEVICE_TYPE = "Tablet"; var MOBILE_DEVICE_TYPE = "Mobile"; var DEVICE_PREVIEW_WIDTH_OFFSET = 1; var VIEWPORT_STATE_BY_DEVICE_TYPE = { Desktop: "default", Tablet: "@tablet", Mobile: "@mobile" }; function getDeviceTypeByCanvasWidth(canvasWidth2, viewportSettings) { const width = getViewportBreakpointValueInPixels2(canvasWidth2); const breakpoints = getViewportBreakpoints2(viewportSettings); if (width && width <= getViewportBreakpointValueInPixels2(breakpoints.mobile)) { return MOBILE_DEVICE_TYPE; } if (width && width <= getViewportBreakpointValueInPixels2(breakpoints.tablet)) { return TABLET_DEVICE_TYPE; } return DESKTOP_DEVICE_TYPE; } function getCanvasWidthByDeviceType(deviceType, viewportSettings) { const viewportKey = VIEWPORT_KEY_BY_DEVICE_TYPE[deviceType]; if (!viewportKey) { return void 0; } const breakpoints = getViewportBreakpoints2(viewportSettings); const width = getViewportBreakpointValueInPixels2( breakpoints[viewportKey] ); if (width === void 0) { return void 0; } let lowerBreakpoint = 0; if (deviceType === TABLET_DEVICE_TYPE) { lowerBreakpoint = getViewportBreakpointValueInPixels2(breakpoints.mobile) ?? 0; } const offset4 = Math.min( DEVICE_PREVIEW_WIDTH_OFFSET, (width - lowerBreakpoint) / 2 ); return width - offset4; } // packages/editor/build-module/store/selectors.mjs var { getTemplateInfo, getTemplatePartIcon } = unlock(import_core_data.privateApis); var EMPTY_OBJECT = {}; var hasEditorUndo = (0, import_data4.createRegistrySelector)((select9) => () => { return select9(import_core_data.store).hasUndo(); }); var hasEditorRedo = (0, import_data4.createRegistrySelector)((select9) => () => { return select9(import_core_data.store).hasRedo(); }); function isEditedPostNew(state2) { return getCurrentPost(state2).status === "auto-draft"; } function hasChangedContent(state2) { const edits = getPostEdits(state2); return "content" in edits; } var isEditedPostDirty = (0, import_data4.createRegistrySelector)( (select9) => (state2) => { const postType2 = getCurrentPostType(state2); const postId2 = getCurrentPostId(state2); return select9(import_core_data.store).hasEditsForEntityRecord( "postType", postType2, postId2 ); } ); var hasNonPostEntityChanges = (0, import_data4.createRegistrySelector)( (select9) => (state2) => { const dirtyEntityRecords = select9(import_core_data.store).__experimentalGetDirtyEntityRecords(); const { type, id } = getCurrentPost(state2); return dirtyEntityRecords.some( (entityRecord) => entityRecord.kind !== "postType" || entityRecord.name !== type || entityRecord.key !== id ); } ); function isCleanNewPost(state2) { return !isEditedPostDirty(state2) && isEditedPostNew(state2); } var getCurrentPost = (0, import_data4.createRegistrySelector)( (select9) => (state2) => { const postId2 = getCurrentPostId(state2); const postType2 = getCurrentPostType(state2); const post2 = select9(import_core_data.store).getRawEntityRecord( "postType", postType2, postId2 ); if (post2) { return post2; } return EMPTY_OBJECT; } ); function getCurrentPostType(state2) { return state2.postType; } function getCurrentPostId(state2) { return state2.postId; } function getCurrentTemplateId(state2) { return state2.templateId; } function getCurrentPostRevisionsCount(state2) { return getCurrentPost(state2)._links?.["version-history"]?.[0]?.count ?? 0; } function getCurrentPostLastRevisionId(state2) { return getCurrentPost(state2)._links?.["predecessor-version"]?.[0]?.id ?? null; } var getPostEdits = (0, import_data4.createRegistrySelector)((select9) => (state2) => { const postType2 = getCurrentPostType(state2); const postId2 = getCurrentPostId(state2); return select9(import_core_data.store).getEntityRecordEdits( "postType", postType2, postId2 ) || EMPTY_OBJECT; }); function getCurrentPostAttribute(state2, attributeName) { switch (attributeName) { case "type": return getCurrentPostType(state2); case "id": return getCurrentPostId(state2); default: const post2 = getCurrentPost(state2); if (!post2.hasOwnProperty(attributeName)) { break; } return getPostRawValue(post2[attributeName]); } } var getNestedEditedPostProperty = (0, import_data4.createSelector)( (state2, attributeName) => { const edits = getPostEdits(state2); if (!edits.hasOwnProperty(attributeName)) { return getCurrentPostAttribute(state2, attributeName); } return { ...getCurrentPostAttribute(state2, attributeName), ...edits[attributeName] }; }, (state2, attributeName) => [ getCurrentPostAttribute(state2, attributeName), getPostEdits(state2)[attributeName] ] ); function getEditedPostAttribute(state2, attributeName) { switch (attributeName) { case "content": return getEditedPostContent(state2); } const edits = getPostEdits(state2); if (!edits.hasOwnProperty(attributeName)) { return getCurrentPostAttribute(state2, attributeName); } if (EDIT_MERGE_PROPERTIES.has(attributeName)) { return getNestedEditedPostProperty(state2, attributeName); } return edits[attributeName]; } var getAutosaveAttribute = (0, import_data4.createRegistrySelector)( (select9) => (state2, attributeName) => { if (!AUTOSAVE_PROPERTIES.includes(attributeName) && attributeName !== "preview_link") { return; } const postType2 = getCurrentPostType(state2); const postId2 = getCurrentPostId(state2); const currentUserId = select9(import_core_data.store).getCurrentUser()?.id; const autosave2 = select9(import_core_data.store).getAutosave( postType2, postId2, currentUserId ); if (autosave2) { return getPostRawValue(autosave2[attributeName]); } } ); function getEditedPostVisibility(state2) { const status = getEditedPostAttribute(state2, "status"); if (status === "private") { return "private"; } const password = getEditedPostAttribute(state2, "password"); if (password) { return "password"; } return "public"; } function isCurrentPostPending(state2) { return getCurrentPost(state2).status === "pending"; } function isCurrentPostPublished(state2, currentPost) { const post2 = currentPost || getCurrentPost(state2); return ["publish", "private"].indexOf(post2.status) !== -1 || post2.status === "future" && !(0, import_date.isInTheFuture)( new Date(Number((0, import_date.getDate)(post2.date)) - ONE_MINUTE_IN_MS) ); } function isCurrentPostScheduled(state2) { return getCurrentPost(state2).status === "future" && !isCurrentPostPublished(state2); } function isEditedPostPublishable(state2) { const post2 = getCurrentPost(state2); if (post2.type === ATTACHMENT_POST_TYPE) { return isEditedPostDirty(state2); } return isEditedPostDirty(state2) || ["publish", "private", "future"].indexOf(post2.status) === -1; } function isEditedPostSaveable(state2) { if (isSavingPost(state2)) { return false; } return !!getEditedPostAttribute(state2, "title") || !!getEditedPostAttribute(state2, "excerpt") || !isEditedPostEmpty(state2); } var isEditedPostEmpty = (0, import_data4.createRegistrySelector)( (select9) => (state2) => { const postId2 = getCurrentPostId(state2); const postType2 = getCurrentPostType(state2); const record = select9(import_core_data.store).getEditedEntityRecord( "postType", postType2, postId2 ); if (typeof record.content !== "function") { return !record.content; } const blocks = getEditedPostAttribute(state2, "blocks"); if (blocks.length === 0) { return true; } if (blocks.length > 1) { return false; } const blockName = blocks[0].name; if (blockName !== (0, import_blocks3.getDefaultBlockName)() && blockName !== (0, import_blocks3.getFreeformContentHandlerName)()) { return false; } return !getEditedPostContent(state2); } ); var isEditedPostAutosaveable = (0, import_data4.createRegistrySelector)( (select9) => (state2) => { if (!isEditedPostSaveable(state2)) { return false; } if (isPostAutosavingLocked(state2)) { return false; } const postType2 = getCurrentPostType(state2); const postTypeObject = select9(import_core_data.store).getPostType(postType2); if (!postTypeObject?.supports?.autosave) { return false; } const postId2 = getCurrentPostId(state2); const hasFetchedAutosave = select9(import_core_data.store).hasFetchedAutosaves( postType2, postId2 ); const currentUserId = select9(import_core_data.store).getCurrentUser()?.id; const autosave2 = select9(import_core_data.store).getAutosave( postType2, postId2, currentUserId ); if (!hasFetchedAutosave) { return false; } if (!autosave2) { return true; } if (hasChangedContent(state2)) { return true; } return ["title", "excerpt", "meta"].some( (field) => getPostRawValue(autosave2[field]) !== getEditedPostAttribute(state2, field) ); } ); function isEditedPostBeingScheduled(state2) { const date = getEditedPostAttribute(state2, "date"); const checkedDate = new Date( Number((0, import_date.getDate)(date)) - ONE_MINUTE_IN_MS ); return (0, import_date.isInTheFuture)(checkedDate); } function isEditedPostDateFloating(state2) { const date = getEditedPostAttribute(state2, "date"); const modified = getEditedPostAttribute(state2, "modified"); const status = getCurrentPost(state2).status; if (status === "draft" || status === "auto-draft" || status === "pending") { return date === modified || date === null; } return false; } function isDeletingPost(state2) { return !!state2.deleting.pending; } function isSavingPost(state2) { return !!state2.saving.pending; } var isSavingNonPostEntityChanges = (0, import_data4.createRegistrySelector)( (select9) => (state2) => { const entitiesBeingSaved = select9(import_core_data.store).__experimentalGetEntitiesBeingSaved(); const { type, id } = getCurrentPost(state2); return entitiesBeingSaved.some( (entityRecord) => entityRecord.kind !== "postType" || entityRecord.name !== type || entityRecord.key !== id ); } ); var didPostSaveRequestSucceed = (0, import_data4.createRegistrySelector)( (select9) => (state2) => { const postType2 = getCurrentPostType(state2); const postId2 = getCurrentPostId(state2); return !select9(import_core_data.store).getLastEntitySaveError( "postType", postType2, postId2 ); } ); var didPostSaveRequestFail = (0, import_data4.createRegistrySelector)( (select9) => (state2) => { const postType2 = getCurrentPostType(state2); const postId2 = getCurrentPostId(state2); return !!select9(import_core_data.store).getLastEntitySaveError( "postType", postType2, postId2 ); } ); function isAutosavingPost(state2) { return isSavingPost(state2) && Boolean(state2.saving.options?.isAutosave); } function isPreviewingPost(state2) { return isSavingPost(state2) && Boolean(state2.saving.options?.isPreview); } function getEditedPostPreviewLink(state2) { if (state2.saving.pending || isSavingPost(state2)) { return; } let previewLink = getAutosaveAttribute(state2, "preview_link"); if (!previewLink || "draft" === getCurrentPost(state2).status) { previewLink = getEditedPostAttribute(state2, "link"); if (previewLink) { previewLink = (0, import_url.addQueryArgs)(previewLink, { preview: true }); } } const featuredImageId = getEditedPostAttribute(state2, "featured_media"); if (previewLink && featuredImageId) { return (0, import_url.addQueryArgs)(previewLink, { _thumbnail_id: featuredImageId }); } return previewLink; } var getSuggestedPostFormat = (0, import_data4.createRegistrySelector)( (select9) => () => { const blocks = select9(import_block_editor2.store).getBlocks(); if (blocks.length > 2) { return null; } let name2; if (blocks.length === 1) { name2 = blocks[0].name; if (name2 === "core/embed") { const provider = blocks[0].attributes?.providerNameSlug; if (["youtube", "vimeo"].includes(provider)) { name2 = "core/video"; } else if (["spotify", "soundcloud"].includes(provider)) { name2 = "core/audio"; } } } if (blocks.length === 2 && blocks[1].name === "core/paragraph") { name2 = blocks[0].name; } switch (name2) { case "core/image": return "image"; case "core/quote": case "core/pullquote": return "quote"; case "core/gallery": return "gallery"; case "core/video": return "video"; case "core/audio": return "audio"; default: return null; } } ); var getEditedPostContent = (0, import_data4.createRegistrySelector)( (select9) => (state2) => { const postId2 = getCurrentPostId(state2); const postType2 = getCurrentPostType(state2); const record = select9(import_core_data.store).getEditedEntityRecord( "postType", postType2, postId2 ); if (record) { if (typeof record.content === "function") { return record.content(record); } else if (record.blocks) { return (0, import_blocks3.__unstableSerializeAndClean)(record.blocks); } else if (record.content) { return record.content; } } return ""; } ); function isPublishingPost(state2) { return isSavingPost(state2) && !isCurrentPostPublished(state2) && getEditedPostAttribute(state2, "status") === "publish"; } function isPermalinkEditable(state2) { const permalinkTemplate = getEditedPostAttribute( state2, "permalink_template" ); return PERMALINK_POSTNAME_REGEX.test(permalinkTemplate); } function getPermalink(state2) { const permalinkParts = getPermalinkParts(state2); if (!permalinkParts) { return null; } const { prefix: prefix2, postName, suffix } = permalinkParts; if (isPermalinkEditable(state2)) { return prefix2 + postName + suffix; } return prefix2; } function getEditedPostSlug(state2) { return getEditedPostAttribute(state2, "slug") || getEditedPostAttribute(state2, "generated_slug") || (0, import_url.cleanForSlug)(getEditedPostAttribute(state2, "title")) || getCurrentPostId(state2); } function getPermalinkParts(state2) { const permalinkTemplate = getEditedPostAttribute( state2, "permalink_template" ); if (!permalinkTemplate) { return null; } const postName = getEditedPostAttribute(state2, "slug") || getEditedPostAttribute(state2, "generated_slug"); const [prefix2, suffix] = permalinkTemplate.split( PERMALINK_POSTNAME_REGEX ); return { prefix: prefix2, postName, suffix }; } function isPostLocked(state2) { return state2.postLock.isLocked; } function isPostSavingLocked(state2) { return Object.keys(state2.postSavingLock).length > 0; } function isPostAutosavingLocked(state2) { return Object.keys(state2.postAutosavingLock).length > 0; } function isPostLockTakeover(state2) { return state2.postLock.isTakeover; } function getPostLockUser(state2) { return state2.postLock.user; } function getActivePostLock(state2) { return state2.postLock.activePostLock; } function canUserUseUnfilteredHTML(state2) { return Boolean( getCurrentPost(state2)._links?.hasOwnProperty( "wp:action-unfiltered-html" ) ); } var isPublishSidebarEnabled = (0, import_data4.createRegistrySelector)( (select9) => () => !!select9(import_preferences.store).get("core", "isPublishSidebarEnabled") ); var getEditorBlocks = (0, import_data4.createSelector)( (state2) => { return getEditedPostAttribute(state2, "blocks") || (0, import_blocks3.parse)(getEditedPostContent(state2)); }, (state2) => [ getEditedPostAttribute(state2, "blocks"), getEditedPostContent(state2) ] ); function isEditorPanelRemoved(state2, panelName) { return state2.removedPanels.includes(panelName); } var isEditorPanelEnabled = (0, import_data4.createRegistrySelector)( (select9) => (state2, panelName) => { const inactivePanels = select9(import_preferences.store).get( "core", "inactivePanels" ); return !isEditorPanelRemoved(state2, panelName) && !inactivePanels?.includes(panelName); } ); var isEditorPanelOpened = (0, import_data4.createRegistrySelector)( (select9) => (state2, panelName) => { const openPanels = select9(import_preferences.store).get( "core", "openPanels" ); return !!openPanels?.includes(panelName); } ); function getEditorSelectionStart(state2) { (0, import_deprecated.default)("select('core/editor').getEditorSelectionStart", { since: "5.8", alternative: "select('core/editor').getEditorSelection" }); return getEditedPostAttribute(state2, "selection")?.selectionStart; } function getEditorSelectionEnd(state2) { (0, import_deprecated.default)("select('core/editor').getEditorSelectionStart", { since: "5.8", alternative: "select('core/editor').getEditorSelection" }); return getEditedPostAttribute(state2, "selection")?.selectionEnd; } function getEditorSelection(state2) { return getEditedPostAttribute(state2, "selection"); } function __unstableIsEditorReady(state2) { return !!state2.postId; } function getEditorSettings(state2) { return state2.editorSettings; } function getRenderingMode(state2) { return state2.renderingMode; } var getDeviceType = (0, import_data4.createRegistrySelector)( (select9) => (state2) => { const blockEditorSelect = unlock(select9(import_block_editor2.store)); const isZoomOut = blockEditorSelect.isZoomOut(); if (isZoomOut) { return "Desktop"; } const canvasWidth2 = state2.canvasWidth; const viewportSettings = blockEditorSelect.getSettings().__experimentalFeatures?.viewport; return getDeviceTypeByCanvasWidth(canvasWidth2, viewportSettings); } ); function isListViewOpened(state2) { return state2.listViewPanel; } function isInserterOpened(state2) { return !!state2.blockInserterPanel; } var getEditorMode = (0, import_data4.createRegistrySelector)( (select9) => () => select9(import_preferences.store).get("core", "editorMode") ?? "visual" ); function getStateBeforeOptimisticTransaction() { (0, import_deprecated.default)("select('core/editor').getStateBeforeOptimisticTransaction", { since: "5.7", hint: "No state history is kept on this store anymore" }); return null; } function inSomeHistory() { (0, import_deprecated.default)("select('core/editor').inSomeHistory", { since: "5.7", hint: "No state history is kept on this store anymore" }); return false; } function getBlockEditorSelector(name2) { return (0, import_data4.createRegistrySelector)((select9) => (state2, ...args) => { (0, import_deprecated.default)("`wp.data.select( 'core/editor' )." + name2 + "`", { since: "5.3", alternative: "`wp.data.select( 'core/block-editor' )." + name2 + "`", version: "6.2" }); return select9(import_block_editor2.store)[name2](...args); }); } var getBlockName = getBlockEditorSelector("getBlockName"); var isBlockValid = getBlockEditorSelector("isBlockValid"); var getBlockAttributes = getBlockEditorSelector("getBlockAttributes"); var getBlock = getBlockEditorSelector("getBlock"); var getBlocks = getBlockEditorSelector("getBlocks"); var getClientIdsOfDescendants = getBlockEditorSelector( "getClientIdsOfDescendants" ); var getClientIdsWithDescendants = getBlockEditorSelector( "getClientIdsWithDescendants" ); var getGlobalBlockCount = getBlockEditorSelector( "getGlobalBlockCount" ); var getBlocksByClientId = getBlockEditorSelector( "getBlocksByClientId" ); var getBlockCount = getBlockEditorSelector("getBlockCount"); var getBlockSelectionStart = getBlockEditorSelector( "getBlockSelectionStart" ); var getBlockSelectionEnd = getBlockEditorSelector( "getBlockSelectionEnd" ); var getSelectedBlockCount = getBlockEditorSelector( "getSelectedBlockCount" ); var hasSelectedBlock = getBlockEditorSelector("hasSelectedBlock"); var getSelectedBlockClientId = getBlockEditorSelector( "getSelectedBlockClientId" ); var getSelectedBlock = getBlockEditorSelector("getSelectedBlock"); var getBlockRootClientId = getBlockEditorSelector( "getBlockRootClientId" ); var getBlockHierarchyRootClientId = getBlockEditorSelector( "getBlockHierarchyRootClientId" ); var getAdjacentBlockClientId = getBlockEditorSelector( "getAdjacentBlockClientId" ); var getPreviousBlockClientId = getBlockEditorSelector( "getPreviousBlockClientId" ); var getNextBlockClientId = getBlockEditorSelector( "getNextBlockClientId" ); var getSelectedBlocksInitialCaretPosition = getBlockEditorSelector( "getSelectedBlocksInitialCaretPosition" ); var getMultiSelectedBlockClientIds = getBlockEditorSelector( "getMultiSelectedBlockClientIds" ); var getMultiSelectedBlocks = getBlockEditorSelector( "getMultiSelectedBlocks" ); var getFirstMultiSelectedBlockClientId = getBlockEditorSelector( "getFirstMultiSelectedBlockClientId" ); var getLastMultiSelectedBlockClientId = getBlockEditorSelector( "getLastMultiSelectedBlockClientId" ); var isFirstMultiSelectedBlock = getBlockEditorSelector( "isFirstMultiSelectedBlock" ); var isBlockMultiSelected = getBlockEditorSelector( "isBlockMultiSelected" ); var isAncestorMultiSelected = getBlockEditorSelector( "isAncestorMultiSelected" ); var getMultiSelectedBlocksStartClientId = getBlockEditorSelector( "getMultiSelectedBlocksStartClientId" ); var getMultiSelectedBlocksEndClientId = getBlockEditorSelector( "getMultiSelectedBlocksEndClientId" ); var getBlockOrder = getBlockEditorSelector("getBlockOrder"); var getBlockIndex = getBlockEditorSelector("getBlockIndex"); var isBlockSelected = getBlockEditorSelector("isBlockSelected"); var hasSelectedInnerBlock = getBlockEditorSelector( "hasSelectedInnerBlock" ); var isBlockWithinSelection = getBlockEditorSelector( "isBlockWithinSelection" ); var hasMultiSelection = getBlockEditorSelector("hasMultiSelection"); var isMultiSelecting = getBlockEditorSelector("isMultiSelecting"); var isSelectionEnabled = getBlockEditorSelector("isSelectionEnabled"); var getBlockMode = getBlockEditorSelector("getBlockMode"); var isTyping = getBlockEditorSelector("isTyping"); var isCaretWithinFormattedText = getBlockEditorSelector( "isCaretWithinFormattedText" ); var getBlockInsertionPoint = getBlockEditorSelector( "getBlockInsertionPoint" ); var isBlockInsertionPointVisible = getBlockEditorSelector( "isBlockInsertionPointVisible" ); var isValidTemplate = getBlockEditorSelector("isValidTemplate"); var getTemplate = getBlockEditorSelector("getTemplate"); var getTemplateLock = getBlockEditorSelector("getTemplateLock"); var canInsertBlockType = getBlockEditorSelector("canInsertBlockType"); var getInserterItems = getBlockEditorSelector("getInserterItems"); var hasInserterItems = getBlockEditorSelector("hasInserterItems"); var getBlockListSettings = getBlockEditorSelector( "getBlockListSettings" ); var __experimentalGetDefaultTemplateTypes = (0, import_data4.createRegistrySelector)( (select9) => () => { (0, import_deprecated.default)( "select('core/editor').__experimentalGetDefaultTemplateTypes", { since: "6.8", alternative: "select('core/core-data').getCurrentTheme()?.default_template_types" } ); return select9(import_core_data.store).getCurrentTheme()?.default_template_types; } ); var __experimentalGetDefaultTemplatePartAreas = (0, import_data4.createRegistrySelector)( (select9) => (0, import_data4.createSelector)(() => { (0, import_deprecated.default)( "select('core/editor').__experimentalGetDefaultTemplatePartAreas", { since: "6.8", alternative: "select('core/core-data').getCurrentTheme()?.default_template_part_areas" } ); const areas = select9(import_core_data.store).getCurrentTheme()?.default_template_part_areas || []; return areas.map((item) => { return { ...item, icon: getTemplatePartIcon(item.icon) }; }); }) ); var __experimentalGetDefaultTemplateType = (0, import_data4.createRegistrySelector)( (select9) => (0, import_data4.createSelector)((state2, slug) => { (0, import_deprecated.default)( "select('core/editor').__experimentalGetDefaultTemplateType", { since: "6.8" } ); const templateTypes = select9(import_core_data.store).getCurrentTheme()?.default_template_types; if (!templateTypes) { return EMPTY_OBJECT; } return Object.values(templateTypes).find( (type) => type.slug === slug ) ?? EMPTY_OBJECT; }) ); var __experimentalGetTemplateInfo = (0, import_data4.createRegistrySelector)( (select9) => (0, import_data4.createSelector)((state2, template2) => { (0, import_deprecated.default)("select('core/editor').__experimentalGetTemplateInfo", { since: "6.8" }); if (!template2) { return EMPTY_OBJECT; } const currentTheme = select9(import_core_data.store).getCurrentTheme(); const templateTypes = currentTheme?.default_template_types || []; const templateAreas = currentTheme?.default_template_part_areas || []; return getTemplateInfo({ template: template2, templateAreas, templateTypes }); }) ); var getPostTypeLabel = (0, import_data4.createRegistrySelector)( (select9) => (state2) => { const currentPostType = getCurrentPostType(state2); const postType2 = select9(import_core_data.store).getPostType(currentPostType); return postType2?.labels?.singular_name; } ); function isPublishSidebarOpened(state2) { return state2.publishSidebarActive; } // packages/editor/build-module/store/actions.mjs var actions_exports3 = {}; __export(actions_exports3, { __experimentalTearDownEditor: () => __experimentalTearDownEditor, __unstableSaveForPreview: () => __unstableSaveForPreview, autosave: () => autosave, clearSelectedBlock: () => clearSelectedBlock, closePublishSidebar: () => closePublishSidebar, createUndoLevel: () => createUndoLevel, disablePublishSidebar: () => disablePublishSidebar, editPost: () => editPost, enablePublishSidebar: () => enablePublishSidebar, enterFormattedText: () => enterFormattedText, exitFormattedText: () => exitFormattedText, hideInsertionPoint: () => hideInsertionPoint, insertBlock: () => insertBlock, insertBlocks: () => insertBlocks, insertDefaultBlock: () => insertDefaultBlock, lockPostAutosaving: () => lockPostAutosaving, lockPostSaving: () => lockPostSaving, mergeBlocks: () => mergeBlocks, moveBlockToPosition: () => moveBlockToPosition, moveBlocksDown: () => moveBlocksDown, moveBlocksUp: () => moveBlocksUp, multiSelect: () => multiSelect, openPublishSidebar: () => openPublishSidebar, receiveBlocks: () => receiveBlocks, redo: () => redo, refreshPost: () => refreshPost, removeBlock: () => removeBlock, removeBlocks: () => removeBlocks, removeEditorPanel: () => removeEditorPanel, replaceBlock: () => replaceBlock, replaceBlocks: () => replaceBlocks, resetBlocks: () => resetBlocks, resetEditorBlocks: () => resetEditorBlocks, resetPost: () => resetPost, savePost: () => savePost, selectBlock: () => selectBlock, setDeviceType: () => setDeviceType, setEditedPost: () => setEditedPost, setIsInserterOpened: () => setIsInserterOpened, setIsListViewOpened: () => setIsListViewOpened, setRenderingMode: () => setRenderingMode, setTemplateValidity: () => setTemplateValidity, setupEditor: () => setupEditor, setupEditorState: () => setupEditorState, showInsertionPoint: () => showInsertionPoint, startMultiSelect: () => startMultiSelect, startTyping: () => startTyping, stopMultiSelect: () => stopMultiSelect, stopTyping: () => stopTyping, switchEditorMode: () => switchEditorMode, synchronizeTemplate: () => synchronizeTemplate, toggleBlockMode: () => toggleBlockMode, toggleDistractionFree: () => toggleDistractionFree, toggleEditorPanelEnabled: () => toggleEditorPanelEnabled, toggleEditorPanelOpened: () => toggleEditorPanelOpened, togglePublishSidebar: () => togglePublishSidebar, toggleSelection: () => toggleSelection, toggleSpotlightMode: () => toggleSpotlightMode, toggleTopToolbar: () => toggleTopToolbar, trashPost: () => trashPost2, undo: () => undo, unlockPostAutosaving: () => unlockPostAutosaving, unlockPostSaving: () => unlockPostSaving, updateBlock: () => updateBlock, updateBlockAttributes: () => updateBlockAttributes, updateBlockListSettings: () => updateBlockListSettings, updateEditorSettings: () => updateEditorSettings, updatePost: () => updatePost, updatePostLock: () => updatePostLock }); var import_a11y10 = __toESM(require_a11y(), 1); var import_api_fetch8 = __toESM(require_api_fetch(), 1); var import_escape_html = __toESM(require_escape_html(), 1); var import_deprecated9 = __toESM(require_deprecated(), 1); var import_warning3 = __toESM(require_warning(), 1); var import_blocks20 = __toESM(require_blocks(), 1); var import_notices20 = __toESM(require_notices(), 1); var import_core_data63 = __toESM(require_core_data(), 1); var import_block_editor37 = __toESM(require_block_editor(), 1); var import_hooks42 = __toESM(require_hooks(), 1); var import_preferences10 = __toESM(require_preferences(), 1); var import_i18n224 = __toESM(require_i18n(), 1); // packages/editor/build-module/store/local-autosave.mjs var import_core_data2 = __toESM(require_core_data(), 1); var { CRDT_AUTOSAVE_SNAPSHOT_KEY } = unlock(import_core_data2.privateApis); function postKey(postId2, isPostNew) { return `wp-autosave-block-editor-post-${isPostNew ? "auto-draft" : postId2}`; } function localAutosaveGet(postId2, isPostNew) { return window.sessionStorage.getItem(postKey(postId2, isPostNew)); } function localAutosaveSet(postId2, isPostNew, title, content, excerpt, crdtSnapshot) { const backup = { post_title: title, content, excerpt }; if (crdtSnapshot) { backup[CRDT_AUTOSAVE_SNAPSHOT_KEY] = crdtSnapshot; } const key = postKey(postId2, isPostNew); try { window.sessionStorage.setItem(key, JSON.stringify(backup)); } catch (error2) { if (!backup[CRDT_AUTOSAVE_SNAPSHOT_KEY]) { throw error2; } delete backup[CRDT_AUTOSAVE_SNAPSHOT_KEY]; window.sessionStorage.setItem(key, JSON.stringify(backup)); } } function localAutosaveGetSnapshot(backup) { return backup?.[CRDT_AUTOSAVE_SNAPSHOT_KEY]; } function localAutosaveClear(postId2, isPostNew) { window.sessionStorage.removeItem(postKey(postId2, isPostNew)); } // packages/editor/build-module/store/utils/notice-builder.mjs var import_i18n2 = __toESM(require_i18n(), 1); var AUTO_SAVE_FAILURE_NOTICE = (0, import_i18n2.__)( "Auto-save failed. We\u2019ll try to save a backup in this browser. You can also save manually." ); var AUTO_SAVE_OFFLINE_FAILURE_NOTICE = (0, import_i18n2.__)( "Auto-save failed because you were offline. We\u2019ll try to save a backup in this browser. Please verify your connection and save manually." ); function getNotificationArgumentsForSaveSuccess(data) { const { previousPost, post: post2, postType: postType2 } = data; if (data.options?.isAutosave) { return []; } const publishStatus = ["publish", "private", "future"]; const isPublished = publishStatus.includes(previousPost.status); const willPublish = publishStatus.includes(post2.status); const willTrash = post2.status === "trash" && previousPost.status !== "trash"; let noticeMessage; let shouldShowLink = postType2?.viewable ?? false; let isDraft; if (willTrash) { noticeMessage = postType2.labels.item_trashed; shouldShowLink = false; } else if (post2.type === ATTACHMENT_POST_TYPE) { noticeMessage = (0, import_i18n2.__)("Media updated."); shouldShowLink = false; } else if (!isPublished && !willPublish) { noticeMessage = (0, import_i18n2.__)("Draft saved."); isDraft = true; } else if (isPublished && !willPublish) { noticeMessage = postType2.labels.item_reverted_to_draft; shouldShowLink = false; } else if (!isPublished && willPublish) { noticeMessage = { publish: postType2.labels.item_published, private: postType2.labels.item_published_privately, future: postType2.labels.item_scheduled }[post2.status]; } else { noticeMessage = postType2.labels.item_updated; } const actions2 = []; if (shouldShowLink) { actions2.push({ label: isDraft ? (0, import_i18n2.__)("View Preview") : postType2.labels.view_item, url: post2.link, openInNewTab: true }); } return [ noticeMessage, { id: "editor-save", type: "snackbar", actions: actions2 } ]; } function getNotificationArgumentsForSaveFail(data) { const { post: post2, edits, error: error2, options } = data; if (error2 && "rest_autosave_no_changes" === error2.code) { return []; } const publishStatus = ["publish", "private", "future"]; const isPublished = publishStatus.indexOf(post2.status) !== -1; if (error2.code === "offline_error") { const messages2 = { publish: (0, import_i18n2.__)( "Publishing failed because you were offline. Please verify your connection and try again." ), private: (0, import_i18n2.__)( "Publishing failed because you were offline. Please verify your connection and try again." ), future: (0, import_i18n2.__)( "Scheduling failed because you were offline. Please verify your connection and try again." ), default: (0, import_i18n2.__)( "Updating failed because you were offline. Please verify your connection and try again." ) }; let noticeMessage2 = !isPublished && edits.status in messages2 ? messages2[edits.status] : messages2.default; if (options?.isAutosave) { noticeMessage2 = AUTO_SAVE_OFFLINE_FAILURE_NOTICE; } return [noticeMessage2, { id: "editor-save" }]; } const messages = { publish: (0, import_i18n2.__)( "Publishing failed. We\u2019ll try to save a backup in this browser. Please try publishing again." ), private: (0, import_i18n2.__)( "Publishing failed. We\u2019ll try to save a backup in this browser. Please try publishing again." ), future: (0, import_i18n2.__)( "Scheduling failed. We\u2019ll try to save a backup in this browser. Please try scheduling again." ), default: (0, import_i18n2.__)( "Updating failed. We\u2019ll try to save a backup in this browser. Please try updating again." ) }; let noticeMessage = !isPublished && edits.status in messages ? messages[edits.status] : messages.default; if (options?.isAutosave) { noticeMessage = AUTO_SAVE_FAILURE_NOTICE; } return [ noticeMessage, { id: "editor-save" } ]; } function getNotificationArgumentsForTrashFail(data) { return [ data.error.message && data.error.code !== "unknown_error" ? data.error.message : (0, import_i18n2.__)("Trashing failed"), { id: "editor-trash-fail" } ]; } // packages/editor/build-module/store/utils/attach-media-in-post/index.mjs var import_core_data4 = __toESM(require_core_data(), 1); // packages/editor/build-module/store/utils/attach-media-in-post/media-ids-in-blocks.mjs var MEDIA_ID_ATTRIBUTES = { "core/image": "id" }; var SHARED_CONTENT_BLOCKS = ["core/block", "core/template-part"]; function flattenBlocks(blocks) { const result = []; blocks.forEach((block) => { result.push(block); if (!SHARED_CONTENT_BLOCKS.includes(block.name)) { result.push(...flattenBlocks(block.innerBlocks)); } }); return result; } function getMediaIdsInBlocks(blocks) { const mediaIds = /* @__PURE__ */ new Set(); flattenBlocks(blocks).forEach((block) => { const attribute = MEDIA_ID_ATTRIBUTES[block.name]; if (!attribute) { return; } const id = block.attributes?.[attribute]; if (Number.isInteger(id) && id > 0) { mediaIds.add(id); } }); return [...mediaIds].sort((a2, b2) => a2 - b2); } // packages/editor/build-module/store/utils/attach-media-in-post/invalidate-attachment-resolutions.mjs var import_core_data3 = __toESM(require_core_data(), 1); function invalidateAttachmentResolutions(registry) { const resolvers = registry.select(import_core_data3.store).getCachedResolvers(); const entityRecordResolutions = resolvers.getEntityRecords; entityRecordResolutions?.forEach((_value, args) => { if (args[0] === "postType" && args[1] === "attachment") { registry.dispatch(import_core_data3.store).invalidateResolution("getEntityRecords", args); } }); } // packages/editor/build-module/store/utils/attach-media-in-post/index.mjs var MAX_MEDIA_TO_ATTACH = 100; function warnAttachFailed(reason) { console.warn("Could not attach media to the post.", reason); } async function attachMediaInPost(registry, post2) { try { await attach(registry, post2); } catch (error2) { warnAttachFailed(error2); } } async function attach(registry, { id: postId2, type: postType2, blocks }) { const mediaIds = getMediaIdsInBlocks(blocks); if (!mediaIds.length) { return; } if (mediaIds.length > MAX_MEDIA_TO_ATTACH) { console.warn( `Not attaching media: the post has more than ${MAX_MEDIA_TO_ATTACH} images.` ); return; } const postTypeObject = await registry.resolveSelect(import_core_data4.store).getPostType(postType2); if (!postTypeObject?.viewable) { return; } const media = await registry.resolveSelect(import_core_data4.store).getEntityRecords("postType", "attachment", { include: mediaIds, per_page: MAX_MEDIA_TO_ATTACH }); const unattached = (media ?? []).filter((item) => !item.post); if (!unattached.length) { return; } const { saveEntityRecord } = registry.dispatch(import_core_data4.store); const results = await Promise.allSettled( unattached.map( (item) => saveEntityRecord("postType", "attachment", { id: item.id, post: postId2 }) ) ); results.forEach((result) => { if (result.status === "rejected") { warnAttachFailed(result.reason); } }); if (!results.some(({ status }) => status === "fulfilled")) { return; } invalidateAttachmentResolutions(registry); } // packages/editor/build-module/store/private-actions.mjs var private_actions_exports = {}; __export(private_actions_exports, { createTemplate: () => createTemplate, hideBlockTypes: () => hideBlockTypes, openRevision: () => openRevision, registerEntityAction: () => registerEntityAction, registerEntityField: () => registerEntityField, registerPostTypeSchema: () => registerPostTypeSchema, removeTemplates: () => removeTemplates, resetStylesNavigation: () => resetStylesNavigation, restoreRevision: () => restoreRevision, revertTemplate: () => revertTemplate2, selectNote: () => selectNote, setCanvasWidth: () => setCanvasWidth, setCurrentRevisionId: () => setCurrentRevisionId, setCurrentTemplateId: () => setCurrentTemplateId, setDefaultRenderingMode: () => setDefaultRenderingMode, setIsReady: () => setIsReady, setRevisionPage: () => setRevisionPage, setShowRevisionDiff: () => setShowRevisionDiff, setShowStylebook: () => setShowStylebook, setStylesPath: () => setStylesPath, showBlockTypes: () => showBlockTypes, unregisterEntityAction: () => unregisterEntityAction, unregisterEntityField: () => unregisterEntityField }); var import_core_data62 = __toESM(require_core_data(), 1); var import_block_editor36 = __toESM(require_block_editor(), 1); var import_i18n223 = __toESM(require_i18n(), 1); var import_notices19 = __toESM(require_notices(), 1); var import_preferences9 = __toESM(require_preferences(), 1); var import_url14 = __toESM(require_url(), 1); var import_api_fetch7 = __toESM(require_api_fetch(), 1); var import_blocks19 = __toESM(require_blocks(), 1); var import_html_entities13 = __toESM(require_html_entities(), 1); var import_date19 = __toESM(require_date(), 1); // packages/editor/build-module/store/utils/is-template-revertable.mjs function isTemplateRevertable(templateOrTemplatePart) { if (!templateOrTemplatePart) { return false; } return templateOrTemplatePart.source === TEMPLATE_ORIGINS.custom && (Boolean(templateOrTemplatePart?.plugin) || templateOrTemplatePart?.has_theme_file); } // packages/editor/build-module/store/private-selectors.mjs var private_selectors_exports = {}; __export(private_selectors_exports, { buildRevisionsPageQuery: () => buildRevisionsPageQuery, getCanvasWidth: () => getCanvasWidth, getCurrentRevision: () => getCurrentRevision, getCurrentRevisionId: () => getCurrentRevisionId, getDefaultRenderingMode: () => getDefaultRenderingMode, getEntityActions: () => getEntityActions2, getEntityFields: () => getEntityFields2, getInserter: () => getInserter, getInserterSidebarToggleRef: () => getInserterSidebarToggleRef, getListViewToggleRef: () => getListViewToggleRef, getPageRevisions: () => getPageRevisions, getPostBlocksByName: () => getPostBlocksByName, getPostIcon: () => getPostIcon, getPreviousRevision: () => getPreviousRevision, getRevisionPage: () => getRevisionPage, getRevisionsPerPage: () => getRevisionsPerPage, getSelectedNote: () => getSelectedNote, getShowStylebook: () => getShowStylebook, getStylesPath: () => getStylesPath, isCollaborationEnabledForCurrentPost: () => isCollaborationEnabledForCurrentPost, isEntityReady: () => isEntityReady2, isNoteFocused: () => isNoteFocused, isRevisionsMode: () => isRevisionsMode, isShowingRevisionDiff: () => isShowingRevisionDiff }); var import_block_editor3 = __toESM(require_block_editor(), 1); var import_data5 = __toESM(require_data(), 1); // packages/icons/build-module/icon/index.mjs var import_element = __toESM(require_element(), 1); var icon_default = (0, import_element.forwardRef)( ({ icon, size: size4 = 24, style, ...props }, ref) => { const intrinsicStyle = icon.props.style; const mergedStyle = intrinsicStyle || style ? { ...intrinsicStyle, ...style } : void 0; return (0, import_element.cloneElement)(icon, { width: size4, height: size4, ...props, // Merge styles so the icon's intrinsic style (e.g. `fill: none` on // stroke-based icons) is preserved unless the consumer overrides // the same property explicitly. ...mergedStyle ? { style: mergedStyle } : {}, ref }); } ); // packages/icons/build-module/library/add-template.mjs var import_primitives = __toESM(require_primitives(), 1); var import_jsx_runtime = __toESM(require_jsx_runtime(), 1); var add_template_default = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_primitives.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_primitives.Path, { d: "M19.25 10V18C19.25 18.6904 18.6904 19.25 18 19.25H6C5.30964 19.25 4.75 18.6904 4.75 18V9.75M14 4.75H6C5.30964 4.75 4.75 5.30964 4.75 6V9.75M19.25 8V1.5M16 4.75H22.5M16.5 9.75H9.25M4.75 9.75H9.25M9.25 9.75V19.25", vectorEffect: "non-scaling-stroke" }) }); // packages/icons/build-module/library/archive.mjs var import_primitives2 = __toESM(require_primitives(), 1); var import_jsx_runtime2 = __toESM(require_jsx_runtime(), 1); var archive_default = /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_primitives2.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_primitives2.Path, { d: "M8.5 11H15.5M8.5 14.5H15.5M20.25 17.5V8.5C20.25 7.80964 19.6904 7.25 19 7.25H13.3463C12.8352 7.25 12.3755 6.93881 12.1857 6.46424L11.8143 5.53576C11.6245 5.06119 11.1648 4.75 10.6537 4.75H5C4.30964 4.75 3.75 5.30964 3.75 6V17.5C3.75 18.1904 4.30964 18.75 5 18.75H19C19.6904 18.75 20.25 18.1904 20.25 17.5Z", vectorEffect: "non-scaling-stroke" }) }); // packages/icons/build-module/library/arrow-down.mjs var import_primitives3 = __toESM(require_primitives(), 1); var import_jsx_runtime3 = __toESM(require_jsx_runtime(), 1); var arrow_down_default = /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_primitives3.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_primitives3.Path, { d: "M12 4V19M7 14L12 19L17 14", vectorEffect: "non-scaling-stroke" }) }); // packages/icons/build-module/library/arrow-left.mjs var import_primitives4 = __toESM(require_primitives(), 1); var import_jsx_runtime4 = __toESM(require_jsx_runtime(), 1); var arrow_left_default = /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_primitives4.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_primitives4.Path, { d: "M20 12L5 12M10 7L5 12L10 17", vectorEffect: "non-scaling-stroke" }) }); // packages/icons/build-module/library/arrow-right.mjs var import_primitives5 = __toESM(require_primitives(), 1); var import_jsx_runtime5 = __toESM(require_jsx_runtime(), 1); var arrow_right_default = /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_primitives5.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_primitives5.Path, { d: "M4 12L19 12M14 17L19 12L14 7", vectorEffect: "non-scaling-stroke" }) }); // packages/icons/build-module/library/arrow-up.mjs var import_primitives6 = __toESM(require_primitives(), 1); var import_jsx_runtime6 = __toESM(require_jsx_runtime(), 1); var arrow_up_default = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_primitives6.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_primitives6.Path, { d: "M12 20L12 5M17 10L12 5L7 10", vectorEffect: "non-scaling-stroke" }) }); // packages/icons/build-module/library/aspect-ratio.mjs var import_primitives7 = __toESM(require_primitives(), 1); var import_jsx_runtime7 = __toESM(require_jsx_runtime(), 1); var aspect_ratio_default = /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_primitives7.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_primitives7.Path, { d: "M7.25 12V9.25H10M16.75 12V14.75H14M5.5 17.75H18.5C19.1904 17.75 19.75 17.1904 19.75 16.5V7.5C19.75 6.80964 19.1904 6.25 18.5 6.25H5.5C4.80964 6.25 4.25 6.80964 4.25 7.5V16.5C4.25 17.1904 4.80964 17.75 5.5 17.75Z", vectorEffect: "non-scaling-stroke" }) }); // packages/icons/build-module/library/audio.mjs var import_primitives8 = __toESM(require_primitives(), 1); var import_jsx_runtime8 = __toESM(require_jsx_runtime(), 1); var audio_default = /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_primitives8.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: [ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_primitives8.Path, { d: "M13.25 16.5C13.25 18.0188 12.0188 19.25 10.5 19.25C8.98122 19.25 7.75 18.0188 7.75 16.5C7.75 14.9812 8.98122 13.75 10.5 13.75C12.0188 13.75 13.25 14.9812 13.25 16.5Z", fill: "currentColor", stroke: "none" }), /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_primitives8.Path, { d: "M10.5 19.25C12.0188 19.25 13.25 18.0188 13.25 16.5C13.25 14.9812 12.0188 13.75 10.5 13.75C8.98122 13.75 7.75 14.9812 7.75 16.5C7.75 18.0188 8.98122 19.25 10.5 19.25ZM10.5 19.25C13.4867 19.25 13.75 16.5 13.75 15.1379V7.99998C13.75 4.9108 16.4 5.00254 18 5.00233", vectorEffect: "non-scaling-stroke" }) ] }); // packages/icons/build-module/library/background.mjs var import_primitives9 = __toESM(require_primitives(), 1); var import_jsx_runtime9 = __toESM(require_jsx_runtime(), 1); var background_default = /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_primitives9.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_primitives9.Path, { d: "M18 16L8 6M19 13L11 5M18 8L16 6M16 18L6 8M13 19L5 11M8 18L6 16", strokeLinecap: "round", vectorEffect: "non-scaling-stroke" }) }); // packages/icons/build-module/library/backup.mjs var import_primitives10 = __toESM(require_primitives(), 1); var import_jsx_runtime10 = __toESM(require_jsx_runtime(), 1); var backup_default = /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_primitives10.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_primitives10.Path, { d: "M7.59201 17.7565C8.8135 18.6933 10.3417 19.25 12 19.25C16.0041 19.25 19.25 16.0041 19.25 12C19.25 7.99594 16.0041 4.75 12 4.75C7.99594 4.75 4.75 7.99593 4.75 12L4.75 14M14.75 14.75L12.25 12.25L12.25 8M2 12L4.75 14L7.5 12", vectorEffect: "non-scaling-stroke" }) }); // packages/icons/build-module/library/block-default.mjs var import_primitives11 = __toESM(require_primitives(), 1); var import_jsx_runtime11 = __toESM(require_jsx_runtime(), 1); var block_default_default = /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_primitives11.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: [ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_primitives11.Path, { d: "M3.75 10C3.75 9.30964 4.30964 8.75 5 8.75H19C19.6904 8.75 20.25 9.30964 20.25 10V18C20.25 18.6904 19.6904 19.25 19 19.25H5C4.30964 19.25 3.75 18.6904 3.75 18V10Z", vectorEffect: "non-scaling-stroke" }), /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_primitives11.Path, { d: "M10.5 6.5V9H6.5V6.5H10.5ZM17.5 6.5V9H13.5V6.5H17.5Z", fill: "currentColor", vectorEffect: "non-scaling-stroke" }) ] }); // packages/icons/build-module/library/block-table.mjs var import_primitives12 = __toESM(require_primitives(), 1); var import_jsx_runtime12 = __toESM(require_jsx_runtime(), 1); var block_table_default = /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_primitives12.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_primitives12.Path, { d: "M4.75 9.5V6C4.75 5.30964 5.30964 4.75 6 4.75L18 4.75C18.6904 4.75 19.25 5.30964 19.25 6V9.5M4.75 9.5H12M4.75 9.5V14.5M19.25 9.5H12M19.25 9.5V14.5M12 9.5V14.5M12 19.25H18C18.6904 19.25 19.25 18.6904 19.25 18V14.5M12 19.25H6C5.30964 19.25 4.75 18.6904 4.75 18V14.5M12 19.25V14.5M12 14.5H19.25M12 14.5H4.75", vectorEffect: "non-scaling-stroke" }) }); // packages/icons/build-module/library/category.mjs var import_primitives13 = __toESM(require_primitives(), 1); var import_jsx_runtime13 = __toESM(require_jsx_runtime(), 1); var category_default = /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_primitives13.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: [ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_primitives13.Path, { d: "M4.75 6C4.75 5.30964 5.30964 4.75 6 4.75H9C9.69036 4.75 10.25 5.30964 10.25 6V9C10.25 9.69036 9.69036 10.25 9 10.25H6C5.30964 10.25 4.75 9.69036 4.75 9V6Z", vectorEffect: "non-scaling-stroke" }), /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_primitives13.Path, { d: "M4.75 15C4.75 14.3096 5.30964 13.75 6 13.75H9C9.69036 13.75 10.25 14.3096 10.25 15V18C10.25 18.6904 9.69036 19.25 9 19.25H6C5.30964 19.25 4.75 18.6904 4.75 18V15Z", vectorEffect: "non-scaling-stroke" }), /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_primitives13.Path, { d: "M13.75 6C13.75 5.30964 14.3096 4.75 15 4.75H18C18.6904 4.75 19.25 5.30964 19.25 6V9C19.25 9.69036 18.6904 10.25 18 10.25H15C14.3096 10.25 13.75 9.69036 13.75 9V6Z", vectorEffect: "non-scaling-stroke" }), /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_primitives13.Path, { d: "M13.75 15C13.75 14.3096 14.3096 13.75 15 13.75H18C18.6904 13.75 19.25 14.3096 19.25 15V18C19.25 18.6904 18.6904 19.25 18 19.25H15C14.3096 19.25 13.75 18.6904 13.75 18V15Z", vectorEffect: "non-scaling-stroke" }) ] }); // packages/icons/build-module/library/caution.mjs var import_primitives14 = __toESM(require_primitives(), 1); var import_jsx_runtime14 = __toESM(require_jsx_runtime(), 1); var caution_default = /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_primitives14.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_primitives14.Path, { d: "M12 8L12 13M12 14.5L12 16M4.75 12C4.75 7.99593 7.99594 4.75 12 4.75C16.0041 4.75 19.25 7.99594 19.25 12C19.25 16.0041 16.0041 19.25 12 19.25C7.99594 19.25 4.75 16.0041 4.75 12Z", strokeLinejoin: "round", vectorEffect: "non-scaling-stroke" }) }); // packages/icons/build-module/library/check.mjs var import_primitives15 = __toESM(require_primitives(), 1); var import_jsx_runtime15 = __toESM(require_jsx_runtime(), 1); var check_default = /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_primitives15.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_primitives15.Path, { d: "M7 12L10 15L17 8", vectorEffect: "non-scaling-stroke" }) }); // packages/icons/build-module/library/chevron-down.mjs var import_primitives16 = __toESM(require_primitives(), 1); var import_jsx_runtime16 = __toESM(require_jsx_runtime(), 1); var chevron_down_default = /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_primitives16.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_primitives16.Path, { d: "M7 11L12 15L17 11", vectorEffect: "non-scaling-stroke" }) }); // packages/icons/build-module/library/chevron-left-small.mjs var import_primitives17 = __toESM(require_primitives(), 1); var import_jsx_runtime17 = __toESM(require_jsx_runtime(), 1); var chevron_left_small_default = /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_primitives17.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_primitives17.Path, { d: "M13.5 8.5L10.5 12L13.5 15.5", vectorEffect: "non-scaling-stroke" }) }); // packages/icons/build-module/library/chevron-left.mjs var import_primitives18 = __toESM(require_primitives(), 1); var import_jsx_runtime18 = __toESM(require_jsx_runtime(), 1); var chevron_left_default = /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_primitives18.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_primitives18.Path, { d: "M14 6.5L9 12L14 17.5", vectorEffect: "non-scaling-stroke" }) }); // packages/icons/build-module/library/chevron-right-small.mjs var import_primitives19 = __toESM(require_primitives(), 1); var import_jsx_runtime19 = __toESM(require_jsx_runtime(), 1); var chevron_right_small_default = /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_primitives19.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_primitives19.Path, { d: "M10.5 8.5L13.5 12L10.5 15.5", vectorEffect: "non-scaling-stroke" }) }); // packages/icons/build-module/library/chevron-right.mjs var import_primitives20 = __toESM(require_primitives(), 1); var import_jsx_runtime20 = __toESM(require_jsx_runtime(), 1); var chevron_right_default = /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_primitives20.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_primitives20.Path, { d: "M10 6.5L15 12L10 17.5", vectorEffect: "non-scaling-stroke" }) }); // packages/icons/build-module/library/chevron-up.mjs var import_primitives21 = __toESM(require_primitives(), 1); var import_jsx_runtime21 = __toESM(require_jsx_runtime(), 1); var chevron_up_default = /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_primitives21.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_primitives21.Path, { d: "M7 13L12 9L17 13", vectorEffect: "non-scaling-stroke" }) }); // packages/icons/build-module/library/close-small.mjs var import_primitives22 = __toESM(require_primitives(), 1); var import_jsx_runtime22 = __toESM(require_jsx_runtime(), 1); var close_small_default = /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_primitives22.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_primitives22.Path, { d: "M7.75 16.25L16.25 7.75M16.25 16.25L7.75 7.75", vectorEffect: "non-scaling-stroke" }) }); // packages/icons/build-module/library/close.mjs var import_primitives23 = __toESM(require_primitives(), 1); var import_jsx_runtime23 = __toESM(require_jsx_runtime(), 1); var close_default = /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_primitives23.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_primitives23.Path, { d: "M5 19L19 5M19 19L5 5", vectorEffect: "non-scaling-stroke" }) }); // packages/icons/build-module/library/cloud-upload.mjs var import_primitives24 = __toESM(require_primitives(), 1); var import_jsx_runtime24 = __toESM(require_jsx_runtime(), 1); var cloud_upload_default = /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_primitives24.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_primitives24.Path, { d: "M14.5 16.25H16.5C18.0188 16.25 19.25 15.0188 19.25 13.5C19.25 11.9812 18.0188 10.75 16.5 10.75C16.4897 10.75 16.4793 10.7501 16.469 10.7502C16.4895 10.5863 16.5 10.4194 16.5 10.25C16.5 8.04086 14.7091 6.25 12.5 6.25C10.4456 6.25 8.75298 7.79872 8.5259 9.79233C8.35472 9.76448 8.17905 9.75 8 9.75C6.20507 9.75 4.75 11.2051 4.75 13C4.75 14.7949 6.20507 16.25 8 16.25H9.5M12 18L12 11.5M14.5 14L12 11.5L9.5 14", vectorEffect: "non-scaling-stroke" }) }); // packages/icons/build-module/library/cloud.mjs var import_primitives25 = __toESM(require_primitives(), 1); var import_jsx_runtime25 = __toESM(require_jsx_runtime(), 1); var cloud_default = /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_primitives25.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_primitives25.Path, { d: "M16.5 10.25C16.5 8.04086 14.7091 6.25 12.5 6.25C10.4456 6.25 8.75298 7.79872 8.5259 9.79233C8.35472 9.76448 8.17905 9.75 8 9.75C6.20507 9.75 4.75 11.2051 4.75 13C4.75 14.7949 6.20507 16.25 8 16.25H16.5C18.0188 16.25 19.25 15.0188 19.25 13.5C19.25 11.9812 18.0188 10.75 16.5 10.75L16.469 10.7502C16.4895 10.5863 16.5 10.4194 16.5 10.25Z", vectorEffect: "non-scaling-stroke" }) }); // packages/icons/build-module/library/code.mjs var import_primitives26 = __toESM(require_primitives(), 1); var import_jsx_runtime26 = __toESM(require_jsx_runtime(), 1); var code_default = /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_primitives26.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_primitives26.Path, { d: "M7.99997 7L3.70708 11.2929C3.31655 11.6834 3.31655 12.3166 3.70708 12.7071L7.99997 17M16 17L20.2929 12.7071C20.6834 12.3166 20.6834 11.6834 20.2929 11.2929L16 7", strokeLinejoin: "round", vectorEffect: "non-scaling-stroke" }) }); // packages/icons/build-module/library/cog.mjs var import_primitives27 = __toESM(require_primitives(), 1); var import_jsx_runtime27 = __toESM(require_jsx_runtime(), 1); var cog_default = /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_primitives27.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: [ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_primitives27.Path, { d: "M5.38646 8.95505C5.36302 8.99564 5.37092 9.04706 5.40547 9.07874L6.96476 10.509C7.08306 10.1089 7.24777 9.72864 7.45264 9.37456C7.66022 9.01579 7.90904 8.68387 8.19262 8.38527L6.17287 7.74956C6.12816 7.73549 6.07968 7.75436 6.05624 7.79495L5.38646 8.95505Z", fill: "currentColor", strokeLinejoin: "round", vectorEffect: "non-scaling-stroke" }), /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_primitives27.Path, { d: "M12.6698 19.25C12.7167 19.25 12.7573 19.2174 12.7674 19.1717L13.2265 17.106C12.833 17.2001 12.4223 17.25 12 17.25C11.5777 17.25 11.167 17.2001 10.7736 17.106L11.2326 19.1717C11.2428 19.2174 11.2834 19.25 11.3303 19.25L12.6698 19.25Z", fill: "currentColor", strokeLinejoin: "round", vectorEffect: "non-scaling-stroke" }), /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_primitives27.Path, { d: "M11.3303 4.75C11.2834 4.75 11.2428 4.78255 11.2326 4.82831L10.7736 6.89403C11.167 6.79986 11.5777 6.75 12 6.75C12.4223 6.75 12.833 6.79987 13.2265 6.89403L12.7674 4.82831C12.7573 4.78255 12.7167 4.75 12.6698 4.75L11.3303 4.75Z", fill: "currentColor", strokeLinejoin: "round", vectorEffect: "non-scaling-stroke" }), /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_primitives27.Path, { d: "M17.9438 7.79495C17.9204 7.75436 17.8719 7.73549 17.8272 7.74956L15.8074 8.38528C16.091 8.68388 16.3398 9.0158 16.5474 9.37457C16.7523 9.72865 16.917 10.1089 17.0353 10.509L18.5946 9.07874C18.6291 9.04706 18.637 8.99564 18.6136 8.95505L17.9438 7.79495Z", fill: "currentColor", strokeLinejoin: "round", vectorEffect: "non-scaling-stroke" }), /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_primitives27.Path, { d: "M6.05625 16.205C6.07968 16.2456 6.12816 16.2645 6.17287 16.2504L8.19262 15.6147C7.90904 15.3161 7.66022 14.9842 7.45264 14.6254C7.24777 14.2714 7.08307 13.8911 6.96476 13.491L5.40547 14.9213C5.37093 14.9529 5.36303 15.0044 5.38646 15.045L6.05625 16.205Z", fill: "currentColor", strokeLinejoin: "round", vectorEffect: "non-scaling-stroke" }), /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_primitives27.Path, { d: "M18.6136 15.0449C18.637 15.0044 18.6291 14.9529 18.5946 14.9213L17.0353 13.491C16.917 13.8911 16.7523 14.2713 16.5474 14.6254C16.3398 14.9842 16.091 15.3161 15.8074 15.6147L17.8272 16.2504C17.8719 16.2645 17.9204 16.2456 17.9438 16.205L18.6136 15.0449Z", fill: "currentColor", strokeLinejoin: "round", vectorEffect: "non-scaling-stroke" }), /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_primitives27.Path, { d: "M12 6.75C14.8995 6.75 17.25 9.10051 17.25 12C17.25 14.8995 14.8995 17.25 12 17.25C9.10051 17.25 6.75 14.8995 6.75 12C6.75 9.10051 9.10051 6.75 12 6.75Z", vectorEffect: "non-scaling-stroke" }), /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_primitives27.Path, { d: "M12 8C14.2091 8 16 9.79086 16 12C16 14.2091 14.2091 16 12 16C9.79086 16 8 14.2091 8 12C8 9.79086 9.79086 8 12 8Z", vectorEffect: "non-scaling-stroke" }) ] }); // packages/icons/build-module/library/color.mjs var import_primitives28 = __toESM(require_primitives(), 1); var import_jsx_runtime28 = __toESM(require_jsx_runtime(), 1); var color_default = /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_primitives28.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_primitives28.Path, { d: "M17.25 14C17.25 16.8995 14.8995 19.25 12 19.25C9.10051 19.25 6.75 16.8995 6.75 14C6.75 11.1005 10 7.37 12 5.12C14 7.37 17.25 11.1005 17.25 14Z", vectorEffect: "non-scaling-stroke" }) }); // packages/icons/build-module/library/comment-author-avatar.mjs var import_primitives29 = __toESM(require_primitives(), 1); var import_jsx_runtime29 = __toESM(require_jsx_runtime(), 1); var comment_author_avatar_default = /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_primitives29.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: [ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_primitives29.Path, { d: "M8 18.0476V16C8 14.8954 8.89543 14 10 14H14C15.1046 14 16 14.8954 16 16V18.0476", vectorEffect: "non-scaling-stroke" }), /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_primitives29.Path, { d: "M12 4.75C7.99594 4.75 4.75 7.99593 4.75 12C4.75 16.0041 7.99593 19.25 12 19.25C16.0041 19.25 19.25 16.0041 19.25 12C19.25 7.99594 16.0041 4.75 12 4.75Z", strokeLinejoin: "round", vectorEffect: "non-scaling-stroke" }), /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_primitives29.Path, { d: "M13.75 10C13.75 10.9665 12.9665 11.75 12 11.75C11.0335 11.75 10.25 10.9665 10.25 10C10.25 9.0335 11.0335 8.25 12 8.25C12.9665 8.25 13.75 9.0335 13.75 10Z", vectorEffect: "non-scaling-stroke" }) ] }); // packages/icons/build-module/library/comment.mjs var import_primitives30 = __toESM(require_primitives(), 1); var import_jsx_runtime30 = __toESM(require_jsx_runtime(), 1); var comment_default = /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_primitives30.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_primitives30.Path, { d: "M18 5.5H6C5.30964 5.5 4.75 6.05964 4.75 6.75V16V18.4096C4.75 18.8725 5.32471 19.0869 5.62784 18.7371L8 16H18C18.6904 16 19.25 15.4404 19.25 14.75V6.75C19.25 6.05964 18.6904 5.5 18 5.5Z", vectorEffect: "non-scaling-stroke" }) }); // packages/icons/build-module/library/copy-small.mjs var import_primitives31 = __toESM(require_primitives(), 1); var import_jsx_runtime31 = __toESM(require_jsx_runtime(), 1); var copy_small_default = /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_primitives31.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: [ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_primitives31.Rect, { x: "4.75", y: "4.75", width: "11.5", height: "11.5", rx: "0.875", vectorEffect: "non-scaling-stroke" }), /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_primitives31.Path, { d: "M19.25 8.281V17.281C19.25 18.3692 18.3546 19.25 17.251 19.25H6.25", vectorEffect: "non-scaling-stroke" }) ] }); // packages/icons/build-module/library/desktop.mjs var import_primitives32 = __toESM(require_primitives(), 1); var import_jsx_runtime32 = __toESM(require_jsx_runtime(), 1); var desktop_default = /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_primitives32.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_primitives32.Path, { d: "M4.75 16.75V17H3.25C3.11193 17 3 17.1119 3 17.25H21C21 17.1119 20.8881 17 20.75 17H19.25V16.75M4.75 16.75V8.5C4.75 7.80964 5.30964 7.25 6 7.25H18C18.6904 7.25 19.25 7.80964 19.25 8.5V16.75M4.75 16.75H19.25", vectorEffect: "non-scaling-stroke" }) }); // packages/icons/build-module/library/download.mjs var import_primitives33 = __toESM(require_primitives(), 1); var import_jsx_runtime33 = __toESM(require_jsx_runtime(), 1); var download_default = /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_primitives33.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_primitives33.Path, { d: "M12 3V16M6 10.5L12 16L17.5 10.5M4.75 15V19.25H19.25V15", vectorEffect: "non-scaling-stroke" }) }); // packages/icons/build-module/library/drafts.mjs var import_primitives34 = __toESM(require_primitives(), 1); var import_jsx_runtime34 = __toESM(require_jsx_runtime(), 1); var drafts_default = /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_primitives34.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: [ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_primitives34.Path, { d: "M12 16C13.0609 16 14.0783 15.5786 14.8284 14.8284C15.5786 14.0783 16 13.0609 16 12H8C8 13.0609 8.42143 14.0783 9.17157 14.8284C9.92172 15.5786 10.9391 16 12 16Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd", stroke: "none" }), /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_primitives34.Path, { d: "M12 19.25C16.0041 19.25 19.25 16.0041 19.25 12C19.25 7.99594 16.0041 4.75 12 4.75C7.99594 4.75 4.75 7.99594 4.75 12C4.75 16.0041 7.99594 19.25 12 19.25Z", strokeLinejoin: "round", vectorEffect: "non-scaling-stroke" }) ] }); // packages/icons/build-module/library/drawer-left.mjs var import_primitives35 = __toESM(require_primitives(), 1); var import_jsx_runtime35 = __toESM(require_jsx_runtime(), 1); var drawer_left_default = /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_primitives35.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_primitives35.Path, { d: "M9.75 4.75H6C5.30964 4.75 4.75 5.30964 4.75 6V18C4.75 18.6904 5.30964 19.25 6 19.25H9.75M9.75 4.75H18C18.6904 4.75 19.25 5.30964 19.25 6V18C19.25 18.6904 18.6904 19.25 18 19.25H9.75M9.75 4.75V19.25", vectorEffect: "non-scaling-stroke" }) }); // packages/icons/build-module/library/drawer-right.mjs var import_primitives36 = __toESM(require_primitives(), 1); var import_jsx_runtime36 = __toESM(require_jsx_runtime(), 1); var drawer_right_default = /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_primitives36.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_primitives36.Path, { d: "M14.25 19.25L18 19.25C18.6904 19.25 19.25 18.6904 19.25 18L19.25 6C19.25 5.30964 18.6904 4.75 18 4.75L14.25 4.75M14.25 19.25L6 19.25C5.30964 19.25 4.75 18.6904 4.75 18L4.75 6C4.75 5.30964 5.30965 4.75 6 4.75L14.25 4.75M14.25 19.25L14.25 4.75", vectorEffect: "non-scaling-stroke" }) }); // packages/icons/build-module/library/envelope.mjs var import_primitives37 = __toESM(require_primitives(), 1); var import_jsx_runtime37 = __toESM(require_jsx_runtime(), 1); var envelope_default = /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_primitives37.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_primitives37.Path, { d: "M20.25 8.5V7C20.25 6.30964 19.6904 5.75 19 5.75H5C4.30964 5.75 3.75 6.30964 3.75 7V8.5M20.25 8.5V17C20.25 17.6904 19.6904 18.25 19 18.25H5C4.30964 18.25 3.75 17.6904 3.75 17V8.5M20.25 8.5L12 14.5L3.75 8.5", vectorEffect: "non-scaling-stroke" }) }); // packages/icons/build-module/library/error.mjs var import_primitives38 = __toESM(require_primitives(), 1); var import_jsx_runtime38 = __toESM(require_jsx_runtime(), 1); var error_default = /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_primitives38.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_primitives38.Path, { d: "M12 9L12 14M12 15.5V17M11.1284 5.04947L3.83827 18.0097C3.46331 18.6763 3.94502 19.5 4.70985 19.5H19.2902C20.055 19.5 20.5367 18.6763 20.1617 18.0097L12.8716 5.04947C12.4893 4.36982 11.5107 4.36982 11.1284 5.04947Z", vectorEffect: "non-scaling-stroke" }) }); // packages/icons/build-module/library/external.mjs var import_primitives39 = __toESM(require_primitives(), 1); var import_jsx_runtime39 = __toESM(require_jsx_runtime(), 1); var external_default = /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_primitives39.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_primitives39.Path, { d: "M9.5 6.25H6.5C5.80964 6.25 5.25 6.80964 5.25 7.5V17.5C5.25 18.1904 5.80964 18.75 6.5 18.75H16.5C17.1904 18.75 17.75 18.1904 17.75 17.5V14.5M11.5 12.5L18.75 5.25M12.5 5.25H18.75V11.5", vectorEffect: "non-scaling-stroke" }) }); // packages/icons/build-module/library/file.mjs var import_primitives40 = __toESM(require_primitives(), 1); var import_jsx_runtime40 = __toESM(require_jsx_runtime(), 1); var file_default = /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_primitives40.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_primitives40.Path, { d: "M3.75 6V17.5C3.75 18.1904 4.30964 18.75 5 18.75H19C19.6904 18.75 20.25 18.1904 20.25 17.5V8.5C20.25 7.80964 19.6904 7.25 19 7.25H13.3463C12.8352 7.25 12.3755 6.93881 12.1857 6.46424L11.8143 5.53576C11.6245 5.06119 11.1648 4.75 10.6537 4.75H5C4.30964 4.75 3.75 5.30964 3.75 6Z", vectorEffect: "non-scaling-stroke" }) }); // packages/icons/build-module/library/flip-horizontal.mjs var import_primitives41 = __toESM(require_primitives(), 1); var import_jsx_runtime41 = __toESM(require_jsx_runtime(), 1); var flip_horizontal_default = /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_primitives41.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_primitives41.Path, { d: "M9 19.25H6C5.30964 19.25 4.75 18.6904 4.75 18V6C4.75 5.30964 5.30964 4.75 6 4.75H9M15 4.75L16.5 4.75M15 19.25H16.5M12 22V2M19.25 16.5V14.5M19.25 13V11M19.25 9.5V7.5M18 4.75C18.6904 4.75 19.25 5.30964 19.25 6M18 19.25C18.6904 19.25 19.25 18.6904 19.25 18", vectorEffect: "non-scaling-stroke" }) }); // packages/icons/build-module/library/flip-vertical.mjs var import_primitives42 = __toESM(require_primitives(), 1); var import_jsx_runtime42 = __toESM(require_jsx_runtime(), 1); var flip_vertical_default = /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_primitives42.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_primitives42.Path, { d: "M4.75 9L4.75 6C4.75 5.30964 5.30964 4.75 6 4.75L18 4.75C18.6904 4.75 19.25 5.30964 19.25 6L19.25 9M19.25 15L19.25 16.5M4.75 15L4.75 16.5M2 12L22 12M7.5 19.25L9.5 19.25M11 19.25L13 19.25M14.5 19.25L16.5 19.25M19.25 18C19.25 18.6904 18.6904 19.25 18 19.25M4.75 18C4.75 18.6904 5.30964 19.25 6 19.25", vectorEffect: "non-scaling-stroke" }) }); // packages/icons/build-module/library/footer.mjs var import_primitives43 = __toESM(require_primitives(), 1); var import_jsx_runtime43 = __toESM(require_jsx_runtime(), 1); var footer_default = /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_primitives43.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: [ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_primitives43.Path, { d: "M9.75 4.75H18C18.6904 4.75 19.25 5.30964 19.25 6V14.25M9.75 4.75H6C5.30964 4.75 4.75 5.30964 4.75 6V14.25M9.75 4.75V14.25M19.25 14.25V18C19.25 18.6904 18.6904 19.25 18 19.25H6C5.30964 19.25 4.75 18.6904 4.75 18V14.25M19.25 14.25H9.75M9.75 14.25H4.75", vectorEffect: "non-scaling-stroke" }), /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_primitives43.Path, { d: "M19.25 15.5V18C19.25 18.6904 18.6904 19.25 18 19.25H6C5.30964 19.25 4.75 18.6904 4.75 18V15.5C4.75 14.8096 5.30964 14.25 6 14.25H18C18.6904 14.25 19.25 14.8096 19.25 15.5Z", fill: "currentColor", vectorEffect: "non-scaling-stroke" }) ] }); // packages/icons/build-module/library/format-list-bullets-rtl.mjs var import_primitives44 = __toESM(require_primitives(), 1); var import_jsx_runtime44 = __toESM(require_jsx_runtime(), 1); var format_list_bullets_rtl_default = /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_primitives44.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: [ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_primitives44.Path, { d: "M13 8H4M13 16H4", vectorEffect: "non-scaling-stroke" }), /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_primitives44.Path, { d: "M18 9.25C17.3096 9.25 16.75 8.69036 16.75 8C16.75 7.30964 17.3096 6.75 18 6.75C18.6904 6.75 19.25 7.30964 19.25 8C19.25 8.69036 18.6904 9.25 18 9.25Z", fill: "currentColor", stroke: "none" }), /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_primitives44.Path, { d: "M18 17.25C17.3096 17.25 16.75 16.6904 16.75 16C16.75 15.3096 17.3096 14.75 18 14.75C18.6904 14.75 19.25 15.3096 19.25 16C19.25 16.6904 18.6904 17.25 18 17.25Z", fill: "currentColor", stroke: "none" }), /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_primitives44.Path, { d: "M18 9.25C17.3096 9.25 16.75 8.69036 16.75 8C16.75 7.30964 17.3096 6.75 18 6.75C18.6904 6.75 19.25 7.30964 19.25 8C19.25 8.69036 18.6904 9.25 18 9.25Z", vectorEffect: "non-scaling-stroke" }), /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_primitives44.Path, { d: "M18 17.25C17.3096 17.25 16.75 16.6904 16.75 16C16.75 15.3096 17.3096 14.75 18 14.75C18.6904 14.75 19.25 15.3096 19.25 16C19.25 16.6904 18.6904 17.25 18 17.25Z", vectorEffect: "non-scaling-stroke" }) ] }); // packages/icons/build-module/library/format-list-bullets.mjs var import_primitives45 = __toESM(require_primitives(), 1); var import_jsx_runtime45 = __toESM(require_jsx_runtime(), 1); var format_list_bullets_default = /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_primitives45.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: [ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_primitives45.Path, { d: "M11 8H20M11 16H20", vectorEffect: "non-scaling-stroke" }), /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_primitives45.Path, { d: "M6 9.25C6.69036 9.25 7.25 8.69036 7.25 8C7.25 7.30964 6.69036 6.75 6 6.75C5.30964 6.75 4.75 7.30964 4.75 8C4.75 8.69036 5.30964 9.25 6 9.25Z", fill: "currentColor", stroke: "none" }), /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_primitives45.Path, { d: "M6 17.25C6.69036 17.25 7.25 16.6904 7.25 16C7.25 15.3096 6.69036 14.75 6 14.75C5.30964 14.75 4.75 15.3096 4.75 16C4.75 16.6904 5.30964 17.25 6 17.25Z", fill: "currentColor", stroke: "none" }), /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_primitives45.Path, { d: "M6 9.25C6.69036 9.25 7.25 8.69036 7.25 8C7.25 7.30964 6.69036 6.75 6 6.75C5.30964 6.75 4.75 7.30964 4.75 8C4.75 8.69036 5.30964 9.25 6 9.25Z", vectorEffect: "non-scaling-stroke" }), /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_primitives45.Path, { d: "M6 17.25C6.69036 17.25 7.25 16.6904 7.25 16C7.25 15.3096 6.69036 14.75 6 14.75C5.30964 14.75 4.75 15.3096 4.75 16C4.75 16.6904 5.30964 17.25 6 17.25Z", vectorEffect: "non-scaling-stroke" }) ] }); // packages/icons/build-module/library/funnel.mjs var import_primitives46 = __toESM(require_primitives(), 1); var import_jsx_runtime46 = __toESM(require_jsx_runtime(), 1); var funnel_default = /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_primitives46.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_primitives46.Path, { d: "M10 17.5H14M8 12H16M6 6.5H18", strokeLinejoin: "round", vectorEffect: "non-scaling-stroke" }) }); // packages/icons/build-module/library/globe.mjs var import_primitives47 = __toESM(require_primitives(), 1); var import_jsx_runtime47 = __toESM(require_jsx_runtime(), 1); var globe_default = /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_primitives47.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_primitives47.Path, { d: "M12 4.75C8.87453 4.75 6.21099 6.72773 5.19257 9.5M18.8074 14.5C19.0937 13.7207 19.25 12.8786 19.25 12C19.25 11.1214 19.0937 10.2793 18.8074 9.5C17.789 6.72773 15.1255 4.75 12 4.75M12 4.75C11 5.5 9 8.63218 9 12C9 15.3678 11 18.5 12 19.25M12 4.75C13 5.5 15 8.63218 15 12C15 15.3678 13 18.5 12 19.25M5.19257 9.5C4.90628 10.2793 4.75 11.1214 4.75 12C4.75 12.8786 4.90629 13.7207 5.19257 14.5C6.21099 17.2723 8.87453 19.25 12 19.25M12 19.25C15.1255 19.25 17.789 17.2723 18.8074 14.5M5.19257 9.5L18.8074 9.5M5.19257 14.5L18.8074 14.5", strokeLinejoin: "round", vectorEffect: "non-scaling-stroke" }) }); // packages/icons/build-module/library/header.mjs var import_primitives48 = __toESM(require_primitives(), 1); var import_jsx_runtime48 = __toESM(require_jsx_runtime(), 1); var header_default = /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_primitives48.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: [ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_primitives48.Path, { d: "M9.75 19.25H18C18.6904 19.25 19.25 18.6904 19.25 18V9.75M9.75 19.25H6C5.30964 19.25 4.75 18.6904 4.75 18V9.75M9.75 19.25V9.75M19.25 9.75V6C19.25 5.30964 18.6904 4.75 18 4.75H6C5.30964 4.75 4.75 5.30964 4.75 6V9.75M19.25 9.75H9.75M9.75 9.75H4.75", vectorEffect: "non-scaling-stroke" }), /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_primitives48.Path, { d: "M19.25 8.5V6C19.25 5.30964 18.6904 4.75 18 4.75H6C5.30964 4.75 4.75 5.30964 4.75 6V8.5C4.75 9.19036 5.30964 9.75 6 9.75H18C18.6904 9.75 19.25 9.19036 19.25 8.5Z", fill: "currentColor", vectorEffect: "non-scaling-stroke" }) ] }); // packages/icons/build-module/library/info.mjs var import_primitives49 = __toESM(require_primitives(), 1); var import_jsx_runtime49 = __toESM(require_jsx_runtime(), 1); var info_default = /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_primitives49.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_primitives49.Path, { d: "M12 16V11M12 9.5V8M19.25 12C19.25 16.0041 16.0041 19.25 12 19.25C7.99594 19.25 4.75 16.0041 4.75 12C4.75 7.99594 7.99594 4.75 12 4.75C16.0041 4.75 19.25 7.99594 19.25 12Z", strokeLinejoin: "round", vectorEffect: "non-scaling-stroke" }) }); // packages/icons/build-module/library/keyboard.mjs var import_primitives50 = __toESM(require_primitives(), 1); var import_jsx_runtime50 = __toESM(require_jsx_runtime(), 1); var keyboard_default = /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_primitives50.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_primitives50.Path, { d: "M6.5 9H8.5M8 15H16M6.5 12H8.5M9.5 9H11.5M9.5 12H11.5M12.5 9H14.5M12.5 12H14.5M15.5 9H17.5M15.5 12H17.5M5 18.25H19C19.6904 18.25 20.25 17.6904 20.25 17V7C20.25 6.30964 19.6904 5.75 19 5.75H5C4.30964 5.75 3.75 6.30964 3.75 7V17C3.75 17.6904 4.30964 18.25 5 18.25Z", vectorEffect: "non-scaling-stroke" }) }); // packages/icons/build-module/library/layout.mjs var import_primitives51 = __toESM(require_primitives(), 1); var import_jsx_runtime51 = __toESM(require_jsx_runtime(), 1); var layout_default = /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_primitives51.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_primitives51.Path, { d: "M9.75 19.25H18C18.6904 19.25 19.25 18.6904 19.25 18V9.75M9.75 19.25H6C5.30964 19.25 4.75 18.6904 4.75 18V9.75M9.75 19.25V9.75M19.25 9.75V6C19.25 5.30964 18.6904 4.75 18 4.75H6C5.30964 4.75 4.75 5.30964 4.75 6V9.75M19.25 9.75H9.75M9.75 9.75H4.75", vectorEffect: "non-scaling-stroke" }) }); // packages/icons/build-module/library/line-solid.mjs var import_primitives52 = __toESM(require_primitives(), 1); var import_jsx_runtime52 = __toESM(require_jsx_runtime(), 1); var line_solid_default = /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_primitives52.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_primitives52.Path, { d: "M5 12H19", vectorEffect: "non-scaling-stroke" }) }); // packages/icons/build-module/library/link.mjs var import_primitives53 = __toESM(require_primitives(), 1); var import_jsx_runtime53 = __toESM(require_jsx_runtime(), 1); var link_default = /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_primitives53.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_primitives53.Path, { d: "M9.5 12L14.5 12M10 7.75H8.25C5.90279 7.75 4 9.65279 4 12C4 14.3472 5.90279 16.25 8.25 16.25H10M14 16.25H15.75C18.0972 16.25 20 14.3472 20 12C20 9.65279 18.0972 7.75 15.75 7.75L14 7.75", vectorEffect: "non-scaling-stroke" }) }); // packages/icons/build-module/library/list-view.mjs var import_primitives54 = __toESM(require_primitives(), 1); var import_jsx_runtime54 = __toESM(require_jsx_runtime(), 1); var list_view_default = /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_primitives54.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_primitives54.Path, { d: "M10 17.5H21M6.5 12H17.5M3 6.5H14", strokeLinejoin: "round", vectorEffect: "non-scaling-stroke" }) }); // packages/icons/build-module/library/lock-small.mjs var import_primitives55 = __toESM(require_primitives(), 1); var import_jsx_runtime55 = __toESM(require_jsx_runtime(), 1); var lock_small_default = /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_primitives55.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_primitives55.Path, { fillRule: "evenodd", clipRule: "evenodd", d: "M15 11h-.2V9c0-1.5-1.2-2.8-2.8-2.8S9.2 7.5 9.2 9v2H9c-.6 0-1 .4-1 1v4c0 .6.4 1 1 1h6c.6 0 1-.4 1-1v-4c0-.6-.4-1-1-1zm-1.8 0h-2.5V9c0-.7.6-1.2 1.2-1.2s1.2.6 1.2 1.2v2z" }) }); // packages/icons/build-module/library/mobile.mjs var import_primitives56 = __toESM(require_primitives(), 1); var import_jsx_runtime56 = __toESM(require_jsx_runtime(), 1); var mobile_default = /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_primitives56.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_primitives56.Path, { d: "M11 16.5H13M16.25 18V6C16.25 5.30964 15.6904 4.75 15 4.75H9C8.30964 4.75 7.75 5.30964 7.75 6L7.75 18C7.75 18.6904 8.30964 19.25 9 19.25H15C15.6904 19.25 16.25 18.6904 16.25 18Z", vectorEffect: "non-scaling-stroke" }) }); // packages/icons/build-module/library/more-vertical.mjs var import_primitives57 = __toESM(require_primitives(), 1); var import_jsx_runtime57 = __toESM(require_jsx_runtime(), 1); var more_vertical_default = /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_primitives57.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: [ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_primitives57.Path, { d: "M11.75 18.25L12.25 18.25L12.25 17.75L11.75 17.75L11.75 18.25Z", fill: "currentColor", stroke: "none" }), /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_primitives57.Path, { d: "M11.75 12.25L12.25 12.25L12.25 11.75L11.75 11.75L11.75 12.25Z", fill: "currentColor", stroke: "none" }), /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_primitives57.Path, { d: "M11.75 6.25L12.25 6.25L12.25 5.75L11.75 5.75L11.75 6.25Z", fill: "currentColor", stroke: "none" }), /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_primitives57.Path, { d: "M11.75 18.25L12.25 18.25L12.25 17.75L11.75 17.75L11.75 18.25Z", vectorEffect: "non-scaling-stroke" }), /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_primitives57.Path, { d: "M11.75 12.25L12.25 12.25L12.25 11.75L11.75 11.75L11.75 12.25Z", vectorEffect: "non-scaling-stroke" }), /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_primitives57.Path, { d: "M11.75 6.25L12.25 6.25L12.25 5.75L11.75 5.75L11.75 6.25Z", vectorEffect: "non-scaling-stroke" }) ] }); // packages/icons/build-module/library/navigation-overlay.mjs var import_primitives58 = __toESM(require_primitives(), 1); var import_jsx_runtime58 = __toESM(require_jsx_runtime(), 1); var navigation_overlay_default = /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_primitives58.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: [ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_primitives58.Path, { d: "M4.75 9.25V16C4.75 16.6904 5.30964 17.25 6 17.25H8M4.75 9.25V6C4.75 5.30964 5.30964 4.75 6 4.75H16C16.6904 4.75 17.25 5.30964 17.25 6V8M4.75 9.25H8", vectorEffect: "non-scaling-stroke" }), /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_primitives58.Path, { d: "M10.75 11.25C10.75 10.9739 10.9739 10.75 11.25 10.75H18.75C19.0261 10.75 19.25 10.9739 19.25 11.25V18.75C19.25 19.0261 19.0261 19.25 18.75 19.25H11.25C10.9739 19.25 10.75 19.0261 10.75 18.75V11.25Z", fill: "currentColor", vectorEffect: "non-scaling-stroke" }) ] }); // packages/icons/build-module/library/navigation.mjs var import_primitives59 = __toESM(require_primitives(), 1); var import_jsx_runtime59 = __toESM(require_jsx_runtime(), 1); var navigation_default = /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_primitives59.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: [ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_primitives59.Path, { d: "M9 16L13.5 12.8421L15 8L10.5 11.1579L9 16Z", fill: "currentColor", stroke: "none" }), /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_primitives59.Path, { d: "M4.75 12C4.75 7.99593 7.99594 4.75 12 4.75C16.0041 4.75 19.25 7.99594 19.25 12C19.25 16.0041 16.0041 19.25 12 19.25C7.99594 19.25 4.75 16.0041 4.75 12Z", strokeLinejoin: "round", vectorEffect: "non-scaling-stroke" }) ] }); // packages/icons/build-module/library/next.mjs var import_primitives60 = __toESM(require_primitives(), 1); var import_jsx_runtime60 = __toESM(require_jsx_runtime(), 1); var next_default = /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_primitives60.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_primitives60.Path, { d: "M7 17.5L12 12L7 6.5M13 17.5L18 12L13 6.5", vectorEffect: "non-scaling-stroke" }) }); // packages/icons/build-module/library/not-allowed.mjs var import_primitives61 = __toESM(require_primitives(), 1); var import_jsx_runtime61 = __toESM(require_jsx_runtime(), 1); var not_allowed_default = /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_primitives61.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_primitives61.Path, { d: "M6.87347 6.87348L17.1265 17.1265M4.75 12C4.75 7.99593 7.99594 4.75 12 4.75C16.0041 4.75 19.25 7.99594 19.25 12C19.25 16.0041 16.0041 19.25 12 19.25C7.99593 19.25 4.75 16.0041 4.75 12Z", strokeLinejoin: "round", vectorEffect: "non-scaling-stroke" }) }); // packages/icons/build-module/library/page.mjs var import_primitives62 = __toESM(require_primitives(), 1); var import_jsx_runtime62 = __toESM(require_jsx_runtime(), 1); var page_default = /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_primitives62.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_primitives62.Path, { d: "M8.5 8.25H15.5M8.5 11.75H15.5M8.5 15.25H15.5M18.25 18V6C18.25 5.30964 17.6904 4.75 17 4.75H7C6.30964 4.75 5.75 5.30964 5.75 6L5.75 18C5.75 18.6904 6.30964 19.25 7 19.25H17C17.6904 19.25 18.25 18.6904 18.25 18Z", vectorEffect: "non-scaling-stroke" }) }); // packages/icons/build-module/library/pencil.mjs var import_primitives63 = __toESM(require_primitives(), 1); var import_jsx_runtime63 = __toESM(require_jsx_runtime(), 1); var pencil_default = /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_primitives63.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: [ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_primitives63.Path, { d: "M5 19.25H12", vectorEffect: "non-scaling-stroke" }), /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_primitives63.Path, { d: "M10 15L7.5 15.5L8 13L16 5L18 7L10 15Z", fill: "currentColor", vectorEffect: "non-scaling-stroke" }) ] }); // packages/icons/build-module/library/pending.mjs var import_primitives64 = __toESM(require_primitives(), 1); var import_jsx_runtime64 = __toESM(require_jsx_runtime(), 1); var pending_default = /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_primitives64.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: [ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_primitives64.Path, { d: "M12 16C10.9391 16 9.92172 15.5786 9.17157 14.8284C8.42143 14.0783 8 13.0609 8 12H12V8C13.0609 8 14.0783 8.42143 14.8284 9.17157C15.5786 9.92172 16 10.9391 16 12C16 13.0609 15.5786 14.0783 14.8284 14.8284C14.0783 15.5786 13.0609 16 12 16Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd", stroke: "none" }), /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_primitives64.Path, { d: "M12 19.25C16.0041 19.25 19.25 16.0041 19.25 12C19.25 7.99594 16.0041 4.75 12 4.75C7.99594 4.75 4.75 7.99594 4.75 12C4.75 16.0041 7.99594 19.25 12 19.25Z", strokeLinejoin: "round", vectorEffect: "non-scaling-stroke" }) ] }); // packages/icons/build-module/library/plugins.mjs var import_primitives65 = __toESM(require_primitives(), 1); var import_jsx_runtime65 = __toESM(require_jsx_runtime(), 1); var plugins_default = /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_primitives65.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_primitives65.Path, { d: "M15.3995 11.5711L12.2175 8.38909L10.273 6.44454L7.67678 9.04074C7.3017 9.41581 7.09099 9.92452 7.09099 10.455L7.09099 13.455C7.09099 13.7202 6.98563 13.9745 6.7981 14.1621L5.14645 15.8137C4.95118 16.009 4.95118 16.3256 5.14645 16.5208L7.26777 18.6421C7.46303 18.8374 7.77961 18.8374 7.97487 18.6421L9.62652 16.9905C9.81406 16.8029 10.0684 16.6976 10.3336 16.6976H13.3336C13.8641 16.6976 14.3728 16.4869 14.7478 16.1118L17.344 13.5156L15.3995 11.5711ZM12.2175 8.38909L16.1066 4.5M15.3995 11.5711L19.2886 7.68198", vectorEffect: "non-scaling-stroke" }) }); // packages/icons/build-module/library/plus.mjs var import_primitives66 = __toESM(require_primitives(), 1); var import_jsx_runtime66 = __toESM(require_jsx_runtime(), 1); var plus_default = /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_primitives66.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_primitives66.Path, { d: "M12 18V6M18 12H6", vectorEffect: "non-scaling-stroke" }) }); // packages/icons/build-module/library/post.mjs var import_primitives67 = __toESM(require_primitives(), 1); var import_jsx_runtime67 = __toESM(require_jsx_runtime(), 1); var post_default = /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_primitives67.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_primitives67.Path, { d: "M4.76776 11.5178L7.76777 8.51776M4 15H20M4 19H13M6 6.74999L9.53554 10.2855C10.1688 9.65226 10.3913 8.76379 10.2031 7.95118L12.5178 6.26776L10.0178 3.76776L8.33435 6.08246C7.52174 5.89422 6.63327 6.11673 6 6.74999Z", vectorEffect: "non-scaling-stroke" }) }); // packages/icons/build-module/library/previous.mjs var import_primitives68 = __toESM(require_primitives(), 1); var import_jsx_runtime68 = __toESM(require_jsx_runtime(), 1); var previous_default = /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_primitives68.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_primitives68.Path, { d: "M17 6.5L12 12L17 17.5M11 6.5L6 12L11 17.5", vectorEffect: "non-scaling-stroke" }) }); // packages/icons/build-module/library/published.mjs var import_primitives69 = __toESM(require_primitives(), 1); var import_jsx_runtime69 = __toESM(require_jsx_runtime(), 1); var published_default = /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(import_primitives69.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: [ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_primitives69.Path, { d: "M12 19.25C16.0041 19.25 19.25 16.0041 19.25 12C19.25 7.99594 16.0041 4.75 12 4.75C7.99594 4.75 4.75 7.99594 4.75 12C4.75 16.0041 7.99594 19.25 12 19.25Z", strokeLinejoin: "round", vectorEffect: "non-scaling-stroke" }), /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_primitives69.Path, { d: "M9 12L11 14L15 10", vectorEffect: "non-scaling-stroke" }) ] }); // packages/icons/build-module/library/redo.mjs var import_primitives70 = __toESM(require_primitives(), 1); var import_jsx_runtime70 = __toESM(require_jsx_runtime(), 1); var redo_default = /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_primitives70.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_primitives70.Path, { d: "M15 15L18.5 11L15 7M18.5 11H8C5 11 4.75 13.8 4.75 17", vectorEffect: "non-scaling-stroke" }) }); // packages/icons/build-module/library/reset.mjs var import_primitives71 = __toESM(require_primitives(), 1); var import_jsx_runtime71 = __toESM(require_jsx_runtime(), 1); var reset_default = /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_primitives71.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_primitives71.Path, { d: "M7 12H17", vectorEffect: "non-scaling-stroke" }) }); // packages/icons/build-module/library/rotate-left.mjs var import_primitives72 = __toESM(require_primitives(), 1); var import_jsx_runtime72 = __toESM(require_jsx_runtime(), 1); var rotate_left_default = /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(import_primitives72.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: [ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_primitives72.Path, { d: "M12 19.25C16.0041 19.25 19.25 16.0041 19.25 12C19.25 7.99594 16.0041 4.75 12 4.75L10 4.75M12 2L10 4.75L12 7.5", vectorEffect: "non-scaling-stroke" }), /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_primitives72.Path, { d: "M14.7745 18.6981C11.0752 20.2304 6.83418 18.4737 5.30189 14.7745C4.27391 12.2927 4.72622 9.56712 6.25229 7.57918", strokeLinejoin: "round", vectorEffect: "non-scaling-stroke" }) ] }); // packages/icons/build-module/library/rotate-right.mjs var import_primitives73 = __toESM(require_primitives(), 1); var import_jsx_runtime73 = __toESM(require_jsx_runtime(), 1); var rotate_right_default = /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(import_primitives73.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: [ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_primitives73.Path, { d: "M12 19.25C7.99593 19.25 4.75 16.0041 4.75 12C4.75 7.99594 7.99593 4.75 12 4.75L14 4.75M12 2L14 4.75L12 7.5", vectorEffect: "non-scaling-stroke" }), /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_primitives73.Path, { d: "M9.22553 18.6981C12.9248 20.2304 17.1658 18.4737 18.6981 14.7745C19.7261 12.2927 19.2738 9.56712 17.7477 7.57918", strokeLinejoin: "round", vectorEffect: "non-scaling-stroke" }) ] }); // packages/icons/build-module/library/scheduled.mjs var import_primitives74 = __toESM(require_primitives(), 1); var import_jsx_runtime74 = __toESM(require_jsx_runtime(), 1); var scheduled_default = /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(import_primitives74.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: [ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_primitives74.Path, { d: "M12 19.25C16.0041 19.25 19.25 16.0041 19.25 12C19.25 7.99594 16.0041 4.75 12 4.75C7.99594 4.75 4.75 7.99594 4.75 12C4.75 16.0041 7.99594 19.25 12 19.25Z", strokeLinejoin: "round", vectorEffect: "non-scaling-stroke" }), /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_primitives74.Path, { d: "M9.5 12.25H12.25V8", vectorEffect: "non-scaling-stroke" }) ] }); // packages/icons/build-module/library/search.mjs var import_primitives75 = __toESM(require_primitives(), 1); var import_jsx_runtime75 = __toESM(require_jsx_runtime(), 1); var search_default = /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_primitives75.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_primitives75.Path, { d: "M5 19L9.28769 14.7123M18.25 11C18.25 13.8995 15.8995 16.25 13 16.25C10.1005 16.25 7.75 13.8995 7.75 11C7.75 8.10051 10.1005 5.75 13 5.75C15.8995 5.75 18.25 8.10051 18.25 11Z", vectorEffect: "non-scaling-stroke" }) }); // packages/icons/build-module/library/seen.mjs var import_primitives76 = __toESM(require_primitives(), 1); var import_jsx_runtime76 = __toESM(require_jsx_runtime(), 1); var seen_default = /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(import_primitives76.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: [ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_primitives76.Path, { d: "M20.0645 13C18.5918 10.0366 15.5337 8 12 8C8.46631 8 5.40825 10.0366 3.93555 13", vectorEffect: "non-scaling-stroke" }), /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_primitives76.Circle, { cx: "12", cy: "12.5", r: "3", fill: "currentColor", vectorEffect: "non-scaling-stroke" }) ] }); // packages/icons/build-module/library/settings.mjs var import_primitives77 = __toESM(require_primitives(), 1); var import_jsx_runtime77 = __toESM(require_jsx_runtime(), 1); var settings_default = /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_primitives77.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_primitives77.Path, { d: "M5 8H19M19 16H5M10.75 8C10.75 8.82843 10.0784 9.5 9.25 9.5C8.42157 9.5 7.75 8.82843 7.75 8C7.75 7.17157 8.42157 6.5 9.25 6.5C10.0784 6.5 10.75 7.17157 10.75 8ZM16.25 16C16.25 16.8284 15.5784 17.5 14.75 17.5C13.9216 17.5 13.25 16.8284 13.25 16C13.25 15.1716 13.9216 14.5 14.75 14.5C15.5784 14.5 16.25 15.1716 16.25 16Z", vectorEffect: "non-scaling-stroke" }) }); // packages/icons/build-module/library/shadow.mjs var import_primitives78 = __toESM(require_primitives(), 1); var import_jsx_runtime78 = __toESM(require_jsx_runtime(), 1); var shadow_default = /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_primitives78.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_primitives78.Path, { d: "M3 12H6M18 12H21M5.63957 5.63751L7.76089 7.75883M16.2462 16.2441L18.3675 18.3654M12.005 3.005V6.005M12.005 18.005V21.005M18.3675 5.64459L16.2462 7.76591M7.76088 16.2512L5.63956 18.3725M15.25 12C15.25 13.7949 13.7949 15.25 12 15.25C10.2051 15.25 8.75 13.7949 8.75 12C8.75 10.2051 10.2051 8.75 12 8.75C13.7949 8.75 15.25 10.2051 15.25 12Z", vectorEffect: "non-scaling-stroke" }) }); // packages/icons/build-module/library/sidebar.mjs var import_primitives79 = __toESM(require_primitives(), 1); var import_jsx_runtime79 = __toESM(require_jsx_runtime(), 1); var sidebar_default = /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(import_primitives79.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: [ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_primitives79.Path, { d: "M9.75 19.25H18C18.6904 19.25 19.25 18.6904 19.25 18V9.75M9.75 19.25H6C5.30964 19.25 4.75 18.6904 4.75 18V9.75M9.75 19.25V9.75M19.25 9.75V6C19.25 5.30964 18.6904 4.75 18 4.75H6C5.30964 4.75 4.75 5.30964 4.75 6V9.75M19.25 9.75H9.75M9.75 9.75H4.75", vectorEffect: "non-scaling-stroke" }), /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_primitives79.Path, { d: "M6 19.25H9.75V9.75H4.75V18C4.75 18.6904 5.30964 19.25 6 19.25Z", fill: "currentColor", vectorEffect: "non-scaling-stroke" }) ] }); // packages/icons/build-module/library/square.mjs var import_primitives80 = __toESM(require_primitives(), 1); var import_jsx_runtime80 = __toESM(require_jsx_runtime(), 1); var square_default = /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_primitives80.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_primitives80.Path, { d: "M5.75 12V18.25H12M12 5.75H18.25V12", vectorEffect: "non-scaling-stroke" }) }); // packages/icons/build-module/library/star-empty.mjs var import_primitives81 = __toESM(require_primitives(), 1); var import_jsx_runtime81 = __toESM(require_jsx_runtime(), 1); var star_empty_default = /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_primitives81.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_primitives81.Path, { d: "M12 5.71576L13.6106 8.97924C13.7563 9.27438 14.0379 9.47895 14.3636 9.52628L17.965 10.0496L15.359 12.5899C15.1233 12.8196 15.0157 13.1506 15.0714 13.475L15.6866 17.0619L12.4653 15.3684C12.174 15.2152 11.826 15.2152 11.5347 15.3684L8.31341 17.0619L8.92861 13.475C8.98425 13.1506 8.8767 12.8196 8.64102 12.5899L6.03497 10.0496L9.63644 9.52628C9.96215 9.47895 10.2437 9.27438 10.3894 8.97924L12 5.71576Z", vectorEffect: "non-scaling-stroke" }) }); // packages/icons/build-module/library/star-filled.mjs var import_primitives82 = __toESM(require_primitives(), 1); var import_jsx_runtime82 = __toESM(require_jsx_runtime(), 1); var star_filled_default = /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_primitives82.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_primitives82.Path, { d: "M12 5.71576L13.6106 8.97924C13.7563 9.27438 14.0379 9.47895 14.3636 9.52628L17.965 10.0496L15.359 12.5899C15.1233 12.8196 15.0157 13.1506 15.0714 13.475L15.6866 17.0619L12.4653 15.3684C12.174 15.2152 11.826 15.2152 11.5347 15.3684L8.31341 17.0619L8.92861 13.475C8.98425 13.1506 8.8767 12.8196 8.64102 12.5899L6.03497 10.0496L9.63644 9.52628C9.96215 9.47895 10.2437 9.27438 10.3894 8.97924L12 5.71576Z", fill: "currentColor", vectorEffect: "non-scaling-stroke" }) }); // packages/icons/build-module/library/styles.mjs var import_primitives83 = __toESM(require_primitives(), 1); var import_jsx_runtime83 = __toESM(require_jsx_runtime(), 1); var styles_default = /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(import_primitives83.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: [ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_primitives83.Path, { d: "M12 4.75C7.99594 4.75 4.75 7.99593 4.75 12C4.75 16.0041 7.99594 19.25 12 19.25L12 4.75Z", fill: "currentColor", stroke: "none" }), /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_primitives83.Path, { d: "M12 19.25C16.0041 19.25 19.25 16.0041 19.25 12C19.25 7.99594 16.0041 4.75 12 4.75C7.99594 4.75 4.75 7.99594 4.75 12C4.75 16.0041 7.99594 19.25 12 19.25Z", strokeLinejoin: "round", vectorEffect: "non-scaling-stroke" }) ] }); // packages/icons/build-module/library/symbol-filled.mjs var import_primitives84 = __toESM(require_primitives(), 1); var import_jsx_runtime84 = __toESM(require_jsx_runtime(), 1); var symbol_filled_default = /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(import_primitives84.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: [ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_primitives84.Path, { d: "M15.2071 6.20711L20.2929 11.2929C20.6834 11.6834 20.6834 12.3166 20.2929 12.7071L15.2071 17.7929C14.8166 18.1834 14.1834 18.1834 13.7929 17.7929L8.70711 12.7071C8.31658 12.3166 8.31658 11.6834 8.70711 11.2929L13.7929 6.20711C14.1834 5.81658 14.8166 5.81658 15.2071 6.20711Z", fill: "currentColor", vectorEffect: "non-scaling-stroke" }), /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_primitives84.Path, { d: "M9.5 5.5L3.70711 11.2929C3.31658 11.6834 3.31658 12.3166 3.70711 12.7071L9.5 18.5", vectorEffect: "non-scaling-stroke" }) ] }); // packages/icons/build-module/library/symbol.mjs var import_primitives85 = __toESM(require_primitives(), 1); var import_jsx_runtime85 = __toESM(require_jsx_runtime(), 1); var symbol_default = /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_primitives85.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: [ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_primitives85.Path, { d: "M15.2071 6.20711L20.2929 11.2929C20.6834 11.6834 20.6834 12.3166 20.2929 12.7071L15.2071 17.7929C14.8166 18.1834 14.1834 18.1834 13.7929 17.7929L8.70711 12.7071C8.31658 12.3166 8.31658 11.6834 8.70711 11.2929L13.7929 6.20711C14.1834 5.81658 14.8166 5.81658 15.2071 6.20711Z", vectorEffect: "non-scaling-stroke" }), /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_primitives85.Path, { d: "M9.5 5.5L3.70711 11.2929C3.31658 11.6834 3.31658 12.3166 3.70711 12.7071L9.5 18.5", vectorEffect: "non-scaling-stroke" }) ] }); // packages/icons/build-module/library/tablet.mjs var import_primitives86 = __toESM(require_primitives(), 1); var import_jsx_runtime86 = __toESM(require_jsx_runtime(), 1); var tablet_default = /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(import_primitives86.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(import_primitives86.Path, { d: "M10 16.5H14M18.25 18V6C18.25 5.30964 17.6904 4.75 17 4.75H7C6.30964 4.75 5.75 5.30964 5.75 6L5.75 18C5.75 18.6904 6.30964 19.25 7 19.25H17C17.6904 19.25 18.25 18.6904 18.25 18Z", vectorEffect: "non-scaling-stroke" }) }); // packages/icons/build-module/library/trash.mjs var import_primitives87 = __toESM(require_primitives(), 1); var import_jsx_runtime87 = __toESM(require_jsx_runtime(), 1); var trash_default = /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_primitives87.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_primitives87.Path, { d: "M5 7.5H7M19 7.5H17M17 7.5L16.1588 17.1733C16.069 18.2068 15.2038 19 14.1664 19H9.83363C8.79622 19 7.93102 18.2068 7.84115 17.1733L7 7.5M17 7.5H14.9897M7 7.5H9.01027M14.9897 7.5C14.8627 5.96012 13.5727 4.75 12 4.75C10.4273 4.75 9.13731 5.96012 9.01027 7.5M14.9897 7.5H9.01027", vectorEffect: "non-scaling-stroke" }) }); // packages/icons/build-module/library/typography.mjs var import_primitives88 = __toESM(require_primitives(), 1); var import_jsx_runtime88 = __toESM(require_jsx_runtime(), 1); var typography_default = /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_primitives88.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: [ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_primitives88.Path, { d: "M4.75 17.5V17.223L5.76577 14.1757M5.76577 14.1757L8.07432 7.25H8.62838L10.9369 14.1757L11.9527 17.223V17.5M10.9369 14.1757H5.76577", vectorEffect: "non-scaling-stroke" }), /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_primitives88.Path, { d: "M19.25 9.5C19.25 9.5 19.25 13.5533 19.25 14.7886C19.25 16.0239 19.4324 16.75 20.75 16.75M19.25 13.0441C19.25 10.9853 18.0735 10.1618 16.6324 10.1618C15.0405 10.1618 13.75 11.3971 13.75 13.4559C13.75 15.5147 15.0405 16.75 16.6324 16.75C17.8092 16.75 19.25 15.5147 19.25 13.8676", vectorEffect: "non-scaling-stroke" }) ] }); // packages/icons/build-module/library/undo.mjs var import_primitives89 = __toESM(require_primitives(), 1); var import_jsx_runtime89 = __toESM(require_jsx_runtime(), 1); var undo_default = /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_primitives89.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_primitives89.Path, { d: "M8.25 15L4.75 11L8.25 7M4.75 11H15.25C18.25 11 18.5 13.8 18.5 17", vectorEffect: "non-scaling-stroke" }) }); // packages/icons/build-module/library/unseen.mjs var import_primitives90 = __toESM(require_primitives(), 1); var import_jsx_runtime90 = __toESM(require_jsx_runtime(), 1); var unseen_default = /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(import_primitives90.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: [ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_primitives90.Path, { d: "M8 21L10.6587 15.1842M13.1523 9.72929L13.8553 8.19144L16 3.5M20.0645 13C19.2118 11.2841 17.8276 9.87898 16.1272 9M3.93555 13C5.40825 10.0366 8.46631 8 12 8C12.636 8 13.2566 8.06597 13.8553 8.19144M13.1523 9.72929C12.7975 9.58156 12.4083 9.5 12 9.5C10.3431 9.5 9 10.8431 9 12.5C9 13.6747 9.67519 14.6917 10.6587 15.1842M13.1523 9.72929L10.6587 15.1842M13.1755 15.261C14.2481 14.8037 15 13.7397 15 12.5C15 12.1819 14.9505 11.8753 14.8587 11.5876", vectorEffect: "non-scaling-stroke" }), /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_primitives90.Path, { d: "M12 9.5C10.3431 9.5 9 10.8431 9 12.5C9 13.6747 9.67519 14.6917 10.6587 15.1842L13.1523 9.72929C12.7975 9.58156 12.4083 9.5 12 9.5Z", fill: "currentColor", vectorEffect: "non-scaling-stroke" }) ] }); // packages/icons/build-module/library/verse.mjs var import_primitives91 = __toESM(require_primitives(), 1); var import_jsx_runtime91 = __toESM(require_jsx_runtime(), 1); var verse_default = /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(import_primitives91.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: [ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_primitives91.Path, { d: "M8.5 14C9 12 12.5 7.5 17 5.5", vectorEffect: "non-scaling-stroke" }), /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_primitives91.Path, { d: "M8 14C7.66667 11.1667 9 5 17 3C17.1667 4.66667 17.2 8.6 16 11C14.8 13.4 10.1667 14 8 14ZM8 14L7 16", strokeLinecap: "round", vectorEffect: "non-scaling-stroke" }), /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_primitives91.Path, { d: "M5 19.25H12", vectorEffect: "non-scaling-stroke" }) ] }); // packages/icons/build-module/library/video.mjs var import_primitives92 = __toESM(require_primitives(), 1); var import_jsx_runtime92 = __toESM(require_jsx_runtime(), 1); var video_default = /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(import_primitives92.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: [ /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_primitives92.Path, { d: "M10 15L15 12L10 9V15Z", fill: "currentColor", stroke: "none" }), /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_primitives92.Path, { d: "M4.75 6C4.75 5.30964 5.30964 4.75 6 4.75H18C18.6904 4.75 19.25 5.30964 19.25 6V18C19.25 18.6904 18.6904 19.25 18 19.25H6C5.30964 19.25 4.75 18.6904 4.75 18V6Z", vectorEffect: "non-scaling-stroke" }) ] }); // packages/icons/build-module/library/wordpress.mjs var import_primitives93 = __toESM(require_primitives(), 1); var import_jsx_runtime93 = __toESM(require_jsx_runtime(), 1); var wordpress_default = /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_primitives93.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_primitives93.Path, { d: "M 22 12 C 22 6.49 17.51 2 12 2 C 6.48 2 2 6.49 2 12 C 2 17.52 6.48 22 12 22 C 17.51 22 22 17.52 22 12 M 9.78 17.37 L 6.37 8.22 C 6.92 8.2 7.54 8.14 7.54 8.14 C 8.04 8.08 7.98 7.01 7.48 7.03 C 7.48 7.03 6.03 7.14 5.11 7.14 C 4.93 7.14 4.74 7.14 4.53 7.13 C 6.12 4.69 8.87 3.11 12 3.11 C 14.33 3.11 16.45 3.98 18.05 5.45 C 17.37 5.34 16.4 5.84 16.4 7.03 C 16.4 7.77 16.85 8.39 17.3 9.13 C 17.65 9.74 17.85 10.49 17.85 11.59 C 17.85 13.08 16.45 16.59 16.45 16.59 L 13.42 8.22 C 13.96 8.2 14.24 8.05 14.24 8.05 C 14.74 8 14.68 6.8 14.18 6.83 C 14.18 6.83 12.74 6.95 11.8 6.95 C 10.93 6.95 9.47 6.83 9.47 6.83 C 8.97 6.8 8.91 8.03 9.41 8.05 L 10.33 8.13 L 11.59 11.54 L 9.78 17.37 M 19.41 12 C 19.65 11.36 20.15 10.13 19.84 7.75 C 20.54 9.04 20.89 10.46 20.89 12 C 20.89 15.29 19.16 18.24 16.49 19.78 C 17.46 17.19 18.43 14.58 19.41 12 M 8.1 20.09 C 5.12 18.65 3.11 15.53 3.11 12 C 3.11 10.7 3.34 9.52 3.83 8.41 C 5.25 12.3 6.67 16.2 8.1 20.09 M 12.13 13.46 L 14.71 20.44 C 13.85 20.73 12.95 20.89 12 20.89 C 11.21 20.89 10.43 20.78 9.71 20.56 C 10.52 18.18 11.33 15.82 12.13 13.46 L 12.13 13.46" }) }); // packages/editor/build-module/store/private-selectors.mjs var import_core_data5 = __toESM(require_core_data(), 1); var import_preferences2 = __toESM(require_preferences(), 1); // packages/editor/build-module/dataviews/store/private-selectors.mjs var EMPTY_ARRAY2 = []; function getEntityActions(state2, kind, name2) { return state2.actions[kind]?.[name2] ?? EMPTY_ARRAY2; } function getEntityFields(state2, kind, name2) { return state2.fields[kind]?.[name2] ?? EMPTY_ARRAY2; } function isEntityReady(state2, kind, name2) { return state2.isReady[kind]?.[name2]; } // packages/editor/build-module/store/private-selectors.mjs var EMPTY_INSERTION_POINT = { rootClientId: void 0, insertionIndex: void 0, filterValue: void 0 }; var { getTemplatePartIcon: getTemplatePartIcon2 } = unlock(import_core_data5.privateApis); var RENDERING_MODES = ["post-only", "template-locked"]; var getInserter = (0, import_data5.createRegistrySelector)( (select9) => (0, import_data5.createSelector)( (state2) => { if (typeof state2.blockInserterPanel === "object") { return state2.blockInserterPanel; } if (getRenderingMode(state2) === "template-locked") { const { getBlocksByName, getSelectedBlockClientId: getSelectedBlockClientId2, getBlockParents, getBlockOrder: getBlockOrder2 } = select9(import_block_editor3.store); const [postContentClientId] = getBlocksByName("core/post-content"); if (postContentClientId) { const selectedBlockClientId = getSelectedBlockClientId2(); if (selectedBlockClientId && selectedBlockClientId !== postContentClientId && getBlockParents(selectedBlockClientId).includes( postContentClientId )) { return EMPTY_INSERTION_POINT; } return { rootClientId: postContentClientId, insertionIndex: getBlockOrder2(postContentClientId).length, filterValue: void 0 }; } } return EMPTY_INSERTION_POINT; }, (state2) => { const { getBlocksByName, getSelectedBlockClientId: getSelectedBlockClientId2, getBlockParents, getBlockOrder: getBlockOrder2 } = select9(import_block_editor3.store); const [postContentClientId] = getBlocksByName("core/post-content"); const selectedBlockClientId = getSelectedBlockClientId2(); return [ state2.blockInserterPanel, getRenderingMode(state2), postContentClientId, selectedBlockClientId, selectedBlockClientId ? getBlockParents(selectedBlockClientId) : void 0, postContentClientId ? getBlockOrder2(postContentClientId).length : void 0 ]; } ) ); function getListViewToggleRef(state2) { return state2.listViewToggleRef; } function getInserterSidebarToggleRef(state2) { return state2.inserterSidebarToggleRef; } var CARD_ICONS = { wp_block: symbol_default, wp_navigation: navigation_default, page: page_default, post: verse_default }; var getPostIcon = (0, import_data5.createRegistrySelector)( (select9) => (state2, postType2, options) => { { if (postType2 === "wp_template_part" || postType2 === "wp_template") { const templateAreas = select9(import_core_data5.store).getCurrentTheme()?.default_template_part_areas || []; const areaData = templateAreas.find( (item) => options.area === item.area ); if (areaData?.icon) { return getTemplatePartIcon2(areaData.icon); } return layout_default; } if (CARD_ICONS[postType2]) { return CARD_ICONS[postType2]; } const postTypeEntity = select9(import_core_data5.store).getPostType(postType2); if (typeof postTypeEntity?.icon === "string" && postTypeEntity.icon.startsWith("dashicons-")) { return postTypeEntity.icon.slice(10); } return page_default; } } ); function getEntityActions2(state2, ...args) { return getEntityActions(state2.dataviews, ...args); } function isEntityReady2(state2, ...args) { return isEntityReady(state2.dataviews, ...args); } function getEntityFields2(state2, ...args) { return getEntityFields(state2.dataviews, ...args); } var getPostBlocksByName = (0, import_data5.createRegistrySelector)( (select9) => (0, import_data5.createSelector)( (state2, blockNames) => { blockNames = Array.isArray(blockNames) ? blockNames : [blockNames]; const { getBlocksByName, getBlockParents, getBlockName: getBlockName2 } = select9(import_block_editor3.store); return getBlocksByName(blockNames).filter( (clientId) => getBlockParents(clientId).every((parentClientId) => { const parentBlockName = getBlockName2(parentClientId); return ( // Ignore descendents of the query block. parentBlockName !== "core/query" && // Enable only the top-most block. !blockNames.includes(parentBlockName) ); }) ); }, (state2, blockNames) => { blockNames = Array.isArray(blockNames) ? blockNames : [blockNames]; const { getBlocksByName, getBlockParents } = select9(import_block_editor3.store); const clientIds = getBlocksByName(blockNames); const parentsOfClientIds = clientIds.map( (id) => getBlockParents(id) ); return [clientIds, ...parentsOfClientIds]; } ) ); var getDefaultRenderingMode = (0, import_data5.createRegistrySelector)( (select9) => (state2, postType2) => { const { getPostType, getCurrentTheme, hasFinishedResolution } = select9(import_core_data5.store); const currentTheme = getCurrentTheme(); const postTypeEntity = getPostType(postType2); if (!hasFinishedResolution("getPostType", [postType2]) || !hasFinishedResolution("getCurrentTheme")) { return void 0; } const theme2 = currentTheme?.stylesheet; const defaultModePreference = select9(import_preferences2.store).get( "core", "renderingModes" )?.[theme2]?.[postType2]; if (RENDERING_MODES.includes(defaultModePreference)) { return defaultModePreference; } const postTypeDefaultMode = Array.isArray( postTypeEntity?.supports?.editor ) ? postTypeEntity.supports.editor.find( (features) => "default-mode" in features )?.["default-mode"] : void 0; if (RENDERING_MODES.includes(postTypeDefaultMode)) { return postTypeDefaultMode; } const settingsDefaultMode = getEditorSettings(state2).defaultRenderingMode; if (RENDERING_MODES.includes(settingsDefaultMode)) { return settingsDefaultMode; } return "post-only"; } ); function getStylesPath(state2) { return state2.stylesPath ?? "/"; } function getShowStylebook(state2) { return state2.showStylebook ?? false; } var getCanvasWidth = (0, import_data5.createRegistrySelector)( (select9) => (state2) => { if (unlock(select9(import_block_editor3.store)).isZoomOut()) { return void 0; } return state2.canvasWidth; } ); function getRevisionPage(state2) { return state2.revisionPage; } function buildRevisionsPageQuery(revisionKey, page) { return { per_page: REVISIONS_PER_PAGE, page, context: "edit", orderby: "date", order: "desc", _fields: [ .../* @__PURE__ */ new Set([ "id", "date", "modified", "author", "slug", "meta", "title", "excerpt", // Not the whole field: `content.rendered` would blow up the // payload of a page of revisions. "content.raw", revisionKey ]) ].join() }; } var REVISIONS_PER_PAGE = 100; function getRevisionsPerPage() { return REVISIONS_PER_PAGE; } var getPageRevisions = (0, import_data5.createRegistrySelector)( (select9) => (state2, page) => { if (!page) { return null; } const { type: postType2, id: postId2 } = getCurrentPost(state2); if (!postType2 || !postId2) { return null; } const entityConfig = select9(import_core_data5.store).getEntityConfig( "postType", postType2 ); const revisionKey = entityConfig?.revisionKey || "id"; return select9(import_core_data5.store).getRevisions( "postType", postType2, postId2, buildRevisionsPageQuery(revisionKey, page) ); } ); function isRevisionsMode(state2) { return state2.revisionId !== null; } function isShowingRevisionDiff(state2) { return state2.showRevisionDiff; } function getCurrentRevisionId(state2) { return state2.revisionId; } var getCurrentRevision = (0, import_data5.createRegistrySelector)( (select9) => (state2) => { const revisionId2 = getCurrentRevisionId(state2); if (!revisionId2) { return void 0; } const page = getRevisionPage(state2); if (!page) { return null; } const { type: postType2, id: postId2 } = getCurrentPost(state2); const entityConfig = select9(import_core_data5.store).getEntityConfig( "postType", postType2 ); const revisionKey = entityConfig?.revisionKey || "id"; const revisions = select9(import_core_data5.store).getRevisions( "postType", postType2, postId2, buildRevisionsPageQuery(revisionKey, page) ); if (!revisions) { return null; } const revision = revisions.find( (record) => record[revisionKey] === revisionId2 ); if (revision) { return revision; } return select9(import_core_data5.store).getRevision( "postType", postType2, postId2, revisionId2, { context: "edit" } ) ?? null; } ); function getSelectedNote(state2) { return state2.selectedNote?.noteId; } function isNoteFocused(state2) { return !!state2.selectedNote?.options?.focus; } var getPreviousRevision = (0, import_data5.createRegistrySelector)( (select9) => (state2) => { const currentRevisionId = getCurrentRevisionId(state2); if (!currentRevisionId) { return void 0; } const page = getRevisionPage(state2); if (!page) { return null; } const { type: postType2, id: postId2 } = getCurrentPost(state2); const entityConfig = select9(import_core_data5.store).getEntityConfig( "postType", postType2 ); const revisionKey = entityConfig?.revisionKey || "id"; const query = buildRevisionsPageQuery(revisionKey, page); const revisions = select9(import_core_data5.store).getRevisions( "postType", postType2, postId2, query ); if (!revisions) { return null; } const currentIndex = revisions.findIndex( (r4) => r4[revisionKey] === currentRevisionId ); if (currentIndex >= 0 && currentIndex < revisions.length - 1) { return revisions[currentIndex + 1]; } const totalRevisions = getCurrentPostRevisionsCount(state2); const totalPages = Math.ceil(totalRevisions / query.per_page) || 1; if (currentIndex === revisions.length - 1 && page < totalPages) { const nextPageRevisions = select9(import_core_data5.store).getRevisions( "postType", postType2, postId2, buildRevisionsPageQuery(revisionKey, page + 1) ); return nextPageRevisions?.[0] ?? null; } return null; } ); var isCollaborationEnabledForCurrentPost = (0, import_data5.createRegistrySelector)( (select9) => (state2) => { if (!unlock(select9(import_core_data5.store)).isCollaborationSupported()) { return false; } const currentPostType = getCurrentPostType(state2); const currentPostId = getCurrentPostId(state2); const entityConfig = select9(import_core_data5.store).getEntityConfig( "postType", currentPostType ); const syncConfig = entityConfig?.syncConfig; return Boolean( syncConfig && syncConfig.supportsPersistence && window.__experimentalEnableRealTimeCollaboration && false !== syncConfig.shouldSync?.( `postType/${currentPostType}`, currentPostId ) ); } ); // packages/editor/build-module/dataviews/store/private-actions.mjs var import_core_data61 = __toESM(require_core_data(), 1); var import_hooks41 = __toESM(require_hooks(), 1); // packages/fields/build-module/fields/slug/index.mjs var import_i18n5 = __toESM(require_i18n(), 1); // packages/fields/build-module/fields/slug/slug-edit.mjs var import_components = __toESM(require_components(), 1); var import_compose = __toESM(require_compose(), 1); var import_data6 = __toESM(require_data(), 1); var import_element2 = __toESM(require_element(), 1); var import_notices = __toESM(require_notices(), 1); var import_url3 = __toESM(require_url(), 1); var import_i18n4 = __toESM(require_i18n(), 1); // packages/fields/build-module/fields/slug/utils.mjs var import_url2 = __toESM(require_url(), 1); // packages/fields/build-module/actions/utils.mjs var import_html_entities = __toESM(require_html_entities(), 1); var import_i18n3 = __toESM(require_i18n(), 1); function isTemplate(post2) { return post2.type === "wp_template"; } function isTemplatePart(post2) { return post2.type === "wp_template_part"; } function isTemplateOrTemplatePart(p4) { return p4.type === "wp_template" || p4.type === "wp_template_part"; } function getItemTitle(item, fallback = (0, import_i18n3.__)("(no title)")) { let title = ""; if (typeof item.title === "string") { title = (0, import_html_entities.decodeEntities)(item.title); } else if (item.title && "rendered" in item.title) { title = (0, import_html_entities.decodeEntities)(item.title.rendered); } else if (item.title && "raw" in item.title) { title = (0, import_html_entities.decodeEntities)(item.title.raw); } return title || fallback; } function isTemplateRemovable(template2) { if (!template2) { return false; } return [template2.source, template2.source].includes("custom") && !Boolean(template2.type === "wp_template" && template2?.plugin) && !template2.has_theme_file; } // packages/fields/build-module/fields/slug/utils.mjs var getSlug = (item) => { if (typeof item !== "object") { return ""; } return item.slug || item.generated_slug || (0, import_url2.cleanForSlug)(getItemTitle(item)) || item.id.toString(); }; // packages/fields/build-module/fields/slug/slug-edit.mjs var import_jsx_runtime94 = __toESM(require_jsx_runtime(), 1); var SlugEdit = ({ field, onChange, data }) => { const { id } = field; const slug = field.getValue({ item: data }) || getSlug(data); const permalinkTemplate = data.permalink_template || ""; const PERMALINK_POSTNAME_REGEX2 = /%(?:postname|pagename)%/; const [prefix2, suffix] = permalinkTemplate.split( PERMALINK_POSTNAME_REGEX2 ); const permalinkPrefix = prefix2; const permalinkSuffix = suffix; const isEditable = PERMALINK_POSTNAME_REGEX2.test(permalinkTemplate); const originalSlugRef = (0, import_element2.useRef)(slug); const slugToDisplay = slug || originalSlugRef.current; const permalink = isEditable ? `${permalinkPrefix}${slugToDisplay}${permalinkSuffix}` : (0, import_url3.safeDecodeURIComponent)(data.link || ""); (0, import_element2.useEffect)(() => { if (slug && originalSlugRef.current === void 0) { originalSlugRef.current = slug; } }, [slug]); const onChangeControl = (0, import_element2.useCallback)( (newValue) => onChange({ [id]: newValue }), [id, onChange] ); const { createNotice } = (0, import_data6.useDispatch)(import_notices.store); const copyButtonRef = (0, import_compose.useCopyToClipboard)(permalink, () => { createNotice("info", (0, import_i18n4.__)("Copied Permalink to clipboard."), { isDismissible: true, type: "snackbar" }); }); const postUrlSlugDescriptionId = "editor-post-url__slug-description-" + (0, import_compose.useInstanceId)(SlugEdit); return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("fieldset", { className: "fields-controls__slug", children: [ isEditable && /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(import_components.__experimentalVStack, { children: [ /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(import_components.__experimentalVStack, { spacing: "0px", children: [ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { children: (0, import_i18n4.__)( "Customize the last part of the Permalink." ) }), /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_components.ExternalLink, { href: "https://wordpress.org/documentation/article/page-post-settings-sidebar/#permalink", children: (0, import_i18n4.__)("Learn more") }) ] }), /* @__PURE__ */ (0, import_jsx_runtime94.jsx)( import_components.__experimentalInputControl, { prefix: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_components.__experimentalInputControlPrefixWrapper, { children: "/" }), suffix: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_components.__experimentalInputControlSuffixWrapper, { variant: "control", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)( import_components.Button, { size: "small", icon: copy_small_default, ref: copyButtonRef, label: (0, import_i18n4.__)("Copy") } ) }), label: (0, import_i18n4.__)("Link"), hideLabelFromVision: true, value: slug, autoComplete: "off", spellCheck: "false", type: "text", className: "fields-controls__slug-input", onChange: (newValue) => { onChangeControl(newValue); }, onBlur: () => { if (slug === "") { onChangeControl(originalSlugRef.current); } }, "aria-describedby": postUrlSlugDescriptionId } ), /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "fields-controls__slug-help", children: [ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "fields-controls__slug-help-visual-label", children: (0, import_i18n4.__)("Permalink:") }), /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)( import_components.ExternalLink, { className: "fields-controls__slug-help-link", href: permalink, children: [ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "fields-controls__slug-help-prefix", children: permalinkPrefix }), /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "fields-controls__slug-help-slug", children: slugToDisplay }), /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "fields-controls__slug-help-suffix", children: permalinkSuffix }) ] } ) ] }) ] }), !isEditable && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)( import_components.ExternalLink, { className: "fields-controls__slug-help", href: permalink, children: permalink } ) ] }); }; var slug_edit_default = SlugEdit; // packages/fields/build-module/fields/slug/slug-view.mjs var import_element3 = __toESM(require_element(), 1); var SlugView = ({ item }) => { const slug = getSlug(item); const originalSlugRef = (0, import_element3.useRef)(slug); (0, import_element3.useEffect)(() => { if (slug && originalSlugRef.current === void 0) { originalSlugRef.current = slug; } }, [slug]); const slugToDisplay = slug || originalSlugRef.current; return `${slugToDisplay}`; }; var slug_view_default = SlugView; // packages/fields/build-module/fields/slug/index.mjs var slugField = { id: "slug", type: "text", label: (0, import_i18n5.__)("Slug"), Edit: slug_edit_default, render: slug_view_default, filterBy: false, // The REST API only exposes `permalink_template` for viewable public // post types, so posts without a permalink hide the field. isVisible: (item) => !!item.link && !!item.permalink_template }; var slug_default = slugField; // packages/fields/build-module/fields/title/index.mjs var import_i18n7 = __toESM(require_i18n(), 1); // node_modules/clsx/dist/clsx.mjs function r(e2) { var t3, f2, n2 = ""; if ("string" == typeof e2 || "number" == typeof e2) n2 += e2; else if ("object" == typeof e2) if (Array.isArray(e2)) { var o3 = e2.length; for (t3 = 0; t3 < o3; t3++) e2[t3] && (f2 = r(e2[t3])) && (n2 && (n2 += " "), n2 += f2); } else for (f2 in e2) e2[f2] && (n2 && (n2 += " "), n2 += f2); return n2; } function clsx() { for (var e2, t3, f2 = 0, n2 = "", o3 = arguments.length; f2 < o3; f2++) (e2 = arguments[f2]) && (t3 = r(e2)) && (n2 && (n2 += " "), n2 += t3); return n2; } var clsx_default = clsx; // packages/fields/build-module/fields/title/view.mjs var import_components2 = __toESM(require_components(), 1); var import_i18n6 = __toESM(require_i18n(), 1); var import_jsx_runtime95 = __toESM(require_jsx_runtime(), 1); function BaseTitleView({ item, className, children }) { const renderedTitle = getItemTitle(item); return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)( import_components2.__experimentalHStack, { className: clsx_default("fields-field__title", className), alignment: "center", justify: "flex-start", children: [ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("span", { children: renderedTitle || (0, import_i18n6.__)("(no title)") }), children ] } ); } function TitleView({ item }) { return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(BaseTitleView, { item }); } // packages/fields/build-module/fields/title/index.mjs var titleField = { type: "text", id: "title", label: (0, import_i18n7.__)("Title"), placeholder: (0, import_i18n7.__)("No title"), getValue: ({ item }) => getItemTitle(item), render: TitleView, enableHiding: true, enableGlobalSearch: true, filterBy: false }; var title_default = titleField; // packages/fields/build-module/fields/page-title/index.mjs var import_i18n22 = __toESM(require_i18n(), 1); // packages/fields/build-module/fields/page-title/view.mjs var import_i18n21 = __toESM(require_i18n(), 1); var import_data7 = __toESM(require_data(), 1); var import_core_data6 = __toESM(require_core_data(), 1); // packages/ui/build-module/badge/badge.mjs var import_element20 = __toESM(require_element(), 1); // node_modules/@base-ui/utils/useControlled.mjs var React = __toESM(require_react(), 1); // node_modules/@base-ui/utils/createLogOnce.mjs var loggedMessages; if (true) { loggedMessages = /* @__PURE__ */ new Set(); } function createLogOnce(severity, prefix2) { return function logOnce(...messages) { if (true) { const message2 = messages.join(" "); const output = prefix2 ? `${prefix2}: ${message2}` : message2; const key = `${severity}:${output}`; if (!loggedMessages.has(key)) { loggedMessages.add(key); if (severity === "warn") { console.warn(output); } else { console.error(output); } } } }; } // node_modules/@base-ui/utils/error.mjs var error = createLogOnce("error", "Base UI"); // node_modules/@base-ui/utils/useControlled.mjs function useControlled({ controlled, default: defaultProp, name: name2, state: state2 = "value" }) { const { current: isControlled } = React.useRef(controlled !== void 0); const [valueState, setValue] = React.useState(defaultProp); const value = isControlled && controlled !== void 0 ? controlled : valueState; if (true) { React.useEffect(() => { if (isControlled !== (controlled !== void 0)) { error([`A component is changing the ${isControlled ? "" : "un"}controlled ${state2} state of ${name2} to be ${isControlled ? "un" : ""}controlled.`, "Elements should not switch from uncontrolled to controlled (or vice versa).", `Decide between using a controlled or uncontrolled ${name2} element for the lifetime of the component.`, "The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.", "More info: https://fb.me/react-controlled-components"].join("\n")); } }, [state2, name2, controlled]); const { current: defaultValue2 } = React.useRef(defaultProp); React.useEffect(() => { if (!isControlled && serializeToDevModeString(defaultValue2) !== serializeToDevModeString(defaultProp)) { error([`A component is changing the default ${state2} state of an uncontrolled ${name2} after being initialized. To suppress this warning opt to use a controlled ${name2}.`].join("\n")); } }, [defaultProp]); } const setValueIfUncontrolled = React.useCallback((newValue) => { if (!isControlled) { setValue(newValue); } }, []); return [value, setValueIfUncontrolled]; } function serializeToDevModeString(input) { let nextId2 = 0; const seen = /* @__PURE__ */ new WeakMap(); try { const result = JSON.stringify(input, function replacer(key, value) { if (key === "_owner" && this != null && typeof this === "object" && "$$typeof" in this) { return void 0; } if (typeof value === "bigint") { return `__bigint__:${value}`; } if (value !== null && typeof value === "object") { const id = seen.get(value); if (id !== void 0) { return `__object__:${id}`; } seen.set(value, nextId2); nextId2 += 1; } return value; }); return result ?? `__top__:${typeof input}`; } catch { return "__unserializable__"; } } // node_modules/@base-ui/utils/safeReact.mjs var React2 = __toESM(require_react(), 1); var SafeReact = { ...React2 }; // node_modules/@base-ui/utils/useRefWithInit.mjs var React3 = __toESM(require_react(), 1); var UNINITIALIZED = {}; function useRefWithInit(init2, initArg) { const ref = React3.useRef(UNINITIALIZED); if (ref.current === UNINITIALIZED) { ref.current = init2(initArg); } return ref; } // node_modules/@base-ui/utils/useStableCallback.mjs var useInsertionEffect = SafeReact.useInsertionEffect; var useSafeInsertionEffect = ( // React 17 doesn't have useInsertionEffect. useInsertionEffect && // Preact replaces useInsertionEffect with useLayoutEffect and fires too late. useInsertionEffect !== SafeReact.useLayoutEffect ? useInsertionEffect : (fn) => fn() ); function useStableCallback(callback) { const stable = useRefWithInit(createStableCallback).current; stable.next = callback; useSafeInsertionEffect(stable.effect); return stable.trampoline; } function createStableCallback() { const stable = { next: void 0, callback: assertNotCalled, trampoline: (...args) => stable.callback?.(...args), effect: () => { stable.callback = stable.next; } }; return stable; } function assertNotCalled() { if (true) { throw ( /* minify-error-disabled */ new Error("Base UI: Cannot call an event handler while rendering.") ); } } // node_modules/@base-ui/utils/warn.mjs var warn = createLogOnce("warn", "Base UI"); // node_modules/@base-ui/utils/empty.mjs function NOOP() { } var EMPTY_ARRAY3 = Object.freeze([]); var EMPTY_OBJECT2 = Object.freeze({}); // node_modules/@base-ui/react/internals/composite/list/CompositeList.mjs var React6 = __toESM(require_react(), 1); // node_modules/@base-ui/utils/useIsoLayoutEffect.mjs var React4 = __toESM(require_react(), 1); var noop = () => { }; var useIsoLayoutEffect = typeof document !== "undefined" ? React4.useLayoutEffect : noop; // node_modules/@base-ui/react/internals/composite/list/CompositeListContext.mjs var React5 = __toESM(require_react(), 1); var CompositeListContext = /* @__PURE__ */ React5.createContext({ register: () => { }, unregister: () => { }, subscribeMapChange: () => () => { }, nextIndexRef: { current: 0 } }); if (true) CompositeListContext.displayName = "CompositeListContext"; function useCompositeListContext() { return React5.useContext(CompositeListContext); } // node_modules/@base-ui/react/internals/composite/list/CompositeList.mjs var import_jsx_runtime96 = __toESM(require_jsx_runtime(), 1); function CompositeList(props) { const { children, elementsRef, labelsRef, onMapChange: onMapChangeProp } = props; const onMapChange = useStableCallback(onMapChangeProp); const [, setMapTick] = React6.useState(false); const listeners2 = useRefWithInit(createListeners).current; const map = useRefWithInit(createMap).current; const nextIndexRef = React6.useRef(0); const isDirtyRef = React6.useRef(true); const itemsRef = React6.useRef(null); const mutationObserverRef = React6.useRef(null); const scheduleMapUpdate = useStableCallback(() => { if (isDirtyRef.current) { return; } isDirtyRef.current = true; setMapTick((tick) => !tick); }); const register5 = useStableCallback((node, registration) => { map.set(node, registration); scheduleMapUpdate(); }); const unregister = useStableCallback((node) => { map.delete(node); scheduleMapUpdate(); }); const syncRefs = useStableCallback((items) => { const nextMap = /* @__PURE__ */ new Map(); elementsRef.current.length = 0; if (labelsRef) { labelsRef.current.length = 0; } items.forEach((item) => { nextMap.set(item.element, { ...item.registration.metadata ?? {}, index: item.index }); elementsRef.current[item.index] = item.element; if (labelsRef) { labelsRef.current[item.index] = item.registration.label !== void 0 ? item.registration.label : item.registration.textRef?.current?.textContent ?? item.element.textContent; } }); nextIndexRef.current = elementsRef.current.length; return nextMap; }); function observe(sortedNodes) { mutationObserverRef.current?.disconnect(); mutationObserverRef.current = null; if (typeof MutationObserver !== "function" || sortedNodes.length < 2) { return; } const mutationObserver = new MutationObserver((entries) => { if (!hasMovedNode(entries)) { return; } let previousConnectedNode = null; for (const node of sortedNodes) { if (!node.isConnected) { continue; } if (previousConnectedNode && sortByDocumentPosition(previousConnectedNode, node) > 0) { mutationObserver.disconnect(); scheduleMapUpdate(); return; } previousConnectedNode = node; } }); mutationObserverRef.current = mutationObserver; const roots = /* @__PURE__ */ new Set(); for (let i2 = 1; i2 < sortedNodes.length; i2 += 1) { const root = getCommonAncestor(sortedNodes[i2 - 1], sortedNodes[i2]); if (root) { roots.add(root); } } roots.forEach((root) => mutationObserver.observe(root, { childList: true })); } const flush2 = useStableCallback(() => { const [items, automaticNodes] = getCompositeListSnapshot(map); const nextMap = syncRefs(items); const previousItems = itemsRef.current; const changed = !previousItems || previousItems.length !== items.length || items.some((item, index3) => { const previousItem = previousItems[index3]; return item.index !== previousItem.index || item.element !== previousItem.element || item.registration.index !== previousItem.registration.index || item.registration.metadata !== previousItem.registration.metadata; }); observe(automaticNodes); itemsRef.current = items; isDirtyRef.current = false; if (!changed) { return; } listeners2.forEach((listener) => listener(nextMap)); onMapChange(nextMap); }); useIsoLayoutEffect(() => { if (!isDirtyRef.current && itemsRef.current) { syncRefs(itemsRef.current); } return () => { elementsRef.current = []; if (labelsRef) { labelsRef.current = []; } }; }, [elementsRef, labelsRef, syncRefs]); useIsoLayoutEffect(() => { if (isDirtyRef.current) { flush2(); } }); useIsoLayoutEffect(() => { return () => { mutationObserverRef.current?.disconnect(); isDirtyRef.current = true; }; }, []); const subscribeMapChange = useStableCallback((fn) => { listeners2.add(fn); return () => { listeners2.delete(fn); }; }); const contextValue = React6.useMemo(() => ({ register: register5, unregister, subscribeMapChange, nextIndexRef }), [register5, unregister, subscribeMapChange, nextIndexRef]); return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(CompositeListContext.Provider, { value: contextValue, children }); } function createMap() { return /* @__PURE__ */ new Map(); } function createListeners() { return /* @__PURE__ */ new Set(); } function getCompositeListSnapshot(map) { const reservedIndices = /* @__PURE__ */ new Set(); const items = []; const automaticItems = []; map.forEach((registration, node) => { if (!node.isConnected) { return; } const index3 = registration.index; const item = { index: index3 ?? -1, element: node, registration }; if (index3 === null) { automaticItems.push(item); } else if (index3 >= 0) { reservedIndices.add(index3); items.push(item); } }); let nextAutomaticIndex = 0; automaticItems.sort((a2, b2) => sortByDocumentPosition(a2.element, b2.element)); automaticItems.forEach((item) => { while (reservedIndices.has(nextAutomaticIndex)) { nextAutomaticIndex += 1; } item.index = nextAutomaticIndex; items.push(item); nextAutomaticIndex += 1; }); if (reservedIndices.size > 0) { items.sort((a2, b2) => a2.index - b2.index); } return [items, automaticItems.map((item) => item.element)]; } function getCommonAncestor(firstNode, lastNode) { let ancestor = firstNode.parentElement; while (ancestor && !ancestor.contains(lastNode)) { ancestor = ancestor.parentElement; } return ancestor; } function hasMovedNode(entries) { for (const entry of entries) { for (let i2 = 0; i2 < entry.removedNodes.length; i2 += 1) { if (entry.removedNodes[i2].isConnected) { return true; } } } return false; } function sortByDocumentPosition(a2, b2) { return a2.compareDocumentPosition(b2) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1; } // node_modules/@base-ui/react/internals/useRenderElement.mjs var React9 = __toESM(require_react(), 1); // node_modules/@base-ui/utils/useMergedRefs.mjs function useMergedRefs(a2, b2, c6, d2) { const forkRef = useRefWithInit(createForkRef).current; if (didChange(forkRef, a2, b2, c6, d2)) { update(forkRef, [a2, b2, c6, d2]); } return forkRef.callback; } function useMergedRefsN(refs) { const forkRef = useRefWithInit(createForkRef).current; if (didChangeN(forkRef, refs)) { update(forkRef, refs); } return forkRef.callback; } function createForkRef() { return { callback: null, cleanup: null, refs: [] }; } function didChange(forkRef, a2, b2, c6, d2) { return forkRef.refs[0] !== a2 || forkRef.refs[1] !== b2 || forkRef.refs[2] !== c6 || forkRef.refs[3] !== d2; } function didChangeN(forkRef, newRefs) { return forkRef.refs.length !== newRefs.length || forkRef.refs.some((ref, index3) => ref !== newRefs[index3]); } function update(forkRef, refs) { forkRef.refs = refs; if (refs.every((ref) => ref == null)) { forkRef.callback = null; return; } forkRef.callback = (instance) => { if (forkRef.cleanup) { forkRef.cleanup(); forkRef.cleanup = null; } if (instance != null) { const cleanupCallbacks = Array(refs.length).fill(null); for (let i2 = 0; i2 < refs.length; i2 += 1) { const ref = refs[i2]; if (ref == null) { continue; } switch (typeof ref) { case "function": { const refCleanup = ref(instance); if (typeof refCleanup === "function") { cleanupCallbacks[i2] = refCleanup; } break; } case "object": { ref.current = instance; break; } default: } } forkRef.cleanup = () => { for (let i2 = 0; i2 < refs.length; i2 += 1) { const ref = refs[i2]; if (ref == null) { continue; } switch (typeof ref) { case "function": { const cleanupCallback = cleanupCallbacks[i2]; if (typeof cleanupCallback === "function") { cleanupCallback(); } else { void ref(null); } break; } case "object": { ref.current = null; break; } default: } } }; } }; } // node_modules/@base-ui/utils/getReactElementRef.mjs var React8 = __toESM(require_react(), 1); // node_modules/@base-ui/utils/reactVersion.mjs var React7 = __toESM(require_react(), 1); var majorVersion = parseInt(React7.version, 10); function isReactVersionAtLeast(reactVersionToCheck) { return majorVersion >= reactVersionToCheck; } // node_modules/@base-ui/utils/getReactElementRef.mjs function getReactElementRef(element) { if (!/* @__PURE__ */ React8.isValidElement(element)) { return null; } const reactElement = element; const propsWithRef = reactElement.props; return (isReactVersionAtLeast(19) ? propsWithRef?.ref : reactElement.ref) ?? null; } // node_modules/@base-ui/utils/mergeObjects.mjs function mergeObjects(a2, b2) { if (a2 && !b2) { return a2; } if (!a2 && b2) { return b2; } if (a2 || b2) { return { ...a2, ...b2 }; } return void 0; } // node_modules/@base-ui/react/internals/getStateAttributesProps.mjs function getStateAttributesProps(state2, customMapping) { const props = {}; for (const key in state2) { const value = state2[key]; if (customMapping?.hasOwnProperty(key)) { const customProps = customMapping[key](value); if (customProps != null) { Object.assign(props, customProps); } continue; } if (value === true) { props[`data-${key.toLowerCase()}`] = ""; } else if (value) { props[`data-${key.toLowerCase()}`] = value.toString(); } } return props; } // node_modules/@base-ui/react/utils/resolveClassName.mjs function resolveClassName(className, state2) { return typeof className === "function" ? className(state2) : className; } // node_modules/@base-ui/react/utils/resolveStyle.mjs function resolveStyle2(style, state2) { return typeof style === "function" ? style(state2) : style; } // node_modules/@base-ui/react/merge-props/mergeProps.mjs var EMPTY_PROPS = {}; function mergeProps(a2, b2, c6, d2, e2) { if (!c6 && !d2 && !e2 && !a2) { return createInitialMergedProps(b2); } let merged = createInitialMergedProps(a2); if (b2) { merged = mergeInto(merged, b2); } if (c6) { merged = mergeInto(merged, c6); } if (d2) { merged = mergeInto(merged, d2); } if (e2) { merged = mergeInto(merged, e2); } return merged; } function mergePropsN(props) { if (props.length === 0) { return EMPTY_PROPS; } if (props.length === 1) { return createInitialMergedProps(props[0]); } let merged = createInitialMergedProps(props[0]); for (let i2 = 1; i2 < props.length; i2 += 1) { merged = mergeInto(merged, props[i2]); } return merged; } function createInitialMergedProps(inputProps) { if (isPropsGetter(inputProps)) { return { ...resolvePropsGetter(inputProps, EMPTY_PROPS) }; } return copyInitialProps(inputProps); } function mergeInto(merged, inputProps) { if (isPropsGetter(inputProps)) { return resolvePropsGetter(inputProps, merged); } return mutablyMergeInto(merged, inputProps); } function copyInitialProps(inputProps) { const copiedProps = { ...inputProps }; for (const propName in copiedProps) { const propValue = copiedProps[propName]; if (isEventHandler(propName, propValue)) { copiedProps[propName] = wrapEventHandler(propValue); } } return copiedProps; } function mutablyMergeInto(mergedProps, externalProps) { if (!externalProps) { return mergedProps; } for (const propName in externalProps) { const externalPropValue = externalProps[propName]; switch (propName) { case "style": { mergedProps[propName] = mergeObjects(mergedProps.style, externalPropValue); break; } case "className": { mergedProps[propName] = mergeClassNames(mergedProps.className, externalPropValue); break; } default: { if (isEventHandler(propName, externalPropValue)) { mergedProps[propName] = mergeEventHandlers(mergedProps[propName], externalPropValue); } else { mergedProps[propName] = externalPropValue; } } } } return mergedProps; } function isEventHandler(key, value) { const code0 = key.charCodeAt(0); const code1 = key.charCodeAt(1); const code2 = key.charCodeAt(2); return code0 === 111 && code1 === 110 && code2 >= 65 && code2 <= 90 && (typeof value === "function" || typeof value === "undefined"); } function isPropsGetter(inputProps) { return typeof inputProps === "function"; } function resolvePropsGetter(inputProps, previousProps) { if (isPropsGetter(inputProps)) { return inputProps(previousProps); } return inputProps ?? EMPTY_PROPS; } function mergeEventHandlers(ourHandler, theirHandler) { if (!theirHandler) { return ourHandler; } if (!ourHandler) { return wrapEventHandler(theirHandler); } return (...args) => { const event = args[0]; if (isSyntheticEvent(event)) { const baseUIEvent = event; makeEventPreventable(baseUIEvent); const result2 = theirHandler(...args); if (!baseUIEvent.baseUIHandlerPrevented) { ourHandler?.(...args); } return result2; } const result = theirHandler(...args); ourHandler?.(...args); return result; }; } function wrapEventHandler(handler) { if (!handler) { return handler; } return (...args) => { const event = args[0]; if (isSyntheticEvent(event)) { makeEventPreventable(event); } return handler(...args); }; } function makeEventPreventable(event) { event.preventBaseUIHandler = () => { event.baseUIHandlerPrevented = true; }; return event; } function mergeClassNames(ourClassName, theirClassName) { if (theirClassName) { if (ourClassName) { return theirClassName + " " + ourClassName; } return theirClassName; } return ourClassName; } function isSyntheticEvent(event) { return event != null && typeof event === "object" && "nativeEvent" in event; } // node_modules/@base-ui/react/internals/useRenderElement.mjs var import_react = __toESM(require_react(), 1); function useRenderElement(element, componentProps, params = {}) { let renderProp = componentProps.render; if (params.enabled !== false) { renderProp = unwrapLazyRenderProp(renderProp); } const outProps = useRenderElementProps(componentProps, params, renderProp); if (params.enabled === false) { return null; } const state2 = params.state ?? EMPTY_OBJECT2; return evaluateRenderProp(element, renderProp, outProps, state2); } function useRenderElementProps(componentProps, params, renderProp) { const { className: classNameProp, style: styleProp } = componentProps; const { state: state2 = EMPTY_OBJECT2, ref, props, stateAttributesMapping: stateAttributesMapping8, enabled = true } = params; const className = enabled ? resolveClassName(classNameProp, state2) : void 0; const style = enabled ? resolveStyle2(styleProp, state2) : void 0; const stateProps = enabled ? getStateAttributesProps(state2, stateAttributesMapping8) : EMPTY_OBJECT2; const resolvedProps = enabled && props ? resolveRenderFunctionProps(props) : void 0; const outProps = enabled ? mergeObjects(stateProps, resolvedProps) ?? {} : EMPTY_OBJECT2; if (typeof document !== "undefined") { if (!enabled) { void useMergedRefs(null, null); } else if (Array.isArray(ref)) { outProps.ref = useMergedRefsN([outProps.ref, getReactElementRef(renderProp), ...ref]); } else { outProps.ref = useMergedRefs(outProps.ref, getReactElementRef(renderProp), ref); } } if (!enabled) { return EMPTY_OBJECT2; } if (className !== void 0) { outProps.className = mergeClassNames(outProps.className, className); } if (style !== void 0) { outProps.style = mergeObjects(outProps.style, style); } return outProps; } function resolveRenderFunctionProps(props) { if (Array.isArray(props)) { return mergePropsN(props); } return mergeProps(void 0, props); } var REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy"); var COMPONENT_IDENTIFIER_PATTERN = /^[A-Z][A-Za-z0-9$]*$/; var LOWERCASE_CHARACTER_PATTERN = /[a-z]/; function unwrapLazyRenderProp(render5) { if (render5?.$$typeof !== REACT_LAZY_TYPE) { return render5; } const unwrapped = React9.Children.toArray(render5)[0]; return /* @__PURE__ */ React9.isValidElement(unwrapped) ? unwrapped : render5; } function evaluateRenderProp(element, render5, props, state2) { if (render5) { if (typeof render5 === "function") { if (true) { warnIfRenderPropLooksLikeComponent(render5); } return render5(props, state2); } const mergedProps = mergeProps(props, render5.props); mergedProps.ref = props.ref; if (true) { if (!/* @__PURE__ */ React9.isValidElement(render5)) { throw new Error(["Base UI: The `render` prop was provided an invalid React element as `React.isValidElement(render)` is `false`.", "A valid React element must be provided to the `render` prop because it is cloned with props to replace the default element.", "https://base-ui.com/r/invalid-render-prop"].join("\n")); } } return /* @__PURE__ */ React9.cloneElement(render5, mergedProps); } if (element) { if (typeof element === "string") { return renderTag(element, props); } } throw new Error(true ? "Base UI: Render element or function are not defined." : formatErrorMessage_default(8)); } function warnIfRenderPropLooksLikeComponent(renderFn) { const functionName = renderFn.name; if (functionName.length === 0) { return; } if (!COMPONENT_IDENTIFIER_PATTERN.test(functionName)) { return; } if (!LOWERCASE_CHARACTER_PATTERN.test(functionName)) { return; } warn(`The \`render\` prop received a function named \`${functionName}\` that starts with an uppercase letter.`, "This usually means a React component was passed directly as `render={Component}`.", "Base UI calls `render` as a plain function, which can break the Rules of Hooks during reconciliation.", "If this is an intentional render callback, rename it to start with a lowercase letter.", "Use `render={}` or `render={(props) => }` instead.", "https://base-ui.com/r/invalid-render-prop"); } function renderTag(Tag, props) { if (Tag === "button") { return /* @__PURE__ */ (0, import_react.createElement)("button", { type: "button", ...props, key: props.key }); } if (Tag === "img") { return /* @__PURE__ */ (0, import_react.createElement)("img", { alt: "", ...props, key: props.key }); } return /* @__PURE__ */ React9.createElement(Tag, props); } // node_modules/@base-ui/utils/useId.mjs var React10 = __toESM(require_react(), 1); var globalId = 0; function useGlobalId(idOverride, prefix2 = "mui") { const [defaultId, setDefaultId] = React10.useState(idOverride); const id = idOverride || defaultId; React10.useEffect(() => { if (defaultId == null) { globalId += 1; setDefaultId(`${prefix2}-${globalId}`); } }, [defaultId, prefix2]); return id; } var maybeReactUseId = SafeReact.useId; function useId(idOverride, prefix2) { if (maybeReactUseId !== void 0) { const reactId = maybeReactUseId(); return idOverride ?? (prefix2 ? `${prefix2}-${reactId}` : reactId); } return useGlobalId(idOverride, prefix2); } // node_modules/@base-ui/react/internals/useBaseUiId.mjs function useBaseUiId(idOverride) { return useId(idOverride, "base-ui"); } // node_modules/@base-ui/react/collapsible/root/useCollapsibleRoot.mjs var React13 = __toESM(require_react(), 1); // node_modules/@base-ui/react/internals/reason-parts.mjs var reason_parts_exports = {}; __export(reason_parts_exports, { cancelOpen: () => cancelOpen, chipRemovePress: () => chipRemovePress, clearPress: () => clearPress, closePress: () => closePress, closeWatcher: () => closeWatcher, decrementPress: () => decrementPress, disabled: () => disabled, drag: () => drag, escapeKey: () => escapeKey, focusOut: () => focusOut, imperativeAction: () => imperativeAction, incrementPress: () => incrementPress, initial: () => initial, inputBlur: () => inputBlur, inputChange: () => inputChange, inputClear: () => inputClear, inputPaste: () => inputPaste, inputPress: () => inputPress, itemPress: () => itemPress, keyboard: () => keyboard, linkPress: () => linkPress, listNavigation: () => listNavigation, missing: () => missing, none: () => none, outsidePress: () => outsidePress, pointer: () => pointer, scrub: () => scrub, siblingOpen: () => siblingOpen, swipe: () => swipe, trackPress: () => trackPress, triggerFocus: () => triggerFocus, triggerHover: () => triggerHover, triggerPress: () => triggerPress, wheel: () => wheel, windowResize: () => windowResize }); var none = "none"; var triggerPress = "trigger-press"; var triggerHover = "trigger-hover"; var triggerFocus = "trigger-focus"; var outsidePress = "outside-press"; var itemPress = "item-press"; var closePress = "close-press"; var linkPress = "link-press"; var clearPress = "clear-press"; var chipRemovePress = "chip-remove-press"; var trackPress = "track-press"; var incrementPress = "increment-press"; var decrementPress = "decrement-press"; var inputChange = "input-change"; var inputClear = "input-clear"; var inputBlur = "input-blur"; var inputPaste = "input-paste"; var inputPress = "input-press"; var focusOut = "focus-out"; var escapeKey = "escape-key"; var closeWatcher = "close-watcher"; var listNavigation = "list-navigation"; var keyboard = "keyboard"; var pointer = "pointer"; var drag = "drag"; var wheel = "wheel"; var scrub = "scrub"; var cancelOpen = "cancel-open"; var siblingOpen = "sibling-open"; var disabled = "disabled"; var missing = "missing"; var initial = "initial"; var imperativeAction = "imperative-action"; var swipe = "swipe"; var windowResize = "window-resize"; // node_modules/@base-ui/react/internals/createBaseUIEventDetails.mjs function createChangeEventDetails(reason, event, trigger, customProperties) { let canceled = false; let allowPropagation = false; const custom = customProperties ?? EMPTY_OBJECT2; const details = { reason, event: event ?? new Event("base-ui"), cancel() { canceled = true; }, allowPropagation() { allowPropagation = true; }, get isCanceled() { return canceled; }, get isPropagationAllowed() { return allowPropagation; }, trigger, ...custom }; return details; } function createGenericEventDetails(reason, event, customProperties) { const custom = customProperties ?? EMPTY_OBJECT2; const details = { reason, event: event ?? new Event("base-ui"), ...custom }; return details; } // node_modules/@base-ui/react/internals/useTransitionStatus.mjs var React12 = __toESM(require_react(), 1); // node_modules/@base-ui/utils/useOnMount.mjs var React11 = __toESM(require_react(), 1); function useOnMount(fn) { React11.useEffect(fn, EMPTY_ARRAY3); } // node_modules/@base-ui/utils/useAnimationFrame.mjs var EMPTY = null; var LAST_RAF = globalThis.requestAnimationFrame; var Scheduler = class { /* This implementation uses an array as a backing data-structure for frame callbacks. * It allows `O(1)` callback cancelling by inserting a `null` in the array, though it * never calls the native `cancelAnimationFrame` if there are no frames left. This can * be much more efficient if there is a call pattern that alterns as * "request-cancel-request-cancel-…". * But in the case of "request-request-…-cancel-cancel-…", it leaves the final animation * frame to run anyway. We turn that frame into a `O(1)` no-op via `callbacksCount`. */ callbacks = []; callbacksCount = 0; nextId = 1; startId = 1; isScheduled = false; tick = (timestamp) => { this.isScheduled = false; const currentCallbacks = this.callbacks; const currentCallbacksCount = this.callbacksCount; this.callbacks = []; this.callbacksCount = 0; this.startId = this.nextId; if (currentCallbacksCount > 0) { for (let i2 = 0; i2 < currentCallbacks.length; i2 += 1) { currentCallbacks[i2]?.(timestamp); } } }; request(fn) { const id = this.nextId; this.nextId += 1; this.callbacks.push(fn); this.callbacksCount += 1; const didRAFChange = LAST_RAF !== requestAnimationFrame && (LAST_RAF = requestAnimationFrame, true); if (!this.isScheduled || didRAFChange) { requestAnimationFrame(this.tick); this.isScheduled = true; } return id; } cancel(id) { const index3 = id - this.startId; if (index3 < 0 || index3 >= this.callbacks.length) { return; } if (this.callbacks[index3] === null) { return; } this.callbacks[index3] = null; this.callbacksCount -= 1; } }; var scheduler = new Scheduler(); var AnimationFrame = class _AnimationFrame { static create() { return new _AnimationFrame(); } static request(fn) { return scheduler.request(fn); } static cancel(id) { return scheduler.cancel(id); } currentId = EMPTY; /** * Executes `fn` after `delay`, clearing any previously scheduled call. */ request(fn) { this.cancel(); this.currentId = scheduler.request(() => { this.currentId = EMPTY; fn(); }); } cancel = () => { if (this.currentId !== EMPTY) { scheduler.cancel(this.currentId); this.currentId = EMPTY; } }; disposeEffect = () => { return this.cancel; }; }; function useAnimationFrame() { const timeout = useRefWithInit(AnimationFrame.create).current; useOnMount(timeout.disposeEffect); return timeout; } // node_modules/@base-ui/react/internals/useTransitionStatus.mjs function useTransitionStatus(open3, enableIdleState = false, deferEndingState = false, animateInitialOpen = false) { const [transitionStatus, setTransitionStatus] = React12.useState(open3 && enableIdleState ? "idle" : void 0); const [mounted, setMounted] = React12.useState(open3 && !animateInitialOpen); if (open3 && !mounted) { setMounted(true); setTransitionStatus("starting"); } if (!open3 && mounted && transitionStatus !== "ending" && !deferEndingState) { setTransitionStatus("ending"); } if (!open3 && !mounted && transitionStatus === "ending") { setTransitionStatus(void 0); } useIsoLayoutEffect(() => { if (!open3 && mounted && transitionStatus !== "ending" && deferEndingState) { const frame = AnimationFrame.request(() => { setTransitionStatus("ending"); }); return () => { AnimationFrame.cancel(frame); }; } return void 0; }, [open3, mounted, transitionStatus, deferEndingState]); useIsoLayoutEffect(() => { if (!open3 || enableIdleState) { return void 0; } const frame = AnimationFrame.request(() => { setTransitionStatus(void 0); }); return () => { AnimationFrame.cancel(frame); }; }, [enableIdleState, open3]); useIsoLayoutEffect(() => { if (!open3 || !enableIdleState) { return void 0; } if (open3 && mounted && transitionStatus !== "idle") { setTransitionStatus("starting"); } const frame = AnimationFrame.request(() => { setTransitionStatus("idle"); }); return () => { AnimationFrame.cancel(frame); }; }, [enableIdleState, open3, mounted, transitionStatus]); return { mounted, setMounted, transitionStatus }; } // node_modules/@base-ui/react/collapsible/root/useCollapsibleRoot.mjs function useCollapsibleRoot(parameters) { const { open: openParam, defaultOpen = false, onOpenChange, disabled: disabled2 } = parameters; const [open3, setOpen] = useControlled({ controlled: openParam, default: defaultOpen, name: "Collapsible", state: "open" }); const { mounted, setMounted, transitionStatus } = useTransitionStatus(open3, true, true); const defaultPanelId = useBaseUiId(); const [registeredPanelId, setPanelIdState] = React13.useState(); const panelId = registeredPanelId === null ? void 0 : registeredPanelId ?? defaultPanelId; const handleTrigger = useStableCallback((event) => { const nextOpen = !open3; const eventDetails = createChangeEventDetails(reason_parts_exports.triggerPress, event.nativeEvent); onOpenChange(nextOpen, eventDetails); if (eventDetails.isCanceled) { return; } setOpen(nextOpen); }); return React13.useMemo(() => ({ defaultPanelId, disabled: disabled2, handleTrigger, mounted, open: open3, panelId, setMounted, setOpen, setPanelIdState, transitionStatus }), [defaultPanelId, disabled2, handleTrigger, mounted, open3, panelId, setMounted, setOpen, setPanelIdState, transitionStatus]); } // node_modules/@base-ui/react/collapsible/root/CollapsibleRootContext.mjs var React14 = __toESM(require_react(), 1); var CollapsibleRootContext = /* @__PURE__ */ React14.createContext(void 0); if (true) CollapsibleRootContext.displayName = "CollapsibleRootContext"; function useCollapsibleRootContext() { const context = React14.useContext(CollapsibleRootContext); if (context === void 0) { throw new Error(true ? "Base UI: CollapsibleRootContext is missing. Collapsible parts must be placed within ." : formatErrorMessage_default(15)); } return context; } // node_modules/@base-ui/react/internals/composite/list/useCompositeListItem.mjs var React15 = __toESM(require_react(), 1); function useCompositeListItem(params = {}) { const { guess, label, metadata, textRef, index: externalIndex } = params; const { register: register5, unregister, subscribeMapChange, nextIndexRef } = useCompositeListContext(); const indexRef = React15.useRef(-1); const [internalIndex, setInternalIndex] = React15.useState(externalIndex == null && guess ? () => { if (indexRef.current === -1) { const newIndex = nextIndexRef.current; nextIndexRef.current += 1; indexRef.current = newIndex; } return indexRef.current; } : -1); const index3 = externalIndex ?? internalIndex; const componentRef = React15.useRef(null); const ref = React15.useCallback((node) => { const previousNode = componentRef.current; if (previousNode) { unregister(previousNode); } componentRef.current = node; if (node) { register5(node, { metadata: metadata ?? null, index: externalIndex ?? null, label, textRef }); } }, [externalIndex, register5, unregister, metadata, label, textRef]); useIsoLayoutEffect(() => { if (externalIndex != null) { return void 0; } return subscribeMapChange((map) => { const i2 = componentRef.current ? map.get(componentRef.current)?.index : null; if (i2 != null) { setInternalIndex(i2); } }); }, [externalIndex, subscribeMapChange]); return { ref, index: index3 }; } // node_modules/@base-ui/react/internals/TransitionStatusDataAttributes.mjs var TransitionStatusDataAttributes_exports = {}; __export(TransitionStatusDataAttributes_exports, { endingStyle: () => endingStyle, startingStyle: () => startingStyle }); var startingStyle = "data-starting-style"; var endingStyle = "data-ending-style"; // node_modules/@base-ui/react/internals/stateAttributesMapping.mjs var STARTING_HOOK = { [startingStyle]: "" }; var ENDING_HOOK = { [endingStyle]: "" }; var transitionStatusMapping = { transitionStatus(value) { if (value === "starting") { return STARTING_HOOK; } if (value === "ending") { return ENDING_HOOK; } return null; } }; // node_modules/@base-ui/react/collapsible/panel/CollapsiblePanelDataAttributes.mjs var open = "data-open"; var closed = "data-closed"; var startingStyle2 = TransitionStatusDataAttributes_exports.startingStyle; var endingStyle2 = TransitionStatusDataAttributes_exports.endingStyle; // node_modules/@base-ui/react/collapsible/trigger/CollapsibleTriggerDataAttributes.mjs var panelOpen = "data-panel-open"; // node_modules/@base-ui/react/utils/collapsibleOpenStateMapping.mjs var PANEL_OPEN_HOOK = { [open]: "" }; var PANEL_CLOSED_HOOK = { [closed]: "" }; var triggerOpenStateMapping = { open(value) { if (value) { return { [panelOpen]: "" }; } return null; } }; var collapsibleOpenStateMapping = { open(value) { if (value) { return PANEL_OPEN_HOOK; } return PANEL_CLOSED_HOOK; } }; // node_modules/@base-ui/react/internals/use-button/useButton.mjs var React18 = __toESM(require_react(), 1); // node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs function hasWindow() { return typeof window !== "undefined"; } function getNodeName(node) { if (isNode(node)) { return (node.nodeName || "").toLowerCase(); } return "#document"; } function getWindow(node) { var _node$ownerDocument; return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window; } function getDocumentElement(node) { var _ref; return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement; } function isNode(value) { if (!hasWindow()) { return false; } return value instanceof Node || value instanceof getWindow(value).Node; } function isElement(value) { if (!hasWindow()) { return false; } return value instanceof Element || value instanceof getWindow(value).Element; } function isHTMLElement(value) { if (!hasWindow()) { return false; } return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement; } function isShadowRoot(value) { if (!hasWindow() || typeof ShadowRoot === "undefined") { return false; } return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot; } function isOverflowElement(element) { const { overflow, overflowX, overflowY, display } = getComputedStyle2(element); return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && display !== "inline" && display !== "contents"; } function isTableElement(element) { return /^(table|td|th)$/.test(getNodeName(element)); } function isTopLayer(element) { try { if (element.matches(":popover-open")) { return true; } } catch (_e) { } try { return element.matches(":modal"); } catch (_e) { return false; } } var willChangeRe = /transform|translate|scale|rotate|perspective|filter/; var containRe = /paint|layout|strict|content/; var isNotNone = (value) => !!value && value !== "none"; var isWebKitValue; function isContainingBlock(elementOrCss) { const css = isElement(elementOrCss) ? getComputedStyle2(elementOrCss) : elementOrCss; return isNotNone(css.transform) || isNotNone(css.translate) || isNotNone(css.scale) || isNotNone(css.rotate) || isNotNone(css.perspective) || !isWebKit() && (isNotNone(css.backdropFilter) || isNotNone(css.filter)) || willChangeRe.test(css.willChange || "") || containRe.test(css.contain || ""); } function getContainingBlock(element) { let currentNode = getParentNode(element); while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) { if (isContainingBlock(currentNode)) { return currentNode; } else if (isTopLayer(currentNode)) { return null; } currentNode = getParentNode(currentNode); } return null; } function isWebKit() { if (isWebKitValue == null) { isWebKitValue = typeof CSS !== "undefined" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"); } return isWebKitValue; } function isLastTraversableNode(node) { return /^(html|body|#document)$/.test(getNodeName(node)); } function getComputedStyle2(element) { return getWindow(element).getComputedStyle(element); } function getNodeScroll(element) { if (isElement(element)) { return { scrollLeft: element.scrollLeft, scrollTop: element.scrollTop }; } return { scrollLeft: element.scrollX, scrollTop: element.scrollY }; } function getParentNode(node) { if (getNodeName(node) === "html") { return node; } const result = ( // Step into the shadow DOM of the parent of a slotted node. node.assignedSlot || // DOM Element detected. node.parentNode || // ShadowRoot detected. isShadowRoot(node) && node.host || // Fallback. getDocumentElement(node) ); return isShadowRoot(result) ? result.host : result; } function getNearestOverflowAncestor(node) { const parentNode = getParentNode(node); if (isLastTraversableNode(parentNode)) { return (node.ownerDocument || node).body; } if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) { return parentNode; } return getNearestOverflowAncestor(parentNode); } function getOverflowAncestors(node, list, traverseIframes) { var _node$ownerDocument2; if (list === void 0) { list = []; } if (traverseIframes === void 0) { traverseIframes = true; } const scrollableAncestor = getNearestOverflowAncestor(node); const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body); const win = getWindow(scrollableAncestor); if (isBody) { const frameElement = getFrameElement(win); return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []); } else { return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes)); } } function getFrameElement(win) { return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null; } // node_modules/@base-ui/react/internals/composite/root/CompositeRootContext.mjs var React16 = __toESM(require_react(), 1); var CompositeRootContext = /* @__PURE__ */ React16.createContext(void 0); if (true) CompositeRootContext.displayName = "CompositeRootContext"; function useCompositeRootContext(optional = false) { const context = React16.useContext(CompositeRootContext); if (context === void 0 && !optional) { throw new Error(true ? "Base UI: CompositeRootContext is missing. Composite parts must be placed within ." : formatErrorMessage_default(16)); } return context; } // node_modules/@base-ui/react/utils/useFocusableWhenDisabled.mjs var React17 = __toESM(require_react(), 1); function useFocusableWhenDisabled(parameters) { const { focusableWhenDisabled, disabled: disabled2, composite = false, tabIndex: tabIndexProp = 0, isNativeButton } = parameters; const isFocusableComposite = composite && focusableWhenDisabled !== false; const isNonFocusableComposite = composite && focusableWhenDisabled === false; const props = React17.useMemo(() => { const additionalProps = { // allow Tabbing away from focusableWhenDisabled elements onKeyDown(event) { if (disabled2 && focusableWhenDisabled && event.key !== "Tab") { event.preventDefault(); } } }; if (!composite) { additionalProps.tabIndex = tabIndexProp; if (!isNativeButton && disabled2) { additionalProps.tabIndex = focusableWhenDisabled ? tabIndexProp : -1; } } if (isNativeButton && (focusableWhenDisabled || isFocusableComposite) || !isNativeButton && disabled2) { additionalProps["aria-disabled"] = disabled2; } if (isNativeButton && (!focusableWhenDisabled || isNonFocusableComposite)) { additionalProps.disabled = disabled2; } return additionalProps; }, [composite, disabled2, focusableWhenDisabled, isFocusableComposite, isNonFocusableComposite, isNativeButton, tabIndexProp]); return { props }; } // node_modules/@base-ui/utils/owner.mjs function ownerDocument(node) { return node?.ownerDocument || document; } // node_modules/@base-ui/react/utils/dispatchClickWithModifiers.mjs function dispatchClickWithModifiers(target, sourceEvent, { detail = 0 } = {}) { target.dispatchEvent(new (getWindow(target)).PointerEvent("click", { bubbles: true, cancelable: true, composed: true, detail, shiftKey: sourceEvent.shiftKey, ctrlKey: sourceEvent.ctrlKey, altKey: sourceEvent.altKey, metaKey: sourceEvent.metaKey })); } // node_modules/@base-ui/react/internals/use-button/useButton.mjs function useButton(parameters = {}) { const { disabled: disabled2 = false, focusableWhenDisabled, tabIndex = 0, native: isNativeButton = true, composite: compositeProp } = parameters; const elementRef = React18.useRef(null); const compositeRootContext = useCompositeRootContext(true); const isCompositeItem = compositeProp ?? compositeRootContext !== void 0; const { props: focusableWhenDisabledProps } = useFocusableWhenDisabled({ focusableWhenDisabled, disabled: disabled2, composite: isCompositeItem, tabIndex, isNativeButton }); if (true) { React18.useEffect(() => { if (!elementRef.current) { return; } const isButtonTag = isButtonElement(elementRef.current); if (isNativeButton) { if (!isButtonTag) { const ownerStackMessage = SafeReact.captureOwnerStack?.() || ""; const message2 = "A component that acts as a button expected a native